/* ============================================================
   Soccer World Cup 2026 — site stylesheet
   Palette extracted from SpinBetter banners
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-deep: #08120f;
  --bg-base: #0d1f1a;
  --bg-panel: #15302a;
  --bg-elevated: #1c3d34;
  --bg-banner-frame: #0a1814;

  /* Borders */
  --border-subtle: rgba(185, 232, 76, 0.12);
  --border-strong: rgba(185, 232, 76, 0.28);

  /* Accents */
  --accent-lime: #b9e84c;
  --accent-lime-bright: #d4f56b;
  --accent-purple: #a855f7;
  --accent-pink: #e879f9;
  --accent-gold: #fbbf24;

  /* Text */
  --text-strong: #f5f7f5;
  --text-base: #d8e2db;
  --text-soft: #97a9a0;
  --text-dim: #6b8074;

  /* Shadows & glow */
  --glow-lime: 0 0 32px rgba(185, 232, 76, 0.35);
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.5);
  --shadow-deep: 0 18px 48px rgba(0, 0, 0, 0.65);

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Type scale */
  --font-body: 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-base);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 1200px 600px at 20% 0%, rgba(185, 232, 76, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 500px at 90% 30%, rgba(168, 85, 247, 0.05), transparent 65%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--accent-lime); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-lime-bright); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 18, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(8, 18, 15, 0.96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand:hover { color: var(--accent-lime-bright); }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-lime-bright) 100%);
  color: var(--bg-deep);
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(185, 232, 76, 0.35);
}
.brand-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent-lime);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  color: var(--text-base);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.nav-desktop a:hover, .nav-desktop a.active {
  color: var(--accent-lime);
  background: rgba(185, 232, 76, 0.08);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-lime-bright) 100%);
  color: var(--bg-deep) !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 4px 18px rgba(185, 232, 76, 0.25);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(185, 232, 76, 0.45); color: var(--bg-deep) !important; filter: brightness(1.05); }
.cta-btn.large { padding: 16px 32px; font-size: 1.05rem; }
.cta-btn.ghost {
  background: transparent;
  color: var(--accent-lime) !important;
  border: 1.5px solid var(--accent-lime);
  box-shadow: none;
}
.cta-btn.ghost:hover { background: rgba(185, 232, 76, 0.1); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  position: relative;
  transition: background .15s ease;
}
.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  transition: transform .25s ease, top .25s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 86%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-base);
  border-left: 1px solid var(--border-subtle);
  padding: 90px 28px 32px;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 99;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  color: var(--text-base);
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-drawer a:hover { color: var(--accent-lime); }
.mobile-drawer .cta-btn { margin-top: 24px; width: 100%; justify-content: center; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 98;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   Banner carousel
   ============================================================ */
.banner-carousel {
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 16px 16px;
}
.banner-track {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  height: 220px;
  background: var(--bg-banner-frame);
  border-radius: 12px;
  overflow: hidden;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 0 7%;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  text-decoration: none;
}
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-copy {
  max-width: 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.banner-desc {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 7%;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.banner-dots button[aria-current="true"] {
  background: var(--accent-lime);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   Layout & content
   ============================================================ */
main { display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 22px;
}

.breadcrumbs {
  padding: 18px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent-lime); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

.hero {
  padding: 60px 0 40px;
  position: relative;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 18px;
  max-width: 880px;
}
.hero h1 .accent { color: var(--accent-lime); }
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 720px;
  margin-bottom: 28px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.section { padding: 36px 0; }
.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 0 0 18px;
  line-height: 1.15;
}
.section h2 .accent { color: var(--accent-lime); }
.section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 28px 0 12px;
  letter-spacing: -0.005em;
}
.section h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-lime);
  margin: 22px 0 8px;
}
.section p {
  margin-bottom: 16px;
  color: var(--text-base);
}
.section ul, .section ol {
  margin: 0 0 18px 0;
  padding-left: 22px;
}
.section li {
  margin-bottom: 8px;
  color: var(--text-base);
}
.section li::marker { color: var(--accent-lime); }

.section strong { color: var(--text-strong); font-weight: 700; }

.intro-card {
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-lime);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin: 24px 0 36px;
}
.intro-card p:last-child { margin-bottom: 0; }

/* Inline content figures */
.content-figure {
  margin: 30px auto;
  max-width: 92%;
  text-align: center;
}
.content-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}
.content-figure figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
}

/* CTA blocks */
.cta-block {
  text-align: center;
  padding: 36px 28px;
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(185, 232, 76, 0.06) 0%, rgba(168, 85, 247, 0.06) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.cta-block h3 {
  font-size: 1.45rem;
  margin: 0 0 8px;
  color: var(--text-strong);
}
.cta-block p {
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature grid (homepage etc.) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--accent-lime);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

/* Tables (schedule etc.) */
.data-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  font-size: 0.94rem;
  min-width: 520px;
}
.data-table th {
  background: var(--bg-elevated);
  color: var(--accent-lime);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-base);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(185, 232, 76, 0.04); }
.data-table .pot-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(185, 232, 76, 0.15);
  color: var(--accent-lime);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Group / bracket cards */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.group-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.group-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--accent-lime);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.group-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.group-card li {
  padding: 6px 0;
  color: var(--text-base);
  font-size: 0.94rem;
  border-bottom: 1px dashed var(--border-subtle);
}
.group-card li:last-child { border-bottom: 0; }

/* FAQ */
.faq-list { margin: 22px 0 32px; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-strong);
  padding-right: 30px;
  list-style: none;
  position: relative;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--accent-lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--accent-lime);
  font-weight: 400;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.faq-item summary:hover { color: var(--accent-lime); }
.faq-item-body {
  padding-top: 12px;
  color: var(--text-soft);
  line-height: 1.65;
}
.faq-item-body p { margin-bottom: 10px; }

/* Promo code box (kept for the betting/host-cities pages if we ever need one) */
.promo-code-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  background: var(--bg-elevated);
  border: 1.5px dashed var(--accent-lime);
  border-radius: 8px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-weight: 700;
  color: var(--accent-lime);
  letter-spacing: 0.08em;
}
.copy-btn {
  padding: 6px 12px;
  background: var(--accent-lime);
  color: var(--bg-deep);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-body);
  transition: background .15s ease;
}
.copy-btn:hover { background: var(--accent-lime-bright); }
.copy-btn.copied { background: var(--accent-gold); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 28px;
  margin-top: 60px;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-lime); }

.footer-about p { line-height: 1.6; color: var(--text-soft); font-size: 0.92rem; margin-bottom: 14px; }

.footer-rg {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-panel);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}
.age-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent-lime);
  color: var(--bg-deep);
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.footer-rg p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: inline-flex; }
  .header-cta-desktop { display: none; }

  .banner-track { height: 180px; }
  .banner-slide { padding: 0 22px; }
  .banner-copy { max-width: 58%; gap: 10px; }
  .banner-desc { font-size: 1.1rem; }
  .banner-slide .cta-btn { padding: 9px 16px; font-size: 0.82rem; }
  .banner-dots { left: 22px; bottom: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 40px 0 24px; }
  .section { padding: 28px 0; }
}

@media (max-width: 560px) {
  .banner-track { height: 160px; border-radius: 8px; }
  .banner-slide { padding: 0 16px; }
  .banner-desc { font-size: 0.9rem; line-height: 1.2; }
  .banner-copy { max-width: 60%; gap: 8px; }
  .banner-slide .cta-btn { padding: 7px 12px; font-size: 0.75rem; }
  .banner-dots { left: 16px; bottom: 10px; }
  .banner-dots button { width: 7px; height: 7px; }
  .banner-dots button[aria-current="true"] { width: 18px; }

  .content-figure { max-width: 100%; }
  .hero h1 { font-size: 1.85rem; }
  .hero .lede { font-size: 0.98rem; }
  .cta-btn { padding: 10px 18px; font-size: 0.88rem; }
  .cta-btn.large { padding: 13px 24px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
