/* ================================================
   Casino Rank Lab — styles.css
   ================================================ */

/* ---- Variables ---- */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #152235;
  --accent:      #2563eb;
  --accent-h:    #1d4ed8;
  --green:       #16a34a;
  --text:        #1e293b;
  --muted:       #64748b;
  --surface:     #ffffff;
  --bg:          #f1f5f9;
  --border:      #e2e8f0;
  --shadow-s:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-m:    0 4px 16px rgba(0,0,0,.08);
  --shadow-l:    0 12px 40px rgba(0,0,0,.10);
  --radius:      12px;
  --radius-s:    8px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(37,99,235,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(99,102,241,.05) 0%, transparent 55%),
    radial-gradient(circle, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-h); }
p { margin: 0 0 1rem; }
h1,h2,h3,h4 { margin: 0 0 .75rem; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
h3 { font-size: 1.1rem; }
ul,ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .3rem; }
code { font-family: ui-monospace, monospace; font-size: .9em; }

/* ---- Layout helpers ---- */
.max {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 3rem 0; }
.section + .section { padding-top: 0; }

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 36px;
  width: auto;
  display: block;
}
.brand:hover { opacity: .85; }
.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main a {
  display: block;
  padding: .35rem .65rem;
  border-radius: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-main a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-main a.active { color: #fff; background: rgba(37,99,235,.55); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s, border-color .14s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-1px); color: #fff; }
.btn-outline {
  color: var(--accent);
  background: transparent;
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--text); }

/* ================================================
   HERO  (main page)
   ================================================ */
.hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(37,99,235,.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(99,102,241,.2) 0%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px;
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.hero-inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 380px; align-items: center; }
}
.hero-kicker {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(147,197,253,.4);
  background: rgba(147,197,253,.12);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lead { color: #94a3b8; font-size: 1.05rem; max-width: 58ch; margin-bottom: 1.5rem; }
.hero-meta { color: #64748b; font-size: .85rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.hero-stat-card h2 { color: #fff; font-size: 1.1rem; margin-bottom: .75rem; }
.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.stat-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  align-items: start;
  padding: .5rem .6rem;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  font-size: .88rem;
  color: #94a3b8;
}
.stat-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  margin-top: .45rem;
  flex-shrink: 0;
}
.stat-list strong { display: block; color: #e2e8f0; font-size: .82rem; margin-bottom: .1rem; }

/* ================================================
   DISCLOSURE
   ================================================ */
.disclosure {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-s);
  padding: .9rem 1.1rem .9rem 3rem;
  font-size: .88rem;
  color: #1e40af;
  position: relative;
  margin: 1.5rem 0;
}
.disclosure::before {
  content: 'i';
  position: absolute;
  left: .9rem;
  top: .85rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #bfdbfe;
  color: #1e40af;
  font-weight: 800;
  font-size: .8rem;
  display: grid;
  place-items: center;
}

/* ================================================
   NOTICE BANNERS
   ================================================ */
.notice-wrap {
  margin: 1rem 0;
}
.notice-pill {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: var(--radius-s);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid transparent;
  box-shadow: var(--shadow-s);
}
.notice-wrap .notice-pill + .notice-pill {
  margin-top: .55rem;
}
.notice-review {
  color: #075985;
  background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
}
.notice-info {
  color: #7c2d12;
  background: linear-gradient(90deg, #fff7ed 0%, #fed7aa 100%);
  border-color: #fb923c;
}
.notice-18 {
  color: #7f1d1d;
  background: linear-gradient(90deg, #fee2e2 0%, #fecaca 100%);
  border-color: #f87171;
}

/* ================================================
   PANELS / CARDS
   ================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 1.5rem;
}
.panel + .panel { margin-top: 1rem; }

/* ================================================
   COMPARISON ROWS
   ================================================ */
.comparison-rows { display: grid; gap: .75rem; }
.cmp-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 1.1rem 1.25rem;
  transition: box-shadow .18s, transform .18s;
}
.cmp-row:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
@media (max-width: 760px) {
  .cmp-row { grid-template-columns: 1fr; gap: .8rem; }
}
.cmp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: .6rem;
  background: #fafafa;
}
.cmp-logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-fallback {
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  color: var(--text);
}
.cmp-body h3 { font-size: 1rem; margin-bottom: .4rem; }
.cmp-body p { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.cmp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cmp-tags li {
  font-size: .76rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--muted);
}
.cmp-action {
  display: flex;
  align-items: flex-start;
  padding-top: .25rem;
}

/* ================================================
   SECTION TITLE
   ================================================ */
.sec-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #e2e8f0;
  color: var(--text);
}
.sec-intro { color: var(--muted); max-width: 65ch; margin-bottom: 1.75rem; font-size: .95rem; }

/* ================================================
   CRITERIA GRID
   ================================================ */
.criteria-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.criterion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.1rem 1rem;
  border-top: 3px solid var(--accent);
}
.criterion h3 { font-size: .95rem; margin-bottom: .35rem; }
.criterion p { font-size: .86rem; color: var(--muted); margin: 0; }

/* ================================================
   SPLIT PANELS
   ================================================ */
.split-panels {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .split-panels { grid-template-columns: 1fr 1fr; }
}

/* ================================================
   STEPS LIST
   ================================================ */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}
.steps-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .9rem;
}
.step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
  display: grid;
  place-items: center;
}

/* ================================================
   CHECK LIST
   ================================================ */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.check-list li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .9rem;
}
.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.65;
}

/* ================================================
   UPDATES GRID
   ================================================ */
.updates-grid {
  display: grid;
  gap: .85rem;
}
@media (min-width: 720px) {
  .updates-grid { grid-template-columns: repeat(3, 1fr); }
}
.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-s);
}
.update-card .date { font-size: .78rem; color: var(--muted); margin-bottom: .35rem; }
.update-card h3 { font-size: .95rem; margin-bottom: .35rem; }
.update-card p { font-size: .87rem; color: var(--muted); margin: 0; }

/* ================================================
   SAFER STRIP
   ================================================ */
.safer-strip {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem;
  color: #ecfdf5;
  margin: 2.5rem 0;
}
.safer-strip h2 { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.safer-strip p { color: #a7f3d0; margin-bottom: 0; }
.safer-strip a { color: #fff; font-weight: 600; }

/* ================================================
   FAQ
   ================================================ */
.faq-list { display: grid; gap: .55rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: .8rem 1rem;
  box-shadow: var(--shadow-s);
}
.faq-list summary {
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { margin-bottom: .5rem; }
.faq-list details p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ================================================
   PAGE HEADER  (inner pages)
   ================================================ */
.page-banner {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(37,99,235,.3) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(99,102,241,.15) 0%, transparent 55%),
    radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.page-banner h1 { color: #fff; margin-bottom: .5rem; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.page-banner .lead { color: #94a3b8; font-size: .95rem; max-width: 60ch; margin: 0; }

/* ================================================
   PAGE TABS  (inner pages)
   ================================================ */
.page-tabs-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-s);
}
.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-tabs a {
  display: block;
  padding: .75rem 1rem;
  font-size: .87rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.page-tabs a:hover { color: var(--text); }
.page-tabs a.tab-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ================================================
   PAGE CONTENT  (inner pages — single column)
   ================================================ */
.page-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1rem;
}

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.form-block label {
  display: block;
  font-weight: 600;
  font-size: .86rem;
  margin-bottom: .3rem;
  color: var(--text);
}
.form-block input,
.form-block textarea,
.form-block select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: .92rem;
  margin-bottom: .9rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-block input:focus,
.form-block textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  outline: none;
}
.form-block textarea { min-height: 130px; resize: vertical; }
.info-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.info-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.info-card p { font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }

/* ================================================
   HELP RESOURCES
   ================================================ */
.resource-grid {
  display: grid;
  gap: .75rem;
}
@media (min-width: 680px) {
  .resource-grid { grid-template-columns: 1fr 1fr; }
}
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-s);
}
.resource-card h3 { font-size: .95rem; margin-bottom: .3rem; }
.resource-card p { font-size: .87rem; color: var(--muted); margin-bottom: .6rem; }
.resource-card a { font-size: .87rem; font-weight: 600; }

/* ================================================
   SAFER GAMBLING PAGE SECTIONS
   ================================================ */
.sg-tools {
  display: grid;
  gap: .6rem;
}
@media (min-width: 680px) {
  .sg-tools { grid-template-columns: 1fr 1fr; }
}
.sg-tool {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-s);
  padding: .75rem 1rem;
  font-size: .88rem;
  color: #166534;
}
.sg-tool strong { display: block; margin-bottom: .2rem; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  margin-top: 4rem;
}
.footer-inner { padding: 2.5rem 1.25rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 2fr 1fr 1.5fr; }
}
.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: .55rem;
}
.footer-top p { font-size: .86rem; color: #64748b; margin-bottom: .5rem; }
.footer-col h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #475569;
  margin-bottom: .65rem;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.footer-nav a {
  font-size: .86rem;
  color: #64748b;
  text-decoration: none;
}
.footer-nav a:hover { color: #e2e8f0; }
.reg-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.reg-row a {
  display: block;
  padding: .35rem .55rem;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.reg-row img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .88;
  transition: opacity .15s;
}
.reg-row img:hover { opacity: 1; }
.footer-divider {
  border: 0;
  border-top: 1px solid #1e293b;
  margin: 1.5rem 0 1rem;
}
.copyright { font-size: .82rem; color: #334155; }

/* ================================================
   AGE GATE
   ================================================ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7,15,28,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none !important; }
.age-gate-inner {
  background: var(--surface);
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-l);
}
.age-gate-inner h2 { margin-top: 0; }
.age-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }

/* ================================================
   COOKIE BANNER
   ================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 1.25rem 1.1rem;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-inner { max-width: 1200px; margin: 0 auto; }
.cookie-banner p { font-size: .88rem; color: #94a3b8; margin-bottom: .65rem; }
.cookie-banner strong { color: #e2e8f0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.cookie-settings { padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.06); }
.cookie-settings[hidden] { display: none !important; }
.cookie-check { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .88rem; color: #94a3b8; }
.cookie-check input { width: auto; }

/* ================================================
   RESPONSIVE TWEAKS
   ================================================ */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 2rem; }
  .page-banner { padding: 1.75rem 0 1.5rem; }
  .panel { padding: 1.1rem; }
  .cmp-row { padding: .9rem 1rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn,
  .age-actions .btn { width: auto; }
}
