/* ============================================================
   Casino Compass — core stylesheet
   Themes (color) + font pairings switch via data-attributes on .site
   ============================================================ */

/* ---------- TOKENS (default = Royal: amethyst · gold · pearl) ---------- */
:root {
  --bg: #faf6f2;
  --surface: #fffdfb;
  --surface-2: #efe6ec;
  --ink: #271528;
  --ink-2: #5e4d60;
  --ink-3: #9a899c;
  --line: #e9dde7;
  --line-2: #f1e9ef;
  --accent: #7a2d8c;
  --accent-strong: #5d2070;
  --accent-ink: #ffffff;
  --accent-soft: #f1e4f3;
  --gold: #c2922f;
  --gold-soft: #f4e9cf;
  --star-empty: #e7dbe6;
  --good: #2f8a5b;
  --good-soft: #e7f3ec;
  --bad: #b1424f;
  --bad-soft: #f6e6e9;
  --hero-a: #2a0f31;
  --hero-b: #7a2d8c;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,40,36,.06), 0 1px 3px rgba(20,40,36,.05);
  --shadow: 0 4px 14px rgba(20,40,36,.07), 0 2px 6px rgba(20,40,36,.05);
  --shadow-lg: 0 18px 48px rgba(16,40,36,.16), 0 6px 18px rgba(16,40,36,.08);
  --maxw: 1200px;
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: -0.015em;
}

/* ---------- COLOR THEMES ---------- */
/* Desert — warm sand · bronze · amber (Arabian desert luxe) */
.site[data-theme="desert"] {
  --bg: #f7f1e6;
  --surface: #fffdf8;
  --surface-2: #efe5d2;
  --ink: #2c2014;
  --ink-2: #6a5c49;
  --ink-3: #a4937c;
  --line: #ebddc7;
  --line-2: #f2e8d8;
  --accent: #b06a2c;
  --accent-strong: #8c4f1d;
  --accent-soft: #f6e6d3;
  --gold: #c89a3f;
  --gold-soft: #f5ebd2;
  --star-empty: #ecdfc9;
  --good: #2f8a5b;
  --good-soft: #e9f3ec;
  --bad: #b14430;
  --bad-soft: #f6e7e1;
  --hero-a: #3a2614;
  --hero-b: #b06a2c;
}
/* Midnight — deep Gulf teal-blue · gold (Dubai skyline at night) */
.site[data-theme="midnight"] {
  --bg: #f1f5f6;
  --surface: #ffffff;
  --surface-2: #e3edef;
  --ink: #0c2230;
  --ink-2: #45606b;
  --ink-3: #859aa3;
  --line: #d9e6e9;
  --line-2: #e6eff1;
  --accent: #0e6a86;
  --accent-strong: #0a4f66;
  --accent-soft: #ddeef3;
  --gold: #cda13f;
  --gold-soft: #f5ecd2;
  --star-empty: #d6e3e7;
  --good: #1f8a5b;
  --good-soft: #e4f2ea;
  --bad: #b14430;
  --bad-soft: #f6e7e1;
  --hero-a: #08222e;
  --hero-b: #0e6a86;
}

/* ---------- FONT PAIRINGS ---------- */
/* Arabic (RTL) — Tajawal headings + Cairo body, applied site-wide in RTL */
.site[dir="rtl"] {
  --font-head: 'Tajawal', 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Tajawal', sans-serif;
  --head-weight: 800;
  --head-spacing: 0;
}
.site[data-font="confident"] {
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Libre Franklin', system-ui, sans-serif;
  --head-weight: 800;
  --head-spacing: -0.025em;
}
.site[data-font="sharp"] {
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: -0.02em;
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #d9d4c8; }
.site {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}
.app-scroll { scroll-behavior: smooth; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: inherit; cursor: pointer; text-decoration: none; }
img { max-width: 100%; display: block; }
/* on-brand placeholder tint for empty image slots */
image-slot { background: linear-gradient(145deg, var(--surface-2), var(--accent-soft)); border-radius: var(--radius); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sec-head { margin-bottom: 28px; }
.sec-head-center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-title { font-size: clamp(26px, 3.4vw, 38px); }
.sec-sub { color: var(--ink-2); font-size: 18px; margin-top: 12px; max-width: 60ch; }
.sec-head-center .sec-sub { margin-left: auto; margin-right: auto; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; border: none; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-gold { background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 78%, #000)); color: #3a2a06; box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--gold) 55%, transparent); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent)); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-md { padding: 12px 22px; font-size: 15px; }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }
.btn-full { width: 100%; }

/* ---------- ICON BUTTON ---------- */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: none; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- PILLS / BADGES ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.pill-neutral { background: var(--surface-2); color: var(--ink-2); }
.pill-accent { background: var(--accent-soft); color: var(--accent-strong); }
.pill-gold { background: var(--gold-soft); color: #8a6517; }
.pill-good { background: var(--good-soft); color: var(--good); }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; font-family: var(--font-head); font-weight: 700; font-size: 16px; background: var(--surface-2); color: var(--ink-2); }
.rank-badge.rank-top { background: linear-gradient(145deg, var(--gold), color-mix(in srgb, var(--gold) 72%, #000)); color: #3a2a06; box-shadow: var(--shadow-sm); }

/* ---------- STARS / SCORE ---------- */
.stars { display: inline-flex; gap: 1px; }
.star { display: inline-block; line-height: 0; }
.scorebadge { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--hero-b), var(--hero-a)); color: #fff; box-shadow: var(--shadow); }
.scorebadge-num { font-family: var(--font-head); font-weight: 700; }

/* ---------- BRAND ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--accent); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 21px; color: var(--ink); letter-spacing: var(--head-spacing); white-space: nowrap; }
.brand-text { flex-shrink: 0; }
.brand { flex-shrink: 0; }
.brand-locale { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 3px; white-space: nowrap; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-locale { color: var(--gold); }
.brand-light .brand-mark, .brand-light { color: var(--gold); }

/* ---------- CASINO LOGO ---------- */
.casino-logo { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; box-shadow: var(--shadow-sm); flex-shrink: 0; }

/* ---------- HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--ink); color: #fff; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-trust { display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.topbar-trust svg { color: var(--gold); }
.header-main { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled .header-main { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-desktop { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 9px 14px; border-radius: 9px; transition: all .15s; position: relative; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-mobile { display: none; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0; }
.nav-mobile-link { padding: 13px 28px; font-weight: 600; color: var(--ink); }
.nav-mobile-link.is-active { color: var(--accent); }

/* ---------- RG BADGE ---------- */
.rg-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.rg-21 { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; border-radius: 5px; background: var(--gold); color: #3a2a06; font-weight: 800; font-size: 11.5px; padding: 0 5px; }
.rg-text { opacity: .82; }
.rg-compact .rg-text { display: none; }

/* ---------- PAGE LAYOUT ---------- */
.page { padding-bottom: 0; }
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }

/* ============================================================
   HERO  (3 layout variants via .hero[data-hero])
   ============================================================ */
.hero { position: relative; overflow: hidden; }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); padding: 12px 0 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { opacity: .5; }

/* -- Variant A: Split (text left / hero card right) -- */
.hero-split { background:
  radial-gradient(120% 130% at 88% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
  linear-gradient(180deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent-soft) 45%, var(--bg)) 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.hero-split .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 8px 0 48px; }
.hero-split .hero-top { padding: 26px 0 4px; }
.hero-split .hero-top .hero-kicker { margin-bottom: 16px; }
.hero-split .hero-top h1 { max-width: 18ch; }
.hero-split .hero-kicker, .hero-centered .hero-kicker { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; white-space: nowrap; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 .hl { color: var(--accent); }
.hero-intro { font-size: 19px; color: var(--ink-2); margin-top: 16px; max-width: 52ch; }
.hero-meta { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--ink); }
.hero-stat span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero-stat-div { width: 1px; height: 36px; background: var(--line); }
.hero-trust-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual image-slot { width: 100%; height: 360px; box-shadow: var(--shadow-lg); }
.hero-float { position: absolute; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.hero-float-tl { top: 22px; left: -22px; }
.hero-float-br { bottom: 24px; right: -18px; }
.hero-float small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.hero-float strong { font-family: var(--font-head); font-size: 17px; }

/* -- Variant B: Centered editorial -- */
.hero-centered { text-align: center; padding: 8px 0 0; background:
  linear-gradient(180deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent-soft) 40%, var(--bg)) 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--line); }
.hero-centered .hero-inner { max-width: 820px; margin: 0 auto; padding: 40px 0 36px; }
.hero-centered h1 { font-size: clamp(36px, 6vw, 64px); }
.hero-centered .hero-intro { margin: 22px auto 0; }
.hero-centered .hero-trust-row { justify-content: center; }
.hero-centered .hero-banner { margin-top: 36px; }
.hero-banner image-slot { width: 100%; height: 320px; box-shadow: var(--shadow-lg); }

/* -- Variant C: Full-bleed image w/ overlay -- */
.hero-bleed { color: #fff; }
.hero-bleed .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bleed .hero-bg image-slot { width: 100%; height: 100%; }
.hero-bleed .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, color-mix(in srgb, var(--hero-a) 92%, transparent) 0%, color-mix(in srgb, var(--hero-a) 70%, transparent) 48%, color-mix(in srgb, var(--hero-a) 30%, transparent) 100%); }
.hero-bleed .hero-inner { position: relative; z-index: 1; max-width: 640px; padding: 88px 0 96px; }
.hero-bleed h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); }
.hero-bleed .hero-intro { color: rgba(255,255,255,.9); }
.hero-bleed .hero-kicker { background: rgba(255,255,255,.16); color: #fff; }
.hero-bleed .hero-stat strong { color: #fff; }
.hero-bleed .hero-stat span { color: rgba(255,255,255,.7); }
.hero-bleed .hero-stat-div { background: rgba(255,255,255,.25); }
.hero-bleed .crumbs, .hero-bleed .crumbs a { color: rgba(255,255,255,.75); }

/* gradient fallback inside hero image slots */
.hero-scene { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 78% 8%, color-mix(in srgb, var(--gold) 42%, transparent), transparent 55%),
  linear-gradient(150deg, var(--hero-a), var(--hero-b)); }
.hero-scene::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px); background-size: 22px 22px; opacity: .5; }

/* designed decorative hero panel (replaces empty drop-zone) */
.hero-scene-panel {
  position: relative; width: 100%; height: 360px; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(130% 105% at 72% 0%, color-mix(in srgb, var(--gold) 38%, transparent), transparent 56%),
    linear-gradient(150deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.hero-scene-tall { height: 320px; }
.hero-scene-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.5px); background-size: 24px 24px; opacity: .45; }
.hero-scene-panel::after { content: ""; position: absolute; inset: -2px; border-radius: 20px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); pointer-events: none; }
.hero-scene-emblem { position: relative; z-index: 1; width: 208px; height: 208px; color: var(--gold); opacity: .9; filter: drop-shadow(0 12px 34px rgba(0,0,0,.34)); }
.hero-scene-tall .hero-scene-emblem { width: 168px; height: 168px; }

/* trust chips row */
.trustchips { display: flex; gap: 18px; flex-wrap: wrap; }
.trustchip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.trustchip svg { color: var(--accent); }
.hero-bleed .trustchip { color: rgba(255,255,255,.92); }
.hero-bleed .trustchip svg { color: var(--gold); }

/* ---------- CATEGORY CHIPS ---------- */
.catbar-head { margin-bottom: 14px; }
.catbar-sub { display: block; font-size: 15px; color: var(--ink-3); margin-top: 4px; }
.catbar { display: flex; gap: 12px; flex-wrap: wrap; }
.catchip { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink); box-shadow: var(--shadow-sm); transition: all .15s; cursor: pointer; }
.catchip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.catchip svg { color: var(--accent); }
