/* =====================================================
   FIFA World Cup 2026 Fan Site - styles.css
   Dark / gold theme, responsive, zero external deps
   ===================================================== */

:root {
  --bg: #07091a;
  --bg-2: #0e1230;
  --bg-3: #161b3d;
  --ink: #f3f5fb;
  --ink-soft: #b9bdd6;
  --ink-mute: #7a7f9c;
  --gold: #ffd700;
  --gold-deep: #b8860b;
  --gold-soft: #fff0a6;
  --red: #e34a4a;
  --teal: #00f0ff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1240px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: radial-gradient(ellipse at top, #182056 0%, #0a0e2a 38%, #050816 100%);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--gold); color: #1a1300; }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7, 9, 26, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(7, 9, 26, 0.92); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 28px; filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5)); }
.brand-text { font-weight: 900; letter-spacing: 0.04em; font-size: 18px; }
.brand-text small { display: block; font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 0.3em; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 6px 4px; position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; padding: 4px 8px; }

/* ============== HERO ============== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.95) contrast(1.05);
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 9, 26, 0.35) 0%, rgba(7, 9, 26, 0.65) 60%, rgba(7, 9, 26, 0.95) 100%),
              radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0) 0%, rgba(7, 9, 26, 0.45) 100%);
}
.hero-content { max-width: var(--maxw); text-align: center; position: relative; z-index: 1; }
.hero-chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 215, 0, 0.12); color: var(--gold-soft);
  border: 1px solid rgba(255, 215, 0, 0.35);
  font-size: 13px; letter-spacing: 0.2em; font-weight: 600;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(180deg, #fff8d8 0%, #ffd700 45%, #b8860b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.25);
}
.hero-title span { display: block; font-size: 0.78em; }
.hero-sub {
  font-size: clamp(20px, 2.2vw, 28px); color: var(--ink-soft);
  margin: 22px 0 8px; font-weight: 500; letter-spacing: 0.05em;
}
.hero-meta { color: var(--ink-mute); font-size: 14px; letter-spacing: 0.18em; }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  transition: all 0.25s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--gold); color: #1a1300; box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 215, 0, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 800px; margin: 0 auto; padding: 0 24px;
  z-index: 1;
}
.stat {
  background: rgba(7, 9, 26, 0.7); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 12px; text-align: center;
  backdrop-filter: blur(8px);
}
.stat b { display: block; font-size: 26px; color: var(--gold); font-weight: 900; }
.stat span { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.1em; }

/* ============== SECTION ============== */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: 100px 28px;
}
.section-alt {
  background: linear-gradient(180deg, rgba(14, 18, 48, 0.6) 0%, rgba(7, 9, 26, 0.6) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 100%;
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.4em;
  color: var(--gold); margin-bottom: 18px; padding: 6px 0;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.section h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.1;
  margin: 0 0 18px; letter-spacing: -0.01em;
}
.lead { color: var(--ink-soft); font-size: 17px; max-width: 700px; margin: 0 auto; }

/* ============== RECAP ============== */
.recap-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start;
}
.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.img-frame.big img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.img-frame figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(0, 0, 0, 0.65); color: var(--gold-soft);
  padding: 8px 14px; border-radius: 8px; font-size: 13px;
  backdrop-filter: blur(6px);
}
.recap-numbers {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px;
}
.rn {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; text-align: center;
}
.rn b { display: block; font-size: 32px; color: var(--gold); font-weight: 900; line-height: 1; }
.rn span { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 6px; }
.recap-text h3 { font-size: 24px; font-weight: 800; margin: 0 0 16px; color: var(--ink); }
.recap-text p { color: var(--ink-soft); font-size: 16px; }
.recap-text p b { color: var(--gold); }

.quote {
  margin: 32px 0 0; padding: 24px 28px; border-left: 3px solid var(--gold);
  background: rgba(255, 215, 0, 0.05); border-radius: 0 12px 12px 0;
}
.quote blockquote { margin: 0; font-size: 17px; font-style: italic; color: var(--ink); line-height: 1.6; }
.quote cite { display: block; margin-top: 12px; color: var(--ink-mute); font-size: 13px; font-style: normal; letter-spacing: 0.05em; }

/* ============== AWARDS ============== */
.award-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.award {
  position: relative; padding: 32px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.award::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ink-mute);
}
.award.gold::before { background: var(--gold); }
.award:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); }
.award-ico { font-size: 36px; margin-bottom: 14px; }
.award h3 {
  font-size: 13px; font-weight: 700; color: var(--gold); margin: 0 0 8px;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.award-name { font-size: 20px; font-weight: 800; margin: 6px 0 4px; }
.award-name small { color: var(--ink-mute); font-weight: 500; font-size: 14px; }
.award-stat { color: var(--gold); font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.award-note { color: var(--ink-soft); font-size: 13px; line-height: 1.6; margin: 0; }

/* ============== SCORERS TABLE ============== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.scorers { width: 100%; border-collapse: collapse; min-width: 720px; }
.scorers th, .scorers td { padding: 14px 18px; text-align: left; font-size: 14px; }
.scorers thead th {
  background: rgba(255, 215, 0, 0.08); color: var(--gold);
  font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.scorers tbody tr { border-top: 1px solid var(--line); transition: background 0.2s; }
.scorers tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.scorers tbody tr:nth-child(1) td:first-child { color: var(--gold); font-weight: 900; }
.scorers tbody tr:nth-child(1) { background: rgba(255, 215, 0, 0.05); }
.scorers .num { text-align: right; font-variant-numeric: tabular-nums; }
.scorers td:first-child { font-weight: 700; color: var(--ink); width: 40px; }

/* ============== TIMELINE ============== */
.tally { display: grid; gap: 8px; max-width: 720px; margin: 0 auto 60px; }
.tally-bar { background: rgba(255, 255, 255, 0.05); border-radius: 999px; height: 28px; position: relative; overflow: hidden; }
.tally-bar span {
  display: block; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
  height: 100%; color: #1a1300; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; padding: 0 14px;
  border-radius: 999px; min-width: 100px;
}
.timeline { list-style: none; padding: 0; margin: 0; max-width: 920px; margin: 0 auto; }
.timeline li {
  display: grid; grid-template-columns: 60px 1fr 1fr; gap: 16px;
  padding: 16px 20px; border-radius: 12px;
  border: 1px solid var(--line); margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.timeline li:hover { transform: translateX(6px); border-color: var(--gold); background: rgba(255, 215, 0, 0.04); }
.timeline li b { color: var(--gold); font-size: 18px; font-weight: 900; }
.timeline li.latest {
  border-color: var(--gold); background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.02) 100%);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 30px rgba(255, 215, 0, 0.15);
}
.ti-host { color: var(--ink-mute); font-size: 14px; }
.ti-winner { color: var(--ink); font-weight: 600; font-size: 15px; text-align: right; }

/* ============== STADIUMS ============== */
.flags-strip { margin: 0 auto 50px; max-width: 1400px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.flags-strip img { width: 100%; }
.stadium-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stadium {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  transition: all 0.3s; overflow: hidden;
}
.stadium::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--ink-mute);
}
.stadium:hover { transform: translateY(-4px); border-color: var(--gold); }
.stadium:hover::before { background: var(--gold); }
.stadium.final { border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.02) 100%); }
.stadium.final::before { background: var(--gold); }
.stadium.open { border-color: var(--teal); }
.stadium.open::before { background: var(--teal); }
.stadium-cap {
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.1em; margin-bottom: 8px;
}
.stadium h4 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.stadium p { color: var(--ink-soft); font-size: 13px; margin: 0; }
.stadium-tag {
  display: inline-block; margin-top: 10px; font-size: 11px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(255, 215, 0, 0.15); color: var(--gold);
  font-weight: 700; letter-spacing: 0.05em;
}
.stadium.open .stadium-tag { background: rgba(0, 240, 255, 0.15); color: var(--teal); }

/* ============== VIDEOS ============== */
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.video-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.video-frame {
  position: relative; aspect-ratio: 16/9; background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card h4 { font-size: 16px; font-weight: 800; margin: 16px 18px 6px; }
.video-card p { color: var(--ink-soft); font-size: 13px; margin: 0 18px 18px; }
.video-note { color: var(--ink-mute); font-size: 12px; text-align: center; margin-top: 36px; }

/* ============== GALLERY ============== */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px; gap: 14px;
}
.g-item {
  display: block; position: relative; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line); background: #000;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s, filter 0.3s;
}
.g-item:hover img { transform: scale(1.06); filter: brightness(1.1); }
.g1 { grid-column: span 2; grid-row: span 2; }
.g2 { grid-column: span 1; grid-row: span 1; }
.g3 { grid-column: span 1; grid-row: span 1; }
.g4 { grid-column: span 1; grid-row: span 1; }
.g5 { grid-column: span 1; grid-row: span 2; }
.g6 { grid-column: span 1; grid-row: span 1; }
.g7 { grid-column: span 1; grid-row: span 1; }
.g8 { grid-column: span 2; grid-row: span 1; }
.g9 { grid-column: span 1; grid-row: span 1; }
.g10 { grid-column: span 2; grid-row: span 1; }
.g11 { grid-column: span 1; grid-row: span 1; }
.g12 { grid-column: span 1; grid-row: span 1; }
.gallery-note { color: var(--ink-mute); font-size: 12px; text-align: center; margin-top: 24px; }

/* ============== FACTS ============== */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px;
}
.fact {
  padding: 28px 22px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}
.fact:hover { border-color: var(--gold); transform: translateY(-3px); }
.fact b {
  display: block; font-size: clamp(28px, 3vw, 40px);
  color: var(--gold); font-weight: 900; line-height: 1.05;
  margin-bottom: 10px;
}
.fact span { color: var(--ink-soft); font-size: 13px; }

/* ============== FOOTER ============== */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #07091a 0%, #03040d 100%);
  padding: 80px 28px 28px;
}
.footer-cols {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr; gap: 40px;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-cols p, .footer-cols a { color: var(--ink-soft); font-size: 14px; line-height: 1.7; display: block; }
.footer-cols a:hover { color: var(--gold); }
.footer-cols h5 { font-size: 13px; color: var(--gold); letter-spacing: 0.2em; margin: 6px 0 18px; text-transform: uppercase; }
.footer-bar {
  max-width: var(--maxw); margin: 60px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-mute); font-size: 12px;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px;
  border-radius: 50%; border: 0; background: var(--gold); color: #1a1300;
  font-size: 20px; font-weight: 900; cursor: pointer;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all 0.3s; box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .recap-grid { grid-template-columns: 1fr; gap: 40px; }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
  .stadium-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 50px 1fr; }
  .timeline li .ti-winner { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: fixed; top: 60px; left: 0; right: 0; background: rgba(7, 9, 26, 0.97); flex-direction: column; padding: 24px 28px; gap: 18px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .award-grid { grid-template-columns: 1fr; }
  .stadium-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g1, .g5, .g8, .g10 { grid-column: span 2; }
  .g1, .g5 { grid-row: span 2; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 20px; }
  .recap-numbers { grid-template-columns: 1fr 1fr; }
}
