/* =========================================================
   AFZ v9.0.0 — Commit 001
   Homepage stabilization layer
   - Fixes image paths actually present in AFZ-0307
   - Replaces fragile inline patch behavior with one final override file
   ========================================================= */
:root{
  --afz-green:#081C15;
  --afz-green-2:#0B2A17;
  --afz-gold:#D4A017;
  --afz-gold-2:#E8B84B;
  --afz-cream:#F8F5F0;
}

/* Header/menu: less crowded */
.header .nav{gap:12px!important;}
.header .nav a{font-size:12px!important;white-space:nowrap!important;}
@media(max-width:1120px){.header .nav a[href="#tv"]{display:none!important;}}

/* Hero: real image path from archive */
.afz-rise-hero{
  margin-top:54px!important;
  min-height:680px!important;
  background:
    linear-gradient(90deg,rgba(2,8,5,.72) 0%,rgba(2,8,5,.48) 48%,rgba(2,8,5,.18) 100%),
    url('../assets/hero/hero-worldcup.jpg') center/cover no-repeat!important;
  border-bottom:1px solid rgba(232,184,75,.28)!important;
}
.afz-rise-hero::before{
  opacity:.22!important;
  background:
    radial-gradient(circle at 18% 18%,rgba(232,184,75,.32),transparent 34%),
    radial-gradient(circle at 85% 14%,rgba(11,94,47,.22),transparent 36%)!important;
}
.afz-rise-hero::after{
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(3,10,6,.58))!important;
}
.afz-rise-title{max-width:860px!important;text-shadow:0 16px 42px rgba(0,0,0,.46)!important;}
.afz-rise-sub{max-width:720px!important;color:rgba(255,255,255,.88)!important;}
.afz-rise-ctas{margin-top:28px!important;}
.afz-rise-btn.primary{background:linear-gradient(135deg,var(--afz-gold-2),#FFD766)!important;color:#081C15!important;}
.afz-rise-btn.secondary{background:rgba(255,255,255,.08)!important;color:#fff!important;border:1px solid rgba(232,184,75,.36)!important;}

/* Hero tracker card */
.africa-survival-card{
  background:rgba(4,12,7,.68)!important;
  border-color:rgba(232,184,75,.46)!important;
  backdrop-filter:blur(12px)!important;
}
.africa-qualified-badge{min-height:170px!important;padding:12px!important;background:rgba(255,255,255,.045)!important;}
.africa-qualified-badge img{max-width:190px!important;}
.africa-country-pill.is-eliminated{opacity:.55!important;filter:saturate(.55);}

/* Africa tracker: real image path + stronger narrative */
.afz-tracker-premium{
  background:
    linear-gradient(180deg,rgba(2,12,7,.80),rgba(2,18,10,.96)),
    url('../assets/hero/hero-worldcup.jpg') center/cover fixed no-repeat!important;
  padding:38px 0 48px!important;
}
.afz-tracker-panel{
  background:
    radial-gradient(circle at 90% 90%,rgba(232,184,75,.14),transparent 32%),
    linear-gradient(135deg,rgba(2,38,18,.90),rgba(3,18,10,.93) 55%,rgba(2,10,6,.97))!important;
  border:1.5px solid rgba(232,184,75,.72)!important;
}
.afz-tracker-titlewrap h2{letter-spacing:-.06em!important;}
.afz-tracker-stats{grid-template-columns:repeat(3,minmax(128px,150px))!important;}
.afz-statbox strong{font-size:36px!important;}
.afz-qualified-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.afzq-card{min-height:90px!important;}
.afzq-card.is-eliminated{
  border-color:rgba(255,255,255,.16)!important;
  background:linear-gradient(90deg,rgba(20,23,21,.90),rgba(6,10,8,.88)),var(--team-bg)!important;
  filter:saturate(.70);
}
.afzq-card.is-eliminated .afzq-copy span{color:rgba(255,255,255,.62)!important;}
.afzq-status-pill{
  display:inline-flex;align-items:center;gap:6px;margin-top:7px;padding:4px 8px;border-radius:999px;
  font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;background:rgba(232,184,75,.12);color:var(--afz-gold-2);
  border:1px solid rgba(232,184,75,.30);
}
.afzq-card.is-eliminated .afzq-status-pill{background:rgba(255,255,255,.08);color:rgba(255,255,255,.74);border-color:rgba(255,255,255,.16);}
.afz-tracker-subhead-elim{color:var(--afz-gold-2)!important;margin-top:2px!important;}
.afz-empty-state{min-height:110px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.62);font-weight:800;text-align:center;border:1px dashed rgba(232,184,75,.26);border-radius:18px;background:rgba(255,255,255,.04);padding:20px;}

/* Match Center contrast on dark section */
.match-carousel-section{background:linear-gradient(180deg,#031007,#06190D)!important;color:#fff!important;}
.match-carousel-section [id^="mcf-"]{color:#fff!important;border-color:rgba(232,184,75,.28)!important;}
.match-carousel-section #mcf-all{background:var(--afz-gold)!important;color:#081C15!important;}

/* Sponsor: image only, no heavy text printed over the banner */
.partner-hero-card{
  min-height:330px!important;padding:0!important;align-items:stretch!important;
  background:linear-gradient(90deg,rgba(8,28,21,.10),rgba(8,28,21,.02)),url('../assets/sponsors/partner-wide.jpg') center/cover no-repeat!important;
}
.partner-hero-card:after{display:none!important;}
.partner-hero-content{position:absolute!important;left:24px!important;bottom:22px!important;z-index:2!important;}
.partner-hero-content h3,.partner-hero-content p{display:none!important;}
.partner-hero-content a{border-radius:999px!important;box-shadow:0 14px 28px rgba(0,0,0,.28)!important;}
.partner-insert{right:22px!important;left:auto!important;}

/* Performance/UX small fixes */
img[width],img[height]{height:auto;}
@media(max-width:980px){
  .afz-qualified-grid{grid-template-columns:1fr 1fr!important;}
  .afz-tracker-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%;}
}
@media(max-width:640px){
  .afz-rise-hero{min-height:auto!important;}
  .afz-rise-grid{padding:52px 0 42px!important;}
  .afz-qualified-grid{grid-template-columns:1fr!important;}
  .afz-tracker-stats{grid-template-columns:1fr!important;}
  .partner-hero-card{min-height:240px!important;}
}
