/* =============================================
   UFC Bet Rank — style.css
   Kinetic Poppins / deep navy / electric gold
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ---- Reset & tokens ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D1B2A;
  --gold: #F5A623;
  --chalk: #F7F7F2;
  --navy-light: #152336;
  --navy-mid: #1e3352;
  --gold-dark: #d4891a;
  --muted: #9AAABB;
  --body-max: 1160px;
  --content-max: 780px;
  --radius: 0;
  --header-h: 64px;
  --transition: 200ms ease;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.35);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background: var(--navy);
  color: var(--chalk);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--chalk);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.5rem; margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-top: 2rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: underline; }
a:hover { color: var(--gold-dark); }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* HR decoration (required by structure lottery) */
hr {
  border: none;
  border-top: 2px solid var(--gold);
  margin: 0.6rem 0 1.2rem;
}

/* ---- Kinetic animation ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}
@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(245,166,35,0.4); }
  50%       { text-shadow: 0 0 24px rgba(245,166,35,0.9); }
}
@keyframes staggerIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.kinetic-split {
  background: linear-gradient(135deg, var(--chalk) 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.7s ease both, goldGlow 3s 0.8s ease-in-out infinite;
}

.reveal-fade {
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 0.2s both;
}

.reveal-stagger {
  opacity: 0;
  animation: staggerIn 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-split, .reveal-fade, .reveal-stagger {
    animation: none !important;
    -webkit-text-fill-color: var(--chalk);
    background: none;
    color: var(--chalk);
    opacity: 1;
  }
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--navy-light);
  border-top: 2px solid var(--gold);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--body-max);
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand:hover { color: var(--chalk); }

/* Nav */
.primary-nav {
  flex: 1;
  overflow: hidden;
}
.primary-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.primary-nav p::-webkit-scrollbar { display: none; }
.primary-nav p a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--chalk);
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.primary-nav p a:hover,
.primary-nav p a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Header CTAs */
.header-ctas {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  padding: 8px;
}
.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- CTA buttons ---- */
.cta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid var(--gold);
}
.cta-signup {
  background: var(--gold);
  color: var(--navy);
}
.cta-signup:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.cta-login {
  background: transparent;
  color: var(--gold);
}
.cta-login:hover { background: var(--gold); color: var(--navy); }

/* ---- Page wrapper with bottom-header offset ---- */
body { padding-bottom: calc(var(--header-h) + 1rem); }

/* ---- Main containers ---- */
.main-home,
.main-inner {
  min-height: 100vh;
  padding-top: 2rem;
}

.wrap {
  max-width: var(--body-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Hero (home) ---- */
.hero-section {
  padding: 3rem 0 2rem;
}
.hero-article {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-height: 80vh;
}
.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-media {
  flex: 0 0 42%;
  max-width: 480px;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero-media-placeholder {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 2px solid var(--gold);
}
.hero-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.18;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}

.hero-h1 { margin-bottom: 1rem; }
.hero-desc { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; }

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid var(--gold);
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ---- Byline ---- */
.byline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.byline strong { color: var(--chalk); }
.byline time { color: var(--gold); }

/* ---- Stage badge ---- */
.stage-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--muted);
  color: var(--muted);
}
.stage-awareness { border-color: #4da6ff; color: #4da6ff; }
.stage-consideration { border-color: var(--gold); color: var(--gold); }
.stage-decision { border-color: #4dffaa; color: #4dffaa; }

/* ---- Content + aside layout ---- */
.content-with-aside {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.content-main {
  flex: 1;
  min-width: 0;
  max-width: var(--content-max);
}
.content-aside {
  flex: 0 0 260px;
  width: 260px;
  position: sticky;
  top: auto;
  bottom: calc(var(--header-h) + 1rem);
}

/* ---- Page sections ---- */
.page-header-section { padding: 2.5rem 0 1.5rem; }
.page-header-article { max-width: var(--content-max); }
.page-intro { font-size: 1.05rem; color: var(--muted); margin-bottom: 0; }
.page-body-section { padding: 1rem 0 3rem; }

/* ---- Aside widgets ---- */
.aside-widget {
  background: var(--navy-light);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-card);
}
.aside-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 0.3rem;
}
.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-list li { margin-bottom: 0; }
.aside-list a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--chalk);
  text-decoration: none;
  border-bottom: 1px solid rgba(247,247,242,0.06);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.aside-list a:hover { color: var(--gold); }

.aside-cta-widget { text-align: center; }
.aside-cta-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; }
.aside-cta-widget .cta { width: 100%; justify-content: center; }

/* ---- Cards grid (home children) ---- */
.child-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.child-card {
  background: var(--navy-light);
  padding: 1.5rem;
  border: 1px solid rgba(245,166,35,0.2);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.child-card:hover { border-color: var(--gold); box-shadow: 0 6px 30px rgba(245,166,35,0.15); }
.child-card h3 { font-size: 1rem; margin-top: 0; margin-bottom: 0.5rem; }
.child-card h3 a { color: var(--chalk); text-decoration: none; }
.child-card h3 a:hover { color: var(--gold); }
.child-card p { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.75rem; }
.card-date { font-size: 0.72rem; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.read-more-link { font-size: 0.8rem; font-weight: 600; color: var(--gold); text-decoration: none; letter-spacing: 0.02em; }
.read-more-link:hover { color: var(--gold-dark); }

/* Stagger delay helpers */
.child-card:nth-child(1) { animation-delay: 0.05s; }
.child-card:nth-child(2) { animation-delay: 0.12s; }
.child-card:nth-child(3) { animation-delay: 0.19s; }
.child-card:nth-child(4) { animation-delay: 0.26s; }
.child-card:nth-child(5) { animation-delay: 0.33s; }
.child-card:nth-child(6) { animation-delay: 0.40s; }

/* ---- Rankings DL (structure lottery: dl>dt>a + dd) ---- */
.rankings-dl { margin: 0; }
.rankings-dl dt {
  margin-top: 1rem;
  font-weight: 700;
}
.rankings-dl dt a {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.05rem;
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.rankings-dl dt a:hover { color: var(--chalk); }
.rankings-dl dd {
  margin-left: 0;
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold);
  margin-bottom: 0.75rem;
}

/* Child DL in ranking */
.child-dl { margin: 0; }
.child-dl dt { margin-top: 1rem; font-weight: 700; }
.child-dl dt a {
  color: var(--gold);
  text-decoration: none;
  font-size: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.child-dl dt a:hover { color: var(--chalk); }
.child-dl dd {
  margin-left: 0;
  font-size: 0.86rem;
  color: var(--muted);
  padding-left: 0.75rem;
  border-left: 2px solid rgba(245,166,35,0.4);
  margin-bottom: 0.5rem;
}

/* ---- Home rankings div ---- */
.home-rankings-section { padding: 2rem 0; }
.kinetic-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--chalk);
}

/* ---- Review hero ---- */
.review-hero-wrap { margin-bottom: 1.5rem; }
.review-hero-img { width: 100%; height: auto; display: block; max-height: 360px; object-fit: cover; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: underline; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-hidden] { margin: 0 0.3rem; }

/* ---- FAQ content styles ---- */
.faq-content details {
  border: 1px solid rgba(245,166,35,0.2);
  background: var(--navy-light);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}
.faq-content summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-content summary::-webkit-details-marker { display: none; }
.faq-content details[open] summary { color: var(--gold); }

/* ---- Author div ---- */
.author-section { margin-top: 3rem; }
.author-section-heading { color: var(--gold); }
.author-card {
  background: var(--navy-light);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
  margin-top: 1rem;
}
.author-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--chalk);
  margin-bottom: 0.2rem;
}
.author-credentials {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.author-bio { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }

/* ---- Footer ---- */
.site-footer {
  background: #080f18;
  border-top: 2px solid var(--gold);
  padding-bottom: calc(var(--header-h) + 0.5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--body-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer-blurb { font-size: 0.82rem; color: var(--muted); }
.footer-author { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.footer-author strong { color: var(--chalk); }

.footer-links-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li { margin-bottom: 0.15rem; }
.footer-links-list a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-links-list a:hover { color: var(--gold); }

.footer-trust {
  max-width: var(--body-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(247,247,242,0.08);
}
.trust-links { font-size: 0.78rem; }
.trust-links a { color: var(--muted); text-decoration: underline; margin: 0 0.25rem; }
.trust-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--body-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(247,247,242,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.copyright { font-size: 0.76rem; color: var(--muted); }
.rg-notice {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 520px;
  text-align: right;
  opacity: 0.8;
}

/* ---- Content body styles ---- */
.content-main h2 { color: var(--chalk); }
.content-main h3 { color: var(--chalk); }
.content-main a { color: var(--gold); text-decoration: underline; }
.content-main a:hover { color: var(--gold-dark); }
.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}
.content-main th {
  background: var(--navy-mid);
  color: var(--gold);
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.content-main td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(247,247,242,0.07);
  vertical-align: top;
}
.content-main tr:hover td { background: var(--navy-light); }
.content-main blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1.25rem;
  background: var(--navy-light);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}
.content-main code {
  background: var(--navy-mid);
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
  color: var(--gold);
}
.content-main pre {
  background: var(--navy-mid);
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ---- Mobile nav ---- */
@media (max-width: 768px) {
  .primary-nav {
    position: fixed;
    bottom: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-light);
    border-top: 1px solid rgba(245,166,35,0.3);
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 850;
    max-height: 70vh;
    overflow-y: auto;
  }
  .primary-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav p {
    flex-direction: column;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0;
  }
  .primary-nav p a {
    width: 100%;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(247,247,242,0.07);
    font-size: 0.92rem;
  }
  .nav-toggle { display: flex; }

  .header-inner { gap: 0.5rem; }
  .header-ctas { gap: 0.3rem; }
  .cta { padding: 0.45rem 0.6rem; font-size: 0.72rem; }
}

/* ---- Hero responsive ---- */
@media (max-width: 900px) {
  .hero-article {
    flex-direction: column;
    min-height: auto;
    gap: 1.5rem;
  }
  .hero-media { flex: none; width: 100%; max-width: 100%; }
  .hero-content { order: -1; }
}

/* ---- Content + aside responsive ---- */
@media (max-width: 860px) {
  .content-with-aside {
    flex-direction: column;
    gap: 2rem;
  }
  .content-aside {
    flex: none;
    width: 100%;
    position: static;
  }
  .content-main { max-width: 100%; }
}

/* ---- Footer responsive ---- */
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
  .rg-notice { text-align: left; }
}

/* ---- Misc ---- */
img { max-width: 100%; height: auto; }
.page-h1 { margin-bottom: 0.75rem; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}