/*
Theme Name: Stream Affiliate LITE
Author: Simon
Description: Minimal, scalable streaming affiliate theme. Front page SEO + high-conversion Stream Online template. Bottom mobile nav. Hybrid Customizer + optional ACF.
Version: 2.4.4
License: GPL-2.0-or-later
Text Domain: stream-affiliate
*/

:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.10);
  --glass: rgba(255,255,255,.045);
  --glass2: rgba(255,255,255,.03);
  --shadow: 0 22px 80px rgba(0,0,0,.55);
  --radius: 22px;
  --max: 1120px;

  --accent:#e83664;
  --accent2:#ff5f87;
  --accent3:#7c86ff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1100px 700px at 18% -10%, rgba(232,54,100,.24), transparent 60%),
              radial-gradient(900px 650px at 90% 0%, rgba(255,95,135,.16), transparent 62%),
              radial-gradient(700px 600px at 82% 85%, rgba(124,134,255,.12), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  line-height:1.65;
  padding-bottom: 84px; /* bottom nav */
}
body:after{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.010) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.010) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity:.20;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.98}

.container{
  width:min(100% - 32px, var(--max));
  margin:0 auto;
}

.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.62);
  border-bottom:1px solid rgba(255,255,255,.10);
  transition: box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 16px 48px rgba(0,0,0,.40);
  background: rgba(7,10,18,.78);
  border-bottom-color: rgba(255,255,255,.14);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:12px;
}
.brand{display:flex; align-items:center; gap:10px; min-width:0}
.brand-mark{
  width:38px;height:38px;border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 18px 60px rgba(232,54,100,.35);
}
.brand-title{display:flex;flex-direction:column;line-height:1.12;min-width:0}
.brand-title strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-title span{font-size:12px;color:rgba(255,255,255,.62);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.header-right{display:flex;align-items:center;gap:10px}
.header-nav{display:flex;align-items:center;gap:8px}
.header-nav a{
  padding:10px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
  font-weight:900; font-size:13px;
}
.header-nav a:hover{background: rgba(255,255,255,.05); transform: translateY(-1px)}
.header-nav a.is-active{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.92)}
@media (max-width: 920px){ .header-nav{display:none} }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:900; font-size:14px;
  transition: transform .12s ease, background .12s ease, filter .12s ease;
}
.btn:hover{background: rgba(255,255,255,.06); transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn-primary{
  border:0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 20px 70px rgba(232,54,100,.33);
  position:relative; overflow:hidden;
}
.btn-primary:before{
  content:""; position:absolute; inset:-1px;
  background: radial-gradient(240px 140px at 20% 20%, rgba(255,255,255,.22), transparent 60%),
              linear-gradient(135deg, rgba(255,255,255,.08), transparent 44%);
  opacity:.75; pointer-events:none;
}
.btn-primary > *{position:relative; z-index:2}

.hero{padding: 32px 0 16px}
.hero-wrap{
  position:relative;
  border-radius: calc(var(--radius) + 10px);
  overflow:hidden;
}
.hero-wrap:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(800px 380px at 10% 10%, rgba(232,54,100,.22), transparent 60%),
    radial-gradient(700px 320px at 92% 0%, rgba(124,134,255,.14), transparent 60%);
  pointer-events:none;
}
.hero-card{
  position:relative;
  padding: 28px;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-card.has-cover{
  background-size: cover;
  background-position: center;
}
.hero-card.has-cover:after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(7,10,18,.55), rgba(7,10,18,.80));
  pointer-events:none;
}
.hero-card > *{position:relative; z-index:2}

.hero h1{
  margin:0 0 10px;
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing:-0.03em;
  line-height:1.05;
}
.hero p{
  margin:0 0 16px;
  color: rgba(255,255,255,.74);
  max-width: 85ch;
  font-size: 15px;
}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap}

.section{
  padding: 18px 0 28px;
}
.split{
  display:grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items:start;
}
@media (max-width: 920px){ .split{grid-template-columns:1fr} }

.panel{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
}
.panel h2{margin:0 0 10px; font-size:18px; letter-spacing:-0.01em}
.content{color: rgba(255,255,255,.74)}
.content h2,.content h3,.content h4{color: var(--text)}
.content a{text-decoration: underline; text-decoration-color: rgba(255,255,255,.24); text-underline-offset: 3px}

.cta-card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding: 18px;
}
.cta-card .kicker{
  font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color: rgba(255,255,255,.62);
}
.cta-card .title{margin:6px 0 10px; font-size:18px; font-weight:950; letter-spacing:-0.01em}
.cta-card .desc{margin:0 0 14px; color: rgba(255,255,255,.72); font-size:13px}

.badges{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.badge{
  font-size:11px; font-weight:900;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  padding: 6px 10px;
  border-radius:999px;
}

.faq{display:grid; gap:10px; margin-top:12px}
.faq details{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  padding: 10px 12px;
  overflow:hidden;
}
.faq details[open]{ background: rgba(255,255,255,.045) }
.faq summary{
  cursor:pointer; list-style:none;
  font-weight: 950;
  color: rgba(255,255,255,.92);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+"; font-weight:950; opacity:.82}
.faq details[open] summary:after{content:"–"}
.faq .answer{margin:8px 0 0; color: rgba(255,255,255,.72)}

.disclaimer{
  margin-top: 14px;
  font-size:12px;
  color: rgba(255,255,255,.60);
  border-top: 1px dashed rgba(255,255,255,.14);
  padding-top: 10px;
}

/* Bottom nav */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:80;
  background: rgba(7,10,18,.86);
  backdrop-filter: blur(14px);
  border-top:1px solid rgba(255,255,255,.12);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display:none;
}
.bottom-nav .inner{
  width:min(100% - 10px, var(--max));
  margin:0 auto;
  display:flex;
  gap:8px;
}
.nav-item{
  flex:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px;
  padding: 10px 8px;
  border-radius: 16px;
  border:1px solid transparent;
  color: rgba(255,255,255,.74);
  font-size:11px; font-weight:900;
}
.nav-item svg{width:20px;height:20px;opacity:.95}
.nav-item.is-active{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.92) }
.nav-item.is-cta{ background: linear-gradient(135deg, var(--accent), var(--accent2)); color: rgba(255,255,255,.96); box-shadow: 0 18px 60px rgba(232,54,100,.30) }
@media (max-width: 920px){ .bottom-nav{display:block} }

.site-footer{
  padding: 28px 0 22px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
:focus-visible{ outline:3px solid rgba(232,54,100,.35); outline-offset:2px; border-radius: 14px; }




/* TOC (premium) */
.toc{
  margin: 0 0 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 18px;
  padding: 12px 12px;
}
.toc-title{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  font-weight: 950;
  margin-bottom: 8px;
}
.toc-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.toc-list > li > a{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.86);
  font-weight: 900;
}
.toc-list > li > a:before{
  content:"";
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(232,54,100,.22);
  flex:0 0 8px;
}
.toc-list > li > a:hover{
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}
.toc-sub{
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  list-style:none;
  display:grid;
  gap:6px;
}
.toc-sub a{
  display:block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.015);
  color: rgba(255,255,255,.74);
  font-weight: 800;
  font-size: 13px;
}
.toc-sub a:hover{
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.90);
}

/* Stream box polish */
.cta-card{
  border-radius: 20px;
}
.cta-card .desc{ line-height: 1.55; }

.toc-sub{
  margin: 6px 0 0 0;
  padding-left: 14px;
  display:grid;
  gap:5px;
  opacity: .95;
}
.toc-sub a{
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
