/* SoftRock NZ — v0.3 cyber-premium dark-purple theme.
   Layered on top of Tailwind CDN. Keeps the existing class names from
   v0.1/v0.2 so article bodies, tables, mini-reviews, FAQs, callouts and
   casino cards continue to render without touching the underlying markup. */

:root {
  --bg: #131318;
  --bg-elevated: #1f1f24;
  --bg-card: #1b1b20;
  --bg-card-high: #2a292f;
  --surface-line: rgba(255, 255, 255, 0.10);
  --text: #e4e1e9;
  --text-dim: #cdc3d5;
  --accent: #d8b9ff;            /* primary */
  --accent-deep: #8d52da;       /* primary-container */
  --accent-glow: rgba(141, 82, 218, 0.30);
  --tertiary: #3cddc7;          /* teal accent */
  --danger: #ffb4ab;            /* error */
  --radius: 0.75rem;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

/* ────────────── Tailwind-utility-companion helpers (used by partials) ────────────── */

.glass-panel {
  background-color: rgba(31, 31, 36, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-glow {
  box-shadow: 0 0 0 rgba(141, 82, 218, 0);
  transition: box-shadow 200ms ease, background-color 150ms ease;
}
.neon-glow:hover {
  box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 22px rgba(141, 82, 218, 0.2);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ────────────── Accessibility ────────────── */

.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--accent-deep); color: white;
  padding: 8px 14px; z-index: 9999; text-decoration: none; font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ────────────── Article body ────────────── */

.article-prose {
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  max-width: 880px;
}
.article-prose h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: white;
}
.article-prose h2 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  color: var(--text);
}
.article-prose h3 {
  font-weight: 700;
  font-size: 20px;
  margin: 32px 0 10px;
  color: var(--text);
}
.article-prose h4 {
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-prose p { margin: 0 0 16px; }
.article-prose ul, .article-prose ol { padding-left: 24px; margin: 0 0 20px; }
.article-prose li { margin-bottom: 6px; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--tertiary); }
.article-prose strong { color: white; font-weight: 700; }
.article-prose blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-deep);
  border-radius: 6px;
  color: var(--text-dim);
}

/* ────────────── Hero (per-page) ────────────── */

.hero {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--surface-line);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: white;
}
.hero .lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 760px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.hero .byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
.hero .byline a { color: var(--text); text-decoration: none; }
.hero .byline a:hover { color: var(--accent); text-decoration: underline; }
.hero .byline strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-block;
  padding: 2px 12px;
  background: rgba(60, 221, 199, 0.12);
  border: 1px solid rgba(60, 221, 199, 0.35);
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 0;
}

/* ────────────── Breadcrumbs ────────────── */

.breadcrumbs {
  font-size: 13px; color: var(--text-dim);
  padding: 4px 0 0;
}
.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }
.breadcrumbs strong { color: var(--text); font-weight: 600; }

/* ────────────── Top-3 picks (.toppicks / .casino-card) ────────────── */

.toppicks {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 24px 0;
}
.casino-card {
  background-color: rgba(31, 31, 36, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: border-color 150ms ease, transform 150ms ease;
}
.casino-card:hover { border-color: rgba(216, 185, 255, 0.35); transform: translateY(-2px); }
.casino-card .rank {
  position: absolute; top: 14px; right: 18px;
  font-size: 11px; color: var(--tertiary); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.casino-card .logo {
  height: 56px; display: flex; align-items: center;
}
.casino-card .logo img { max-height: 48px; max-width: 180px; object-fit: contain; filter: brightness(1.05); }
.casino-card .name { font-size: 18px; font-weight: 700; margin: 0; color: white; }
.casino-card .bonus { color: var(--accent); font-weight: 700; font-size: 17px; margin: 0; }
.casino-card .meta { color: var(--text-dim); font-size: 13px; margin: 0; }
.casino-card .cta {
  display: inline-block; margin-top: auto; padding: 11px 18px;
  background: var(--accent-deep); color: #fef6ff; text-decoration: none;
  font-weight: 700; border-radius: 8px; text-align: center;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px;
  box-shadow: 0 0 0 rgba(141, 82, 218, 0);
  transition: box-shadow 200ms ease, transform 100ms ease;
}
.casino-card .cta:hover { box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 22px rgba(141, 82, 218, 0.2); }
.casino-card .cta:active { transform: scale(0.97); }
.casino-card .terms { font-size: 11px; color: var(--text-dim); line-height: 1.5; opacity: 0.8; }

/* ────────────── Category grid (.cat-grid) ────────────── */

.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}
.cat-grid a {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 22px;
  color: var(--text); text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.cat-grid a:hover { border-color: rgba(216, 185, 255, 0.45); transform: translateY(-2px); }
.cat-grid h3 { margin: 0; font-size: 17px; color: white; font-weight: 700; }
.cat-grid p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ────────────── Comparison table (.compare-table) ────────────── */

.compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden; font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.compare-table th {
  background: rgba(42, 41, 47, 0.6);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 700;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: rgba(216, 185, 255, 0.04); }
.compare-table .brand-cell { display: flex; align-items: center; gap: 12px; }
.compare-table .brand-cell img { width: 40px; height: 40px; object-fit: contain; filter: brightness(1.05); }
.compare-table .brand-cell .name { font-weight: 700; color: white; }
.compare-table .row-cta a {
  display: inline-block; padding: 8px 14px;
  background: var(--accent-deep); color: white; text-decoration: none;
  border-radius: 6px; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: box-shadow 200ms ease;
}
.compare-table .row-cta a:hover { box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 18px rgba(141, 82, 218, 0.2); }
.compare-table .score {
  display: inline-block; padding: 4px 12px; border-radius: 9999px;
  background: rgba(216, 185, 255, 0.10); color: var(--accent);
  font-weight: 700; font-size: 13px;
  border: 1px solid rgba(216, 185, 255, 0.35);
}

@media (max-width: 880px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    margin-bottom: 14px;
    background-color: rgba(31, 31, 36, 0.65);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
  }
  .compare-table td { border: 0; padding: 6px 16px; }
  .compare-table td:first-child { padding-top: 14px; }
  .compare-table td:last-child { padding-bottom: 14px; }
  .compare-table td::before {
    content: attr(data-label) ": ";
    color: var(--text-dim); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-right: 6px; font-weight: 600;
  }
  .compare-table td.row-cta::before, .compare-table td.brand-cell::before { display: none; }
}

/* ────────────── Mini-review block ────────────── */

.mini-review {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 24px;
  margin: 24px 0;
  display: grid; gap: 18px;
  grid-template-columns: 200px 1fr;
  align-items: start;
}
.mini-review header img { max-width: 160px; height: auto; filter: brightness(1.05); }
.mini-review header .score-line { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.mini-review header .score-line strong { color: var(--accent); }
.mini-review h3 { margin: 0 0 8px; font-size: 21px; color: white; font-weight: 700; }
.mini-review p { margin: 0 0 12px; }
.mini-review ul { margin: 8px 0 12px; padding-left: 20px; }
.mini-review .cta {
  display: inline-block; padding: 11px 22px;
  background: var(--accent-deep); color: white; text-decoration: none;
  font-weight: 700; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px;
  transition: box-shadow 200ms ease;
}
.mini-review .cta:hover { box-shadow: 0 0 4px rgba(141, 82, 218, 0.45), 0 0 22px rgba(141, 82, 218, 0.2); }
.mini-review .terms { font-size: 11px; color: var(--text-dim); margin-top: 8px; opacity: 0.8; }
@media (max-width: 720px) {
  .mini-review { grid-template-columns: 1fr; }
}

/* ────────────── Pros / cons (standalone + nested) ────────────── */

.pros-cons {
  display: grid; gap: 16px; grid-template-columns: 1fr 1fr;
  margin: 24px 0; max-width: 880px;
}
.pros-cons > div {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 16px 20px;
}
.pros-cons h4 {
  margin: 0 0 8px; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 700;
}
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 14px; }
.pros-cons li { margin-bottom: 4px; }
.mini-review .pros-cons { gap: 12px; margin: 8px 0; }
.mini-review .pros-cons > div { background: transparent; border: 0; padding: 0; }

@media (max-width: 720px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ────────────── Callouts ────────────── */

.callout {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 20px 24px;
  margin: 28px 0; max-width: 880px;
}
.callout h3 { margin-top: 0; color: white; font-weight: 700; }
.callout.rg { border-color: rgba(255, 180, 171, 0.55); background: rgba(255, 180, 171, 0.06); }
.callout.rg h3 { color: var(--danger); }
.callout.method { border-color: rgba(216, 185, 255, 0.45); background: rgba(216, 185, 255, 0.04); }
.callout.method h3 { color: var(--accent); }

/* ────────────── FAQ ────────────── */

.faq { margin: 32px 0; max-width: 880px; }
.faq details {
  border-bottom: 1px solid var(--surface-line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px;
  list-style: none; position: relative; padding-right: 32px;
  color: white;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  color: var(--accent); font-size: 24px; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-dim); }
.faq details ul { margin-top: 8px; color: var(--text-dim); }

/* ────────────── EEAT trust-block ────────────── */

.trust-block {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 24px;
  margin: 32px 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust-block .item h4 { margin: 0 0 6px; font-size: 15px; color: white; font-weight: 700; }
.trust-block .item p { margin: 0; font-size: 13px; color: var(--text-dim); }

/* ────────────── Related strip ────────────── */

.related-strip {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}
.related-strip a {
  background-color: rgba(31, 31, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 16px 18px;
  color: var(--text); text-decoration: none;
  font-size: 14px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 150ms ease;
}
.related-strip a:hover { border-color: rgba(216, 185, 255, 0.45); color: white; }
.related-strip a span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* ────────────── Payment-method strip ────────────── */

.payment-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.payment-strip .tag { font-size: 12px; padding: 4px 12px; }

/* ────────────── Tags / muted / last-updated ────────────── */

.tag {
  display: inline-block; padding: 2px 12px; border-radius: 9999px;
  background-color: rgba(31, 31, 36, 0.65);
  color: var(--text-dim); font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tag.gold { color: var(--accent); border-color: rgba(216, 185, 255, 0.55); }
.tag.danger { color: var(--danger); border-color: rgba(255, 180, 171, 0.55); }
.muted { color: var(--text-dim); }
.last-updated { font-size: 12px; color: var(--text-dim); }
.last-updated-bottom {
  margin-top: 48px; padding-top: 16px;
  border-top: 1px solid var(--surface-line);
  font-size: 12px; color: var(--text-dim);
}

/* ────────────── Article-element bridge (existing markup keeps working) ────────────── */

main > .wrap, main .wrap { width: 100%; }
main article {
  padding: 8px 0 64px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  max-width: 880px;
}
main article h2 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
main article h3 { font-weight: 700; font-size: 20px; margin: 32px 0 10px; color: var(--text); }
main article h4 { font-weight: 600; font-size: 16px; margin: 24px 0 8px; color: var(--text); }
main article p { margin: 0 0 16px; max-width: 800px; }
main article ul, main article ol { max-width: 800px; padding-left: 24px; margin: 0 0 20px; }
main article li { margin-bottom: 6px; }
main article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
main article a:hover { color: var(--tertiary); }
main article strong { color: white; font-weight: 700; }
main article blockquote {
  margin: 24px 0; padding: 16px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-deep);
  border-radius: 6px; color: var(--text-dim);
  max-width: 880px;
}

/* ────────────── 404 page ────────────── */

.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 64px; margin: 0 0 12px; color: var(--accent); font-weight: 800; }
.error-page p { max-width: 480px; margin: 0 auto 24px; color: var(--text-dim); }

/* ────────────── Print ────────────── */

@media print {
  .glass-panel, .site-header, header, footer, nav, .skip-link, .casino-card .cta, .compare-table .row-cta { display: none; }
  body { background: white; color: black; }
}

/* ────────────── Legacy wrap helper (some pages use .wrap) ────────────── */

.wrap { width: 100%; }
