/* =========================
   ESPN-INSPIRED DESIGN SYSTEM
   Bold • High Contrast • Sporty
========================= */

/* =========================
   BASE TYPOGRAPHY
========================= */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* =========================
   NAVIGATION
========================= */
.nav-link {
  color: #374151;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.dark .nav-link {
  color: #e5e7eb;
}
.nav-link:hover {
  color: #15803d;
  background: rgba(34, 197, 94, 0.08);
}
.dark .nav-link:hover {
  color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
}

.nav-link-btn {
  color: #374151;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.875rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.dark .nav-link-btn {
  color: #39ff14;
  border-color: #39ff14;
}
.nav-link-btn:hover {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}
.dark .nav-link-btn:hover {
  background: #39ff14;
  color: #000;
}

.nav-link-mobile {
  display: block;
  padding: 0.625rem 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #374151;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.dark .nav-link-mobile {
  color: #e5e7eb;
}
.nav-link-mobile:hover {
  color: #15803d;
  background: rgba(34, 197, 94, 0.08);
}
.dark .nav-link-mobile:hover {
  color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
}

/* =========================
   THEME TOGGLE
========================= */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.2s ease;
  cursor: pointer;
}
.dark .theme-toggle {
  border-color: #374151;
  background: #1f2937;
}
.theme-toggle:hover {
  border-color: #22c55e;
  transform: scale(1.1);
}
.dark .theme-toggle:hover {
  border-color: #39ff14;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: #15803d;
  color: #fff;
}
.dark .btn-primary {
  background: #39ff14;
  color: #000;
}
.btn-primary:hover {
  background: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}
.dark .btn-primary:hover {
  background: #2dd60f;
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.4);
}

.btn-neon, .btn-neon-fill {
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}
.btn-neon {
  background: transparent;
  border: 2px solid #15803d;
  color: #15803d;
  padding: 10px 20px;
}
.dark .btn-neon {
  border-color: #39ff14;
  color: #39ff14;
}
.btn-neon:hover {
  background: #15803d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}
.dark .btn-neon:hover {
  background: #39ff14;
  color: #000;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.btn-neon-fill {
  background: #15803d;
  border: 2px solid #15803d;
  color: #fff;
  padding: 10px 20px;
}
.dark .btn-neon-fill {
  background: #39ff14;
  border-color: #39ff14;
  color: #000;
}
.btn-neon-fill:hover {
  background: #166534;
  border-color: #166534;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
  transform: translateY(-1px);
}
.dark .btn-neon-fill:hover {
  background: #2dd60f;
  border-color: #2dd60f;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
  transform: translateY(-1px);
}

/* =========================
   INPUTS & FORM CONTROLS
========================= */
input, textarea, select {
  background-color: #fff;
  color: #111827;
  border: 2px solid #d1d5db;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.dark input, .dark textarea, .dark select {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #4b5563;
}
input:focus, textarea:focus, select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  outline: none;
}
.dark input:focus, .dark textarea:focus, .dark select:focus {
  border-color: #39ff14;
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15);
}
input::placeholder, textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* =========================
   TICKER STYLES
========================= */
@keyframes scroll-subtle {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.animate-scroll-subtle {
  animation: scroll-subtle 90s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}
.animate-scroll-subtle:hover {
  animation-play-state: paused;
}
@media (max-width: 768px) { .animate-scroll-subtle { animation-duration: 60s; } }

/* =========================
   PRIMETIME CARDS
========================= */
.primetime-card { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transition: all 0.2s ease; }
.dark .primetime-card { box-shadow: 0 0 15px rgba(255,193,7,0.4); }
.primetime-tnf { box-shadow: 0 0 15px rgba(13,110,253,0.4); }
.primetime-snf { box-shadow: 0 0 15px rgba(255,193,7,0.5); }
.primetime-mnf { box-shadow: 0 0 15px rgba(25,135,84,0.4); }
.primetime-thanksgiving { box-shadow: 0 0 15px rgba(255,140,0,0.5); }
.primetime-christmas { box-shadow: 0 0 15px rgba(220,53,69,0.5); }
.primetime-playoff { box-shadow: 0 0 20px rgba(13,202,240,0.6); }

.primetime-card:hover { transform: translateY(-3px); }
.primetime-tnf:hover { box-shadow: 0 0 25px rgba(13,110,253,0.6); }
.primetime-snf:hover { box-shadow: 0 0 25px rgba(255,193,7,0.7); }
.primetime-mnf:hover { box-shadow: 0 0 25px rgba(25,135,84,0.6); }
.primetime-thanksgiving:hover { box-shadow: 0 0 25px rgba(255,140,0,0.7); }
.primetime-christmas:hover { box-shadow: 0 0 25px rgba(220,53,69,0.7); }
.primetime-playoff:hover { box-shadow: 0 0 30px rgba(13,202,240,0.8); }

/* =========================
   GAME CARDS
========================= */
.game-card {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
}
.dark .game-card {
  border-color: #374151;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.dark .game-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.game-card.primetime {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
}
.dark .game-card.primetime {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border: 2px solid #fbbf24;
}
.game-card.primetime::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #22c55e, #fbbf24, #22c55e);
  animation: shimmer 3s infinite;
}
.dark .game-card.primetime::before {
  background: linear-gradient(90deg, #39ff14, #fbbf24, #39ff14);
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* =========================
   TEAM LOGOS
========================= */
.team-logo { width: 44px; height: 44px; object-fit: contain; display: inline-block; }
.team-logo-placeholder {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border-radius: 50%;
  color: #9ca3af; font-weight: 800;
}
.dark .team-logo-placeholder {
  background: rgba(255,255,255,0.1);
  color: #6b7280;
}
@media (max-width: 768px) { .team-logo, .team-logo-placeholder { width: 36px; height: 36px; } }

/* =========================
   STANDINGS & STATS
========================= */
.stat-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}
.dark .stat-card {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-color: #374151;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: #22c55e;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.dark .stat-card:hover {
  border-color: #39ff14;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: 'Orbitron', system-ui, sans-serif;
  margin-bottom: 8px;
  color: #15803d;
}
.dark .stat-value {
  background: linear-gradient(135deg, #39ff14, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dark .stat-label {
  color: #9ca3af;
}

.standings-table {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dark .standings-table {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.standings-row:hover {
  background: #f9fafb;
}
.dark .standings-row:hover {
  background: #374151;
}

/* =========================
   ALERTS & EMPTY STATES
========================= */
.alert {
  border-radius: 8px;
  border-left-width: 4px;
  padding: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.alert-success { background: rgba(16,185,129,0.08); border-left-color: #10b981; color: #065f46; }
.dark .alert-success { background: rgba(16,185,129,0.1); color: #10b981; }
.alert-error, .alert-danger { background: rgba(239,68,68,0.08); border-left-color: #ef4444; color: #991b1b; }
.dark .alert-error, .dark .alert-danger { background: rgba(239,68,68,0.1); color: #ef4444; }
.alert-warning { background: rgba(245,158,11,0.08); border-left-color: #f59e0b; color: #92400e; }
.dark .alert-warning { background: rgba(245,158,11,0.1); color: #f59e0b; }
.alert-info { background: rgba(59,130,246,0.08); border-left-color: #3b82f6; color: #1e40af; }
.dark .alert-info { background: rgba(59,130,246,0.1); color: #3b82f6; }

.empty-state {
  text-align: center;
  padding: 64px 32px;
  background: #fafafa;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
}
.dark .empty-state {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-color: #4b5563;
}

/* =========================
   QUICK ACTIONS
========================= */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all 0.2s ease;
  text-decoration: none;
}
.dark .quick-action {
  border-color: #374151;
  background: #1a1a2e;
}
.quick-action:hover {
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.dark .quick-action:hover {
  border-color: #39ff14;
  box-shadow: 0 8px 20px rgba(57,255,20,0.1);
}

/* =========================
   MEDIA QUERIES
========================= */
@media (max-width: 768px) {
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.75rem; }
  .game-card { padding: 16px; }
  .pick-button { padding: 12px 16px; font-size: 14px; }
}
