/* ═══════════════════════════════════════════════════
   MyAfricanWorldCup.com — Shared Design System
   All inner pages link to this file
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --gold: #D4A017;
  --gold-light: #F2C94C;
  --green: #007A4D;
  --green-dark: #005535;
  --red: #C8102E;
  --black: #0A0A0A;
  --dark: #111111;
  --mid: #1E1E1E;
  --panel: #181818;
  --text: #E8E0D0;
  --muted: #8A7F70;
  --white: #FAF7F2;
  --col: 780px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,160,23,0.2);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: 0.12em;
  color: var(--gold); text-decoration: none;
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--black);
  padding: 0.45rem 1.2rem; border-radius: 2px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 10rem 2.5rem 5rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(212,160,23,0.1);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0A0A0A 0%, #141008 60%, #0A0A0A 100%);
}
.page-hero-pattern {
  position: absolute; inset: 0; opacity: 0.035;
  background-image:
    repeating-linear-gradient(60deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-60deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 40px);
}
.page-hero-content { position: relative; z-index: 1; max-width: var(--col); }
.page-label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.page-label::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--gold); }
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95; letter-spacing: 0.02em; color: var(--white);
  margin-bottom: 1.5rem;
}
.page-title em { color: var(--gold); font-style: normal; }
.page-standfirst {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic; color: var(--muted);
  max-width: 600px; line-height: 1.6;
}
.page-meta {
  display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.page-meta-item { font-size: 0.75rem; color: var(--muted); }
.page-meta-item strong { color: var(--gold-light); display: block; font-size: 1rem; font-weight: 500; }

/* ── ARTICLE BODY ── */
.article-wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 5rem 2.5rem;
}
.article-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--white);
  margin: 3.5rem 0 1rem;
  line-height: 1.25;
}
.article-wrap h2:first-child { margin-top: 0; }
.article-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--gold-light); margin: 2.5rem 0 0.75rem;
}
.article-wrap p {
  font-size: 1.05rem; color: var(--text);
  line-height: 1.85; margin-bottom: 1.4rem;
}
.article-wrap p:last-child { margin-bottom: 0; }
.article-wrap strong { color: var(--white); font-weight: 500; }
.article-wrap em { color: var(--gold-light); font-style: italic; }
.article-wrap a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--gold);
  margin: 3rem 0; padding: 1.5rem 2rem;
  background: rgba(212,160,23,0.05);
  border-radius: 0 3px 3px 0;
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-style: italic;
  color: var(--white); margin: 0 0 0.75rem;
  line-height: 1.5;
}
.pull-quote cite {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

/* Fact box */
.fact-box {
  background: var(--panel);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 3px; padding: 2rem;
  margin: 2.5rem 0;
}
.fact-box-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 1rem;
}
.fact-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.fact-box ul li {
  font-size: 0.9rem; color: var(--text);
  padding-left: 1.2rem; position: relative;
}
.fact-box ul li::before {
  content: '▸'; position: absolute; left: 0; color: var(--gold);
}

/* Stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin: 2.5rem 0;
}
.stat-cell {
  background: var(--panel); border: 1px solid rgba(212,160,23,0.15);
  padding: 1.5rem; border-radius: 3px; text-align: center;
}
.stat-cell .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; color: var(--gold); line-height: 1;
}
.stat-cell .lbl { font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; letter-spacing: 0.06em; }

/* Image placeholder (swap with real <img> tags) */
.img-block {
  width: 100%; aspect-ratio: 16/9;
  background: var(--panel);
  border: 1px solid rgba(212,160,23,0.1);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin: 2.5rem 0;
  position: relative; overflow: hidden;
}
.img-block::after {
  content: attr(data-caption);
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7); color: var(--muted);
  font-size: 0.75rem; padding: 0.5rem 1rem; text-align: left;
}

/* ── SIDEBAR LAYOUT (wide screens) ── */
.article-outer {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  align-items: start;
}
.article-sidebar { position: sticky; top: 6rem; }
.sidebar-box {
  background: var(--panel);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: 3px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-box h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem; letter-spacing: 0.12em; color: var(--gold);
  margin-bottom: 1rem;
}
.sidebar-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-box ul li a {
  font-size: 0.82rem; color: var(--muted); text-decoration: none;
  transition: color 0.2s; display: flex; align-items: center; gap: 0.5rem;
}
.sidebar-box ul li a:hover { color: var(--gold); }
.sidebar-box ul li a::before { content: '→'; color: var(--gold); font-size: 0.7rem; }
.sidebar-source {
  font-size: 0.75rem; color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.75rem; margin-top: 0.75rem;
}
.sidebar-source a { color: var(--gold); text-decoration: none; }

/* ── BREADCRUMB ── */
.breadcrumb {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ── NAV BETWEEN PAGES ── */
.chapter-nav {
  background: var(--panel);
  border-top: 1px solid rgba(212,160,23,0.15);
  padding: 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.chapter-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s; display: flex; align-items: center; gap: 0.5rem;
}
.chapter-nav a:hover { color: var(--gold); }
.chapter-nav .ch-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-style: italic;
  color: var(--white); margin-top: 0.25rem;
  font-weight: 400; letter-spacing: 0;
  text-transform: none;
}
.chapter-nav .prev { text-align: left; }
.chapter-nav .next { text-align: right; }
.chapter-nav .home-btn {
  background: none; border: 1px solid rgba(212,160,23,0.3);
  color: var(--gold); padding: 0.5rem 1.2rem; border-radius: 2px;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.chapter-nav .home-btn:hover { border-color: var(--gold); background: rgba(212,160,23,0.08); }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(212,160,23,0.15);
  padding: 3rem 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; color: var(--gold); margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.8rem; color: var(--muted); max-width: 240px; }
.footer-col h4 {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--muted);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--black);
  padding: 0.85rem 2.2rem; border-radius: 2px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  border: 1px solid rgba(212,160,23,0.4); color: var(--gold);
  padding: 0.85rem 2.2rem; border-radius: 2px;
  font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(212,160,23,0.08); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.3s ease both; }

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .article-outer { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 680px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links, .nav-cta { display: none; }
  .page-hero { padding: 8rem 1.2rem 3rem; }
  .article-wrap, .article-outer { padding: 3rem 1.2rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .chapter-nav { flex-direction: column; align-items: flex-start; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
