/* ============================================
   free24bets.com — Multi-Geo Football Tips
   Design: scores24.live + transfermarkt.com
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a3c5c;
  --navy-light: #24506e;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #595f64;
  --border: #e2e5e9;
  --accent: #e74c3c;
  --gold: #f39c12;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* === HEADER / NAVBAR === */
.navbar {
  background: var(--navy);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.navbar-nav {
  display: flex;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.navbar-cta {
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === LEAGUE BAR === */
.league-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
}

.league-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.league-bar-inner::-webkit-scrollbar {
  display: none;
}

.league-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.league-chip:hover,
.league-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.league-chip .league-icon {
  font-size: 1rem;
}

/* === HERO / MATCH OF THE DAY === */
.hero {
  padding: 1.5rem 0;
}

.motd-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.motd-badge {
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.motd-content {
  padding: 1.5rem;
}

.motd-league {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.motd-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.motd-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.motd-team-logo {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.motd-team-name {
  font-size: 1rem;
  font-weight: 600;
}

.motd-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.motd-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.motd-vs-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.motd-prediction {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.motd-pick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.motd-pick-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.motd-pick-value {
  font-weight: 700;
  color: var(--navy);
}

.motd-odds {
  background: var(--navy);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.confidence-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confidence-high {
  background: #d4edda;
  color: #155724;
}

.confidence-medium {
  background: #fff3cd;
  color: #856404;
}

.motd-btn {
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.motd-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* === GAMES LIST === */
.games-section {
  padding: 1rem 0 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.league-group {
  margin-bottom: 1.5rem;
}

.league-group-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-card {
  background: var(--card);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.game-card:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.game-card:hover {
  background: #f8f9fa;
}

.game-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.game-teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-team {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-team-icon {
  width: 18px;
  height: 18px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.game-prediction {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-pick {
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.game-odds {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  min-width: 36px;
  text-align: center;
}

.game-bet-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-bet-btn:hover {
  background: var(--green-dark);
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  margin: 1rem 0 2rem;
}

.cta-banner h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.cta-banner .cta-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-banner .cta-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* === STATS / TRACK RECORD === */
.stats-section {
  padding: 0 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  line-height: 1;
}

.modal-body {
  padding: 1.25rem;
}

.modal-league {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.modal-analysis {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.modal-prediction-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.modal-btn:hover {
  background: var(--green-dark);
}

/* === FOOTER === */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.footer-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.footer-copyright {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* === NO GAMES STATE === */
.no-games {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.no-games-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-games h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.no-games p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === LOADING STATE === */
.loading {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* === SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .navbar-nav.open a {
    padding: 10px 14px;
  }

  .menu-toggle {
    display: block;
  }

  .navbar-cta-desktop {
    display: none;
  }

  .game-card {
    grid-template-columns: 45px 1fr auto;
    gap: 8px;
  }

  .game-prediction {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .motd-teams {
    gap: 1rem;
  }

  .motd-team-logo {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .motd-content {
    padding: 1rem;
  }

  .motd-prediction {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 1.5rem 1rem;
  }

  .cta-banner h3 {
    font-size: 1.1rem;
  }

  .game-card {
    grid-template-columns: 40px 1fr auto;
    padding: 10px 12px;
  }

  .game-team {
    font-size: 0.82rem;
  }

  .motd-team-name {
    font-size: 0.9rem;
  }
}
