/*
Theme Name: World Cup Kickoff Pro Mobile Ready
Author: ChatGPT
Description: Mobile and desktop ready World Cup football WordPress theme with fixtures, predictions, live-score-ready sections, group tables, flags, top scorers, and dark/light mode.
Version: 1.2
License: GPL v2 or later
Text Domain: world-cup-kickoff-pro-mobile-ready
*/

:root {
  --dark: #071018;
  --panel: #101c27;
  --green: #00c853;
  --gold: #ffd166;
  --white: #ffffff;
  --muted: #aab7c4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: #050b10;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 18px 22px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.site-header-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .5px;
}

.site-title a { color: var(--white); }
.site-title span { color: var(--gold); }

.main-nav ul {
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav a {
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.mobile-menu-toggle {
  border: 1px solid rgba(255,255,255,.22);
  background: transparent;
  color: var(--white);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
  min-height: 42px;
}

.mobile-menu-toggle {
  display: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(7,16,24,.96), rgba(7,16,24,.68)),
    radial-gradient(circle at 80% 20%, rgba(0,200,83,.35), transparent 28%),
    repeating-linear-gradient(90deg, #073b23 0, #073b23 80px, #092d20 80px, #092d20 160px);
  padding: 78px 22px;
}

.hero-inner {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 35px;
  align-items: center;
}

.kicker {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  margin: 12px 0;
  text-transform: uppercase;
}

.hero p {
  color: #e7edf2;
  font-size: 20px;
  max-width: 720px;
}

.button {
  display: inline-block;
  background: var(--green);
  color: #021009;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 900;
  margin-top: 12px;
  min-height: 42px;
}

.container {
  max-width: 1180px;
  margin: 35px auto;
  padding: 0 22px;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.card,
.slider-panel,
.prediction-card,
.api-box {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  overflow-wrap: anywhere;
}

.section-title {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 5px solid var(--green);
  text-transform: uppercase;
}

.fixture-grid,
.team-grid,
.stat-grid {
  display: grid;
  gap: 14px;
}

.fixture {
  background: #071018;
  border-radius: 14px;
  padding: 16px;
  border-left: 5px solid var(--gold);
}

.fixture strong { color: var(--white); }

.fixture small,
.meta,
.shortcode-note {
  color: var(--muted);
}

.prediction-tag {
  display: inline-block;
  background: rgba(0,200,83,.12);
  color: var(--green);
  border: 1px solid rgba(0,200,83,.35);
  padding: 6px 11px;
  border-radius: 999px;
  margin: 4px 3px;
  font-size: 13px;
  font-weight: 800;
}

.post-card h2 { margin-top: 0; }

.post-card img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.team-box,
.stat-box {
  background: #071018;
  border-radius: 14px;
  padding: 15px;
}

.team-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flag { font-size: 26px; }

.stat-number {
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
}

.slider-panel {
  position: relative;
  overflow: hidden;
  background: rgba(16,28,39,.88);
}

.slide { display: none; }
.slide.active { display: block; }

.slider-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.slider-controls button {
  background: var(--gold);
  border: 0;
  color: #101820;
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  min-height: 42px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #071018;
  border-radius: 14px;
  overflow: hidden;
}

.standings-table th,
.standings-table td {
  padding: 11px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

.standings-table th {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
}

.confidence-bar {
  background: rgba(255,255,255,.12);
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.confidence-fill {
  background: var(--green);
  height: 100%;
  border-radius: 999px;
}

.api-box {
  border: 1px dashed rgba(255,209,102,.55);
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  padding: 7px 10px;
  border-radius: 999px;
  margin: 4px;
  font-weight: 800;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #ff2b2b;
  border-radius: 999px;
  margin-right: 6px;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0% { opacity: .35; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: .35; transform: scale(.9); }
}

.site-footer {
  background: #050b10;
  color: var(--muted);
  text-align: center;
  padding: 28px;
  margin-top: 40px;
}

body.light-mode {
  background: #f5f7fb;
  color: #101820;
}

body.light-mode .card,
body.light-mode .slider-panel,
body.light-mode .prediction-card,
body.light-mode .api-box,
body.light-mode .fixture,
body.light-mode .team-box,
body.light-mode .stat-box,
body.light-mode .standings-table {
  background: #ffffff;
  color: #101820;
  border-color: rgba(0,0,0,.08);
}

body.light-mode .site-header,
body.light-mode .site-footer {
  background: #ffffff;
  color: #101820;
}

body.light-mode .site-title a,
body.light-mode .main-nav a,
body.light-mode .fixture strong,
body.light-mode .theme-toggle,
body.light-mode .mobile-menu-toggle {
  color: #101820;
}

body.light-mode .theme-toggle,
body.light-mode .mobile-menu-toggle {
  border-color: rgba(0,0,0,.18);
}

body.light-mode .main-nav a {
  background: rgba(0,0,0,.04);
}

@media (min-width: 851px) {
  .main-nav {
    display: block !important;
  }
}

@media (max-width: 850px) {
  .site-header {
    padding: 14px 16px;
  }

  .site-header-inner {
    gap: 10px;
  }

  .site-title {
    font-size: 22px;
    max-width: 62%;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 12px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px 0 0;
  }

  .main-nav li {
    margin: 0;
  }

  .main-nav a {
    display: block;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
  }

  .hero {
    padding: 42px 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  .hero p {
    font-size: 17px;
  }

  .container {
    margin: 22px auto;
    padding: 0 16px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card,
  .slider-panel,
  .prediction-card,
  .api-box {
    padding: 18px;
    border-radius: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  .flag-pill {
    width: 100%;
    justify-content: space-between;
  }

  .fixture-grid,
  .team-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    padding: 22px 16px;
  }
}

@media (max-width: 420px) {
  .site-title {
    font-size: 19px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .theme-toggle,
  .mobile-menu-toggle {
    padding: 8px 10px;
  }

  .card,
  .slider-panel,
  .prediction-card,
  .api-box {
    padding: 15px;
  }
}
