/* ===================================================
   ThePokies172 Review — Stylesheet
   Design direction: editorial trust, gold+navy palette,
   DM Serif Display headlines, Inter body, data-dense tables.
   =================================================== */

/* --- Tokens --- */
:root {
  --clr-navy:     #0F1B2D;
  --clr-navy-mid: #1A2C44;
  --clr-navy-lt:  #253B59;
  --clr-gold:     #E8A825;
  --clr-gold-lt:  #FDF0D0;
  --clr-gold-dk:  #B8841D;
  --clr-bg:       #F5F6F8;
  --clr-surface:  #FFFFFF;
  --clr-text:     #1E293B;
  --clr-muted:    #64748B;
  --clr-border:   #E2E5EB;
  --clr-success:  #16A34A;
  --clr-success-bg: #ECFDF5;
  --clr-danger:   #DC2626;
  --clr-danger-bg:#FEF2F2;
  --clr-info-bg:  #EFF6FF;
  --clr-warn-bg:  #FFFBEB;

  --ff-display:  'DM Serif Display', Georgia, 'Times New Roman', serif;
  --ff-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono:     'JetBrains Mono', 'Fira Code', monospace;

  --header-h: 64px;
  --toc-w:     240px;
  --max-w:     900px;
  --radius:    8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--clr-gold-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* =================== HEADER =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-navy);
  color: #fff;
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
}
.logo {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo span { color: var(--clr-gold); }
.logo:hover { text-decoration: none; }

.header-nav {
  display: flex;
  gap: 6px;
  margin-right: auto;
}
.header-nav a {
  color: rgba(255,255,255,.75);
  font-size: .8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }

/* CTA Buttons — always visible, never inside burger */
.header-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-body);
  font-size: .8125rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
  cursor: pointer;
  letter-spacing: .02em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  background: transparent;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  color: #fff;
}

.btn-gold {
  background: var(--clr-gold);
  color: var(--clr-navy);
  border: 1.5px solid var(--clr-gold);
  box-shadow: 0 2px 10px rgba(232,168,37,.35);
}
.btn-gold:hover {
  background: var(--clr-gold-dk);
  border-color: var(--clr-gold-dk);
  color: #fff;
  box-shadow: 0 4px 18px rgba(232,168,37,.45);
}

/* Pulse glow on gold button */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(232,168,37,.35); }
  50%      { box-shadow: 0 2px 20px rgba(232,168,37,.55); }
}
.btn-gold { animation: cta-pulse 3s ease-in-out infinite; }
.btn-gold:hover { animation: none; }

/* Hero CTA — larger, standalone */
.hero-cta {
  margin: 28px 0 36px;
}
.btn-lg {
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: 8px;
  letter-spacing: .03em;
  box-shadow: 0 4px 20px rgba(232,168,37,.4);
}
.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,168,37,.55);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== HERO =================== */
.hero {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-mid) 60%, var(--clr-navy-lt) 100%);
  color: #fff;
  padding: 64px 24px 56px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-gold);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  max-width: 680px;
  margin-bottom: 36px;
}

/* Key Facts strip */
.key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  flex: 1 1 120px;
  background: rgba(255,255,255,.05);
  padding: 16px 20px;
  text-align: center;
}
.fact-label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.fact-value {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--clr-gold);
}

/* Trust gauge */
.trust-score-fact { flex: 1 1 160px; }
.trust-gauge {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}
.gauge-svg { width: 64px; height: 38px; }
.gauge-fill { transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1); }
.gauge-number {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--clr-gold);
  line-height: 1;
}
.gauge-max {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  align-self: flex-end;
  margin-bottom: 2px;
}

/* =================== PAGE LAYOUT =================== */
.page-layout {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 24px;
}

/* --- TOC sidebar --- */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: flex-start;
  width: var(--toc-w);
  flex-shrink: 0;
  padding: 24px 0 24px 0;
  margin-right: 40px;
  height: fit-content;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.toc-title {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clr-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.toc-link {
  display: block;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--clr-muted);
  padding: 5px 0 5px 14px;
  border-left: 2px solid var(--clr-border);
  transition: color .2s, border-color .2s;
}
.toc-link:hover { color: var(--clr-text); text-decoration: none; }
.toc-link.active {
  color: var(--clr-navy);
  border-left-color: var(--clr-gold);
  font-weight: 600;
}

/* --- Main content --- */
.content {
  flex: 1;
  min-width: 0;
  padding: 40px 0 80px;
}

/* Sections */
.section {
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 40px 40px 44px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}
.section h2 {
  font-family: var(--ff-display);
  font-size: 1.55rem;
  margin-bottom: 20px;
  color: var(--clr-navy);
  letter-spacing: -.02em;
  line-height: 1.3;
}
.section h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--clr-navy-mid);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section h3:first-of-type { margin-top: 20px; }
.section p { margin-bottom: 14px; color: var(--clr-text); }
.section p:last-child { margin-bottom: 0; }
.section ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.section li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* =================== TABLES =================== */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
thead { background: var(--clr-navy); color: #fff; }
th {
  padding: 10px 14px;
  font-weight: 600;
  text-align: left;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
td {
  padding: 10px 14px;
  border-top: 1px solid var(--clr-border);
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: var(--clr-bg); }
tbody tr:hover { background: var(--clr-gold-lt); }

/* =================== STEPS =================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0 24px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--clr-border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-gold);
  color: var(--clr-navy);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step p { margin: 4px 0 0; font-size: .9rem; color: var(--clr-muted); }

/* =================== CALLOUTS =================== */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 20px 0 16px;
  font-size: .9rem;
  line-height: 1.6;
}
.callout-icon { font-size: 1.3rem; flex-shrink: 0; }
.callout p { margin: 0; }
.callout-warn { background: var(--clr-warn-bg); border-left: 4px solid var(--clr-gold); }
.callout-info { background: var(--clr-info-bg); border-left: 4px solid #3B82F6; }

/* =================== CARDS =================== */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 20px;
}
.card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.card h3 { margin-top: 0 !important; text-transform: none; letter-spacing: 0; }

/* =================== PROS / CONS =================== */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pros, .cons {
  border-radius: var(--radius);
  padding: 24px;
}
.pros { background: var(--clr-success-bg); border: 1px solid #BBF7D0; }
.cons { background: var(--clr-danger-bg); border: 1px solid #FECACA; }
.pros h3, .cons h3 { margin-top: 0 !important; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.pros li::marker { color: var(--clr-success); }
.cons li::marker { color: var(--clr-danger); }

/* =================== HELPLINES =================== */
.helplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}
.helpline {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.helpline strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.helpline p { margin: 0; font-size: .85rem; color: var(--clr-muted); }
.helpline a { color: var(--clr-gold-dk); font-weight: 600; }

.age-badge { margin-top: 24px; }

/* =================== FAQ =================== */
.faq-list { margin-top: 8px; }
.faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 16px 0;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--clr-navy);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}
.faq-q:hover { color: var(--clr-gold-dk); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--clr-muted);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 16px;
}
.faq-a p { font-size: .9rem; color: var(--clr-muted); margin: 0; }

/* =================== VERDICT BARS =================== */
.verdict-scores {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verdict-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.verdict-cat {
  width: 80px;
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--clr-muted);
}
.bar {
  flex: 1;
  height: 10px;
  background: var(--clr-border);
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--clr-gold) 0%, var(--clr-success) 100%);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.bar-val {
  width: 32px;
  text-align: right;
  font-family: var(--ff-mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-navy);
}
.verdict-bar.overall {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--clr-border);
}
.verdict-bar.overall .verdict-cat { color: var(--clr-navy); }
.verdict-bar.overall .bar { height: 14px; }
.verdict-bar.overall .bar-fill {
  background: linear-gradient(90deg, var(--clr-gold) 0%, var(--clr-gold-dk) 100%);
}
.verdict-bar.overall .bar-val { font-size: 1rem; font-weight: 700; }

/* =================== AUTHOR BOX =================== */
.author-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.author-inner { display: flex; gap: 20px; align-items: center; }
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-navy);
  color: var(--clr-gold);
  font-family: var(--ff-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-name { font-size: .9rem; margin-bottom: 4px; color: var(--clr-navy); }
.author-bio { font-size: .8rem; color: var(--clr-muted); margin-bottom: 4px; }
.author-date { font-size: .75rem; color: var(--clr-muted); font-family: var(--ff-mono); margin: 0; }

/* =================== FOOTER =================== */
.site-footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,.6);
  padding: 48px 24px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-brand {
  font-family: var(--ff-display);
  color: var(--clr-gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer-legal {
  font-size: .78rem;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.footer-legal a { color: var(--clr-gold-lt); }
.footer-copy { font-size: .72rem; color: rgba(255,255,255,.35); margin: 0; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .toc { display: none; }
  .page-layout { flex-direction: column; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 8px; }
  .logo { font-size: 1.15rem; }

  .header-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--clr-navy);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    z-index: 99;
    overflow-y: auto;
    margin-right: 0;
  }
  .header-nav.open { display: flex; }
  .header-nav a { font-size: 1rem; padding: 12px 16px; }
  .burger { display: flex; }

  /* CTA: gold button stays, outline hides */
  .header-cta { gap: 6px; margin-left: auto; }
  .btn-outline { display: none; }
  .header-cta .btn { font-size: .72rem; padding: 7px 14px; }

  .hero { padding: 40px 20px 36px; }
  .hero h1 { font-size: 1.5rem; }
  .key-facts { flex-direction: column; }
  .fact { flex: 1 1 auto; }

  .section { padding: 24px 20px 28px; }
  .section h2 { font-size: 1.3rem; }

  .two-col-cards { grid-template-columns: 1fr; }
  .proscons-grid { grid-template-columns: 1fr; }

  .author-inner { flex-direction: column; text-align: center; }
  td, th { font-size: .78rem; padding: 8px 10px; }
}

/* Tiny screens */
@media (max-width: 380px) {
  .logo { font-size: 1rem; }
  .header-cta .btn { font-size: .65rem; padding: 6px 10px; }
  .hero-cta .btn { font-size: .85rem; padding: 12px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
