/* Chromatic Dragon — Georgia Online Casinos. Shared stylesheet.
   Palette (locked, two-colour): emerald primary + amber/gold accent on dark. */
:root {
  --bg: #0b0f0d;
  --dark-card: #14201a;
  --dark-border: #243a30;
  --text: #e8efe9;
  --text-muted: #9fb3a8;
  --primary: #047857;
  --primary-bright: #10B981;
  --gold: #f0c040;
  --radius: 12px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: #fff; }
h2 { font-size: 1.7rem; margin: 2.4rem 0 0.8rem; padding-top: 0.4rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 0.6rem; }
h4 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; color: var(--gold); }
p { margin: 0.7rem 0; }
img { max-width: 100%; }

/* ---------- Header / Nav (source of truth) ---------- */
.header { background: #070a08; border-bottom: 2px solid var(--primary); position: sticky; top: 0; z-index: 100; }
.navbar { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 20px; }
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: #fff; }
.navbar-brand img { height: 44px; width: auto; }
.navbar-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.nav-check { display: none; }
@media (max-width: 768px) {
  .header { padding: 0.2rem 0; }
  .navbar-brand img { height: 52px; max-height: 52px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #070a08; border-bottom: 2px solid var(--primary);
    padding: 0.5rem 0;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 0.8rem; }
  .nav-check:checked ~ .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(4,12,8,0.82), rgba(4,12,8,0.92)),
              radial-gradient(circle at 30% 20%, #0e3326 0%, #0b0f0d 60%);
  padding: 2.6rem 0 2rem;
  border-bottom: 1px solid var(--dark-border);
}
.hero .container { max-width: 900px; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--text-muted); }
.hero h1 { font-size: 2.4rem; margin: 0 0 0.6rem; }
.hero-subtitle { font-size: 1.08rem; color: var(--text-muted); margin: 0.4rem 0 0.8rem; max-width: 720px; }
.hero-meta { font-size: 0.85rem; color: var(--text-muted); }
.hero-meta a { color: var(--gold); }
.hero-byline { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.hero-byline .hero-meta { margin: 0; }
.hero-byline > a { flex: 0 0 auto; display: inline-flex; line-height: 0; }
.hero-byline-photo { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); display: block; flex-shrink: 0; aspect-ratio: 1 / 1; }
.trust-strip { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-size: 0.82rem; color: var(--text-muted); }
.trust-strip span::before { content: "✓ "; color: var(--primary-bright); font-weight: 800; }
@media (max-width: 768px) { .hero h1 { font-size: 1.85rem; } }

/* Hero "see more" collapse (checkbox hack) */
.hero-more-toggle { position: absolute; left: -9999px; }
.hero-more-summary { display: none; }
.hero-more { display: block; }
@media (max-width: 768px) {
  .hero-more-summary {
    display: inline-block; cursor: pointer; color: var(--gold);
    font-size: 0.875rem; margin-top: 0.4rem; font-weight: 600; user-select: none;
  }
  .hero-more-summary::after { content: " \25B8"; }
  .hero-more { display: none; }
  .hero-more-toggle:checked ~ .hero-more-summary::after { content: " \25BE"; }
  .hero-more-toggle:checked ~ .hero-more { display: block; }
}

/* ---------- Main content ---------- */
main { padding: 1.6rem 0 2rem; }
main .container { max-width: 900px; }
.content-block { margin-bottom: 0.5rem; }
.lead { font-size: 1.05rem; }
.toplist-lead { color: var(--text-muted); margin: 0.3rem 0 1rem; }

/* ---------- Toplist table ---------- */
.toplist-section .table-wrapper { overflow-x: auto; }
/* On desktop, let the toplist break out wider than the prose column so all
   columns fit on the page without horizontal scroll. */
@media (min-width: 1024px) {
  .toplist-section { width: min(1120px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
}
.toplist-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0;
  background: var(--dark-card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--dark-border); box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.toplist-table thead th {
  text-align: left; padding: 0.75rem 0.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  color: var(--text-muted); font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 1px solid var(--dark-border);
}
.toplist-table tbody td { padding: 1.05rem 0.9rem; border-bottom: 1px solid var(--dark-border); vertical-align: middle; }
.toplist-table tbody tr:last-child td { border-bottom: 0; }
.toplist-table tbody tr { transition: background 0.15s; }
.toplist-table tbody tr:hover { background: rgba(255,255,255,0.035); }
.toplist-row.highlight-row { background: rgba(240,192,64,0.07); box-shadow: inset 4px 0 0 var(--gold); }
.toplist-table .col-rank { width: 56px; text-align: center; }
.toplist-table .col-rank strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--text); font-size: 0.92rem; font-weight: 800;
}
.toplist-row.highlight-row .col-rank strong { background: var(--gold); color: #1a1300; }
.toplist-table .col-logo { display: flex; align-items: center; gap: 0.9rem; min-width: 228px; }
.toplist-logo {
  width: 132px; height: 70px; object-fit: contain; background: #fff;
  padding: 7px 11px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.toplist-logo-fallback {
  width: 132px; height: 70px; background: #fff; color: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; text-align: center;
  padding: 5px;
}
.toplist-brand { display: flex; flex-direction: column; line-height: 1.25; }
.toplist-brand strong { font-size: 1.02rem; }
.toplist-descriptor { font-size: 0.78rem; color: var(--text-muted); max-width: 20ch; }
.toplist-table .col-bonus { min-width: 148px; }
.toplist-bonus {
  display: inline-block; background: linear-gradient(180deg, #FEF3C7, #FDE68A); color: #92400E;
  font-weight: 800; font-size: 0.9rem; padding: 0.34rem 0.7rem; border-radius: 6px;
  white-space: nowrap;
}
.toplist-table .col-metric { white-space: nowrap; font-weight: 600; color: var(--text); }
.toplist-rating {
  display: inline-block; background: rgba(240,192,64,0.14); color: var(--gold);
  font-weight: 800; padding: 0.28rem 0.6rem; border-radius: 6px; white-space: nowrap;
}
.toplist-table .col-cta { width: 166px; text-align: right; }
.toplist-table .col-cta .btn { white-space: nowrap; }
.toplist-review-link { display: block; font-size: 0.76rem; margin-top: 0.35rem; }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-block; font-weight: 800; letter-spacing: 0.02em; border: 0;
  border-radius: 10px; padding: 0.7rem 1.2rem; cursor: pointer; text-align: center;
}
.btn-primary {
  background: linear-gradient(180deg, #18e08e 0%, #07a86a 52%, #047857 100%);
  color: #fff; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800;
  box-shadow: 0 6px 18px rgba(4,120,87,0.42), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-primary:hover { text-decoration: none; filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4,120,87,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(4,120,87,0.35); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.92rem; }

/* ---------- Mobile reflow: boxed card (logo top -> bonus -> 3 mini stat cards -> CTA) ---------- */
@media (max-width: 768px) {
  .toplist-table thead { display: none; }
  .toplist-table, .toplist-table tbody { display: block; width: 100%; }
  .toplist-table tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "bonus bonus"
      "metric rating"
      "cta cta";
    gap: 0.55rem;
    border: 1.5px solid var(--dark-border); border-radius: 16px;
    margin-bottom: 0.9rem; padding: 0.8rem 0.85rem 1rem;
    background: var(--dark-card); text-align: center;
  }
  .toplist-row.highlight-row { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 22px rgba(0,0,0,0.35); }
  .toplist-table td { display: block; border: none; padding: 0; text-align: center; }
  /* rank as a badge */
  .toplist-table .col-rank { position: absolute; top: 0.6rem; left: 0.6rem; width: auto; padding: 0; z-index: 1; }
  .toplist-table .col-rank strong {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; padding: 0 0.4rem; border-radius: 14px;
    background: var(--gold); color: #1a1300; font-size: 0.9rem;
  }
  /* logo + brand on top, big */
  .toplist-table .col-logo { grid-area: logo; display: flex; flex-direction: column; min-width: 0; gap: 0.5rem; align-items: center; }
  .toplist-logo, .toplist-logo-fallback { width: 188px; height: 100px; }
  .toplist-brand { align-items: center; }
  .toplist-descriptor { max-width: none; font-size: 0.82rem; }
  /* 3 mini stat cards */
  .toplist-table .col-bonus, .toplist-table .col-metric, .toplist-table .col-rating {
    background: rgba(255,255,255,0.045); border: 1px solid var(--dark-border);
    border-radius: 10px; padding: 0.55rem 0.4rem;
  }
  .toplist-table .col-bonus { grid-area: bonus; }
  .toplist-table .col-metric { grid-area: metric; font-weight: 700; }
  .toplist-table .col-rating { grid-area: rating; }
  .toplist-table .col-bonus::before, .toplist-table .col-metric::before, .toplist-table .col-rating::before {
    display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted); font-weight: 700; margin-bottom: 0.25rem;
  }
  .toplist-table .col-bonus::before { content: "Welcome Bonus"; }
  .toplist-table .col-metric::before { content: "Payout"; }
  .toplist-table .col-rating::before { content: "Rating"; }
  /* bonus value: gold, bold, always one line */
  .toplist-table .col-bonus .toplist-bonus {
    display: block; background: none; color: var(--gold); padding: 0;
    font-size: 1.02rem; white-space: nowrap;
  }
  .toplist-table .col-rating .toplist-rating { font-size: 1.05rem; }
  .toplist-table .col-cta { grid-area: cta; width: 100%; text-align: center; }
  .toplist-table .col-cta .btn { display: block; width: 100%; padding: 0.85rem; font-size: 1.02rem; }
  .toplist-review-link { margin-top: 0.45rem; }
}

/* ---------- Generic tables (comparison / data) ---------- */
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--dark-card); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--dark-border); text-align: left; }
.data-table thead th { background: rgba(255,255,255,0.04); color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.03em; }
.data-table .bonus-cell { font-weight: 700; color: #d9a441; }
.table-wrapper { overflow-x: auto; }

/* ---------- Operator review blocks ---------- */
.op-review { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.2rem 0; }
.op-review-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.op-review-head .toplist-logo, .op-review-head .toplist-logo-fallback { width: 110px; height: 58px; }
.op-rating { margin-left: auto; color: var(--gold); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.op-review h3 { margin: 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pros-cons ul { margin: 0.3rem 0; padding-left: 1.2rem; }
.pros h4 { color: var(--primary-bright); }
.cons h4 { color: #e07a5f; }
.bonus-highlight {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #78350F;
  font-weight: 800; font-size: 1.02rem; padding: 0.6rem 1rem; border-radius: 8px;
  border-left: 4px solid #f59e0b; margin: 0.8rem 0; display: block;
}
.tested-badge { display: inline-block; background: rgba(16,185,129,0.15); color: var(--primary-bright); font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; }
.op-screenshot-link { display: block; margin: 0.6rem 0 1rem; }
.op-screenshot { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--dark-border); display: block; }
.op-screenshot-link:hover .op-screenshot { border-color: var(--primary-bright); }
@media (max-width: 768px) { .pros-cons { grid-template-columns: 1fr; } }

/* ---------- Callouts / key takeaways ---------- */
.callout { background: rgba(16,185,129,0.07); border-left: 4px solid var(--primary); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.2rem 0; }
.callout h3 { margin-top: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 1rem 0; }
.timeline li { padding: 0.6rem 0 0.6rem 1.4rem; border-left: 2px solid var(--dark-border); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.timeline .yr { font-weight: 800; color: var(--gold); margin-right: 0.5rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--dark-border); padding: 0.6rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: #fff; font-size: 1.02rem; list-style: none; }
.faq summary::after { content: " +"; color: var(--gold); float: right; }
.faq details[open] summary::after { content: " –"; }

/* ---------- Author byline ---------- */
.byline { display: flex; align-items: center; gap: 0.8rem; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.6rem 0; }
.byline-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.byline-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--primary); }
.author-hero-row { display: flex; align-items: center; gap: 1.3rem; }
.author-hero-row h1 { margin: 0; }
.author-hero-row .hero-subtitle { margin: 0.3rem 0 0; }
.author-hero-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex-shrink: 0; }
@media (max-width: 768px) { .author-hero-photo { width: 88px; height: 88px; } .author-hero-row { gap: 1rem; } }
.byline-name { font-weight: 800; color: #fff; }
.byline-role { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Responsible gambling banner ---------- */
.rg-banner { background: #1a120a; border: 1px solid #4a3010; color: #e7c79a; font-size: 0.85rem; padding: 0.7rem 0; text-align: center; }
.rg-banner a { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: #070a08; border-top: 4px solid var(--primary); padding: 2.4rem 0 1.4rem; margin-top: 2.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-col h4 { color: #fff; margin: 0 0 0.6rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.35rem 0; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-disclaimer { font-size: 0.8rem; color: var(--text-muted); margin-top: 1.6rem; border-top: 1px solid var(--dark-border); padding-top: 1rem; }
.footer-badges { display: flex; gap: 0.8rem; align-items: center; margin: 0.6rem 0; font-weight: 800; color: var(--gold); }

/* ---------- Legal / simple pages ---------- */
.page-body { max-width: 800px; }
.page-body h2 { font-size: 1.35rem; }

/* ---------- Mobile fold tightening (first toplist card must peek, affiliate-list-placement §3) ---------- */
@media (max-width: 768px) {
  .hero { padding: 1.2rem 0 0.9rem; }
  .hero h1 { font-size: 1.5rem; margin-bottom: 0.35rem; }
  .hero-subtitle { font-size: 0.96rem; margin: 0.3rem 0 0.5rem; }
  .trust-strip { gap: 0.25rem 0.9rem; margin-top: 0.55rem; font-size: 0.74rem; }
  h2 { font-size: 1.4rem; margin: 1.2rem 0 0.45rem; }
  .toplist-section > h2 { margin-top: 0.8rem; }
  .toplist-lead { font-size: 0.88rem; margin: 0.2rem 0 0.65rem; }
  .trust-strip { display: none; }
}

/* ---------- Hero featured top-pick card (MOBILE ONLY) ---------- */
.hero-featured { display: none; }
@media (max-width: 768px) {
  /* full hero on mobile: show the subtitle + byline, drop the "See more" toggle */
  .hero-more { display: block; }
  .hero-more-summary { display: none; }
  /* featured Ignition card inside the hero */
  .hero-featured {
    display: block; position: relative; margin-top: 1.3rem;
    background: var(--dark-card); border: 1.5px solid var(--gold); border-radius: 16px;
    padding: 1.3rem 0.85rem 1rem; text-align: center;
    box-shadow: 0 0 0 1px var(--gold), 0 10px 26px rgba(0,0,0,0.4);
  }
  .hero-featured-tag {
    position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #1a1300; font-weight: 800; font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.7rem;
    border-radius: 12px; white-space: nowrap;
  }
  .hero-featured-logo { width: 188px; height: 100px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px 12px; }
  .hero-featured-name { font-weight: 800; font-size: 1.15rem; color: #fff; margin-top: 0.6rem; }
  .hero-featured-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.7rem; }
  .hero-featured-bonus { background: rgba(255,255,255,0.045); border: 1px solid var(--dark-border); border-radius: 10px; padding: 0.55rem; margin-bottom: 0.55rem; }
  .hero-featured-bonus span, .hero-featured-stats span { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; margin-bottom: 0.2rem; }
  .hero-featured-bonus strong { color: var(--gold); font-size: 1.05rem; white-space: nowrap; }
  .hero-featured-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-bottom: 0.7rem; }
  .hero-featured-stats > div { background: rgba(255,255,255,0.045); border: 1px solid var(--dark-border); border-radius: 10px; padding: 0.55rem; }
  .hero-featured-stats strong { color: #fff; font-size: 1rem; }
  .hero-featured-cta { display: block; width: 100%; padding: 0.85rem; font-size: 1.02rem; }
}
