/* ─── CSF SHARED ARTICLE STYLES ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@400;500&family=Spectral:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --red:       #c83c28;
  --red-hot:   #dc2814;
  --navy:      #1e2e3e;
  --navy-mid:  #3c5064;
  --gold:      #dcb478;
  --gold-deep: #c8a050;
  --ink:       #0e0e0e;
  --coal:      #1a1a1a;
  --ash:       #2a2a2a;
  --smoke:     #555;
  --mist:      #999;
  --paper:     #f2ede6;
  --white:     #fff;

  --f-display: 'Bebas Neue', Impact, sans-serif;
  --f-ui:      'Barlow Condensed', sans-serif;
  --f-body:    'Spectral', Georgia, serif;
  --f-sans:    'Barlow', sans-serif;

  /* Extended tokens — map hardcoded values */
  --text-body:    #ccc;      /* article body paragraph text */
  --surface-low:  #111;      /* fight block, deepest surface */
  --surface-hover:#1f1f1f;   /* card hover state */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--white); font-family: var(--f-body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── HEADER ─── */
header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { width: 46px; height: 46px; object-fit: contain; border-radius: 3px; }
.logo-text { line-height: 1; }
.logo-text .top  { font-family: var(--f-display); font-size: 20px; letter-spacing: 2px; color: var(--white); display: block; }
.logo-text .bot  { font-family: var(--f-display); font-size: 12px; letter-spacing: 4px; color: var(--gold); display: block; }
nav { display: flex; gap: 2px; }
nav a {
  font-family: var(--f-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--mist);
  padding: 6px 14px; transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.back-btn {
  margin-left: auto;
  font-family: var(--f-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); padding: 7px 18px;
  border: 1px solid var(--gold-deep); transition: all 0.15s;
}
.back-btn:hover { background: var(--gold); color: var(--ink); }

/* ─── ARTICLE LAYOUT ─── */
.article-wrap {
  max-width: 780px;
  margin: 56px auto 80px;
  padding: 0 28px;
}
.breadcrumb {
  font-family: var(--f-ui); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--mist); margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--gold); transition: color 0.12s; }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: var(--ash); }

.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white;
  font-family: var(--f-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 20px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: white;
  animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.75)} }

h1.article-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.0;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 18px;
}
.article-meta {
  font-family: var(--f-ui); font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--mist);
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--ash);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.article-meta strong { color: var(--white); }
.article-meta .dot { color: var(--ash); }

/* Hero image / visual */
.hero-visual {
  width: 100%; height: 400px;
  border: 1px solid var(--ash);
  margin-bottom: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 100px; position: relative; overflow: hidden;
  background-size: cover;
  background-position: center;
}
/* When a real image is set via background-image, hide the emoji */
.hero-visual[style*="background-image"] { font-size: 0; }
.hero-visual .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 20px 20px 14px;
  font-family: var(--f-ui); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--mist);
}

/* Body text */
.article-body {
  max-width: 68ch; /* cap line length for readability */
}
.article-body p {
  font-size: 18px; line-height: 1.88; color: var(--text-body); margin-bottom: 22px;
}
.article-body h2 {
  font-family: var(--f-display); font-size: 28px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white);
  margin: 44px 0 18px; padding-top: 44px;
  border-top: 1px solid var(--ash);
}
.article-body strong { color: var(--white); font-weight: 600; }
.article-body em { color: var(--mist); font-style: italic; }

/* Pull quote */
.pullquote {
  background: var(--coal);
  padding: 28px 28px 24px;
  margin: 36px 0;
  font-family: var(--f-body);
  font-size: 20px;
  font-style: italic;
  line-height: 1.65;
  color: var(--paper);
  position: relative;
}
.pullquote::before {
  content: '\201C';
  font-family: var(--f-body);
  font-size: 80px;
  line-height: 0.75;
  color: var(--red);
  font-style: normal;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Info card */
.info-card {
  background: var(--navy);
  border: 1px solid var(--navy-mid);
  padding: 24px;
  margin: 36px 0;
}
.info-card h3 {
  font-family: var(--f-display); font-size: 18px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.info-row {
  display: flex; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--f-sans); font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--mist); min-width: 160px; }
.info-val { color: var(--white); }

/* Stats row */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 36px 0;
}
.stat-box {
  background: var(--coal); border: 1px solid var(--ash);
  padding: 20px; text-align: center;
}
.stat-box .num {
  font-family: var(--f-display); font-size: 38px; letter-spacing: 2px;
  color: var(--white); line-height: 1;
}
.stat-box .label {
  font-family: var(--f-ui); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--mist); margin-top: 6px;
}

/* Fight preview block */
.fight-block {
  background: var(--surface-low); border: 1px solid var(--ash);
  margin: 28px 0; overflow: hidden;
}
.fight-block-head {
  background: var(--red); padding: 10px 18px;
  font-family: var(--f-display); font-size: 16px;
  letter-spacing: 2px; text-transform: uppercase;
}
.fight-block-body { padding: 18px; }
.matchup {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.fighter { font-family: var(--f-display); font-size: 22px; letter-spacing: 1px; }
.vs { font-family: var(--f-display); font-size: 18px; color: var(--red); }
.fight-block-body p { font-family: var(--f-sans); font-size: 13px; color: var(--mist); margin-bottom: 8px; }
.pick {
  font-family: var(--f-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--red);
}

/* Related */
.related-section {
  margin-top: 56px; padding-top: 32px;
  border-top: 2px solid var(--ash);
}
.related-section h3 {
  font-family: var(--f-display); font-size: 22px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white); margin-bottom: 20px;
}
.related-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--ash);
  transition: background 0.12s;
}
.related-link:hover .rel-title { color: var(--gold); }
.rel-tag {
  font-family: var(--f-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  white-space: nowrap; flex-shrink: 0;
}
.rel-title {
  font-family: var(--f-display); font-size: 17px; letter-spacing: 0.5px;
  color: var(--white); transition: color 0.12s;
}

/* Footer */
footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  text-align: center;
  padding: 28px 32px;
}
.footer-logo-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 10px;
}
.footer-logo-row img { width: 36px; height: 36px; object-fit: contain; }
.footer-logo-row .name {
  font-family: var(--f-display); font-size: 18px; letter-spacing: 2px;
  color: white;
}
footer p {
  font-family: var(--f-ui); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--mist);
}

/* ─── ACCESSIBILITY ──────────────────────────────────────────────── */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 18px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--ink); outline-offset: 2px; }

/* Disabled nav placeholders — match nav link appearance */
nav .nav-item {
  font-family: var(--f-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--mist);
  padding: 6px 14px; cursor: default; user-select: none;
}

/* Focus indicators — gold outline on all interactive elements */
a:focus-visible,
button:focus-visible,
[role="link"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Badge — fix contrast on dim variant */
.badge-dim { color: var(--mist); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */

/* Tablet — 900px */
@media (max-width: 900px) {
  .header-inner { padding: 0 20px; gap: 20px; }
  nav a { padding: 6px 10px; font-size: 12px; }
  .article-wrap { margin: 40px auto 60px; padding: 0 20px; }
  .hero-visual { height: 300px; }
  h1.article-title { font-size: clamp(28px, 5vw, 44px); }
}

/* Mobile — 600px */
@media (max-width: 600px) {
  /* Header */
  .header-inner { padding: 0 16px; gap: 10px; height: 56px; }
  .logo-img { width: 36px; height: 36px; }
  .logo-text .top { font-size: 16px; letter-spacing: 1px; }
  .logo-text .bot { font-size: 10px; letter-spacing: 3px; }
  nav { display: none; }
  .back-btn { font-size: 10px; padding: 6px 12px; letter-spacing: 1px; }

  /* Article layout */
  .article-wrap { margin: 24px auto 48px; padding: 0 16px; }
  h1.article-title { font-size: clamp(26px, 8vw, 36px); line-height: 1.05; }

  /* Hero visual */
  .hero-visual { height: 200px; }
  .hero-visual .caption { font-size: 10px; padding: 14px 14px 10px; }

  /* Body text */
  .article-body p { font-size: 17px; line-height: 1.75; }
  .article-body h2 { font-size: 22px; letter-spacing: 1px; margin: 28px 0 14px; padding-top: 28px; }

  /* Pull quote */
  .pullquote { font-size: 17px; padding: 16px 18px; margin: 28px 0; }

  /* Stats row — stack vertically */
  .stats-row { grid-template-columns: 1fr; gap: 10px; margin: 28px 0; }
  .stat-box .num { font-size: 32px; }

  /* Info card rows */
  .info-label { min-width: 110px; font-size: 13px; }
  .info-val { font-size: 13px; }
  .info-row { gap: 8px; padding: 8px 0; }
  .info-card { padding: 18px; }

  /* Fight blocks */
  .matchup { flex-direction: column; gap: 4px; text-align: center; }
  .fighter { font-size: 19px; }
  .vs { font-size: 14px; }

  /* Related links */
  .related-section { margin-top: 36px; }
  .related-section h3 { font-size: 18px; }
  .rel-title { font-size: 15px; }
  .related-link { gap: 10px; padding: 12px 0; }

  /* Footer */
  footer { padding: 20px 16px; }
  .footer-logo-row .name { font-size: 15px; }
}

/* Very small — 380px */
@media (max-width: 380px) {
  .article-wrap { padding: 0 12px; }
  h1.article-title { font-size: 24px; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-label { min-width: unset; }
}

/* ─── ENTRANCE ANIMATIONS ────────────────────────────────────────── */

/* Title slams in from above — fast deceleration, no bounce */
@keyframes slam-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cards rise up from below — assembles the grid */
@keyframes card-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Article page entrance cascade */
h1.article-title {
  animation: slam-down 0.30s cubic-bezier(0.15, 0, 0, 1) both;
}
.tag-pill {
  animation: slam-down 0.28s cubic-bezier(0.15, 0, 0, 1) 0.04s both;
}
.article-meta {
  animation: slam-down 0.28s cubic-bezier(0.15, 0, 0, 1) 0.10s both;
}
.hero-visual {
  animation: slam-down 0.34s cubic-bezier(0.15, 0, 0, 1) 0.16s both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; opacity: 1; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
