/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 *
 *= require button_links
 */

/* Sticky footer styles */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

footer {
  margin-top: auto;
}

/* Flowbite-inspired login page styles */

body {
  background-color: #f9fafb;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

h1 {
  color: #111827;
  font-weight: 700;
  font-size: 2rem;
  line-height: 2.5rem;
  margin-bottom: 1.5rem;
}

input[type="email"], input[type="password"] {
  background-color: #fff;
  border: 1px solid #d1d5db;
  color: #111827;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  max-width: 100%;
}

input[type="email"]:focus, input[type="password"]:focus {
  outline: 2px solid #2563eb;
  border-color: #2563eb;
}

input[type="email"]::placeholder, input[type="password"]::placeholder {
  color: #6b7280;
}

input[type="checkbox"] {
  accent-color: #2563eb;
  border-radius: 0.25rem;
  width: 1rem;
  height: 1rem;
}

button[type="submit"] {
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  border: none;
  cursor: pointer;
  width: auto;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #1d4ed8;
}

a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

/* Button link styles */
a.bg-gray-600, a.bg-red-600, a.bg-blue-600, a.bg-green-600,
a[class*="bg-"][class*="text-white"] {
  color: white !important;
  text-decoration: none !important;
}

a:hover {
  text-decoration: underline;
}

/* Container styles */
.container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Login specific styles */
.auth-card {
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  margin: 2rem auto;
}

.auth-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-form-group {
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.auth-form-group input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.auth-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #374151;
}

.auth-form-submit {
  width: 100%;
}

.auth-form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Utility classes */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-900 {
  color: #111827;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #6b7280;
  color: #ffffff;
  border: none;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-outline {
  background-color: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn-outline:hover {
  background-color: #2563eb;
  color: #ffffff;
}

/* Alert and notice styles */
#alert {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

#notice {
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Match status badge styles */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
  min-width: 100px;
  text-align: center;
}

.status-scheduled {
  background-color: #3b82f6;
  color: white;
}

.status-inprogress, .status-halftime {
  background-color: #f59e0b;
  color: white;
}

.status-complete, .status-closed {
  background-color: #8e9291;
  color: white;
}

.status-postponed, .status-delayed {
  background-color: #ef4444;
  color: white;
}

.status-unknown {
  background-color: #6b7280;
  color: white;
}

/* Additional utility classes */
.mt-2 {
  margin-top: 0.5rem;
}

.cursor-pointer {
  cursor: pointer;
}

.underline {
  text-decoration: underline;
}

.hover\:no-underline:hover {
  text-decoration: none;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Responsive classes */
@media (min-width: 640px) {
  .sm\:mt-0 {
    margin-top: 0;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:gap-4 {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .md\:w-2\/3 {
    width: 66.666667%;
  }
}

@media (min-width: 1024px) {
  .lg\:w-1\/2 {
    width: 50%;
  }
}

@media (min-width: 1280px) {
  .xl\:w-1\/3 {
    width: 33.333333%;
  }
}

@media (min-width: 1536px) {
  .\32 xl\:w-1\/4 {
    width: 25%;
  }
}

/* Leaderboard specific styles */

.leaderboard-podium {
  transition: transform 0.3s ease;
}

.leaderboard-podium:hover {
  transform: scale(1.02);
}

.leaderboard-rank-badge {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.leaderboard-rank-badge:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.leaderboard-table-row {
  transition: background-color 0.2s ease;
}

.leaderboard-table-row:hover {
  background-color: rgba(59, 130, 246, 0.05) !important;
}

.status-indicator {
  animation: pulse 2s infinite;
}

.status-indicator.eliminated {
  animation: none;
}

.winner-crown {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .leaderboard-podium {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .leaderboard-rank-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .leaderboard-podium {
    transform: none !important;
  }
  
  .leaderboard-podium:hover {
    transform: none !important;
  }
}

/* Points highlighting */
.points-high {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.points-medium {
  color: #3b82f6;
  font-weight: 600;
}

.points-low {
  color: #6b7280;
  font-weight: 500;
}

/* Status badges enhancement */
.status-badge-enhanced {
  position: relative;
  overflow: hidden;
}

.status-badge-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.status-badge-enhanced:hover::before {
  left: 100%;
}
