/* Kwiff Review — professional dark, modelled on Casino.guru's information density
   + Kwiff's actual brand colour palette (dark + violet + electric blue).
   ONE typeface. Two accents max. No animations, no emoji, no rainbow gradients.
*/

:root {
  --bg: #141416;
  --bg-elev: #1C1C1F;
  --bg-elev-2: #25252A;
  --bg-card: #1A1A1D;
  --border: #2A2A30;
  --border-hi: #3A3A42;

  --kwiff: #7A2BFF;         /* Kwiff brand violet — primary CTA */
  --kwiff-hover: #8C45FF;
  --kwiff-soft: rgba(122, 43, 255, 0.12);

  --blue: #3DA9FC;          /* Kwiff brand accent blue — links, ratings */
  --green: #22C55E;         /* Pros, positives */
  --red: #EF4444;           /* Cons, negatives */
  --amber: #F59E0B;         /* Warnings, neutral ratings */

  --text: #EDEDED;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 12px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
}
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 700; margin: 32px 0 14px; padding-top: 24px; border-top: 1px solid var(--border); }
h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }

p { margin: 0 0 14px; }
p.lead { font-size: 17px; line-height: 1.55; color: var(--text); }
p.muted { color: var(--text-muted); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

code {
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.88em;
  color: var(--blue);
  border: 1px solid var(--border);
}

/* ============ LAYOUT ============ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: baseline; gap: 6px;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .accent { color: var(--blue); font-weight: 500; font-size: 13px; }

nav.main-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
nav.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); border-bottom-color: var(--kwiff); text-decoration: none; }

/* ============ HERO / TRUST CARD ============ */
.trust-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0 32px;
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.trust-card-banner {
  grid-column: 1 / -1;
  margin: -24px -28px 4px;
  height: 240px;
  position: relative;
  overflow: hidden;
}
.trust-card-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.trust-card-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,22,0) 55%, var(--bg-elev) 100%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .trust-card-banner { height: 160px; margin: -20px -20px 4px; }
}
.trust-card-main h1 { margin: 0 0 6px; }
.trust-card-main .subline { color: var(--text-muted); font-size: 14px; margin: 0; }
.trust-card-main .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.trust-score {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
}
.trust-score .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.trust-score .value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-feature-settings: 'tnum';
}
.trust-score .value .out-of { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.trust-score .badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}
.trust-score .badge.warn { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.trust-score .badge.bad { background: rgba(239, 68, 68, 0.15); color: var(--red); }

@media (max-width: 820px) {
  .trust-card { grid-template-columns: 1fr; padding: 20px; }
}

/* ============ AUTHOR CARD ============ */
.author-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0 28px;
}
.author-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kwiff), var(--blue));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 4px rgba(122, 43, 255, 0.15);
}
.author-body h3 { margin: 0 0 4px; font-size: 18px; }
.author-body .author-role {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.author-credentials { margin: 12px 0 0; padding-left: 18px; font-size: 14px; }
.author-credentials li { margin-bottom: 6px; }

.byline {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
  margin: 8px 0 0;
}
.byline-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kwiff), var(--blue));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.byline a { color: var(--text); border-bottom: 1px dotted var(--border); }
.byline a:hover { color: var(--blue); text-decoration: none; border-bottom-color: var(--blue); }

@media (max-width: 600px) {
  .author-card { grid-template-columns: 1fr; }
  .author-avatar { width: 72px; height: 72px; font-size: 26px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kwiff);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--kwiff-hover); color: white; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--text-muted); color: var(--text); }
.btn-arrow::after { content: ' →'; margin-left: 4px; }

/* ============ SECTION NAV (Casino.guru style horizontal tabs) ============ */
.section-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 53px; z-index: 40;
  margin-top: -32px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.section-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 28px;
  white-space: nowrap;
}
.section-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.section-nav a:hover, .section-nav a.active { color: var(--text); border-bottom-color: var(--kwiff); text-decoration: none; }

/* ============ KEY FACTS GRID ============ */
.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 32px;
  overflow: hidden;
}
.key-fact { padding: 16px 20px; border-right: 1px solid var(--border); }
.key-fact:last-child { border-right: none; }
.key-fact .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.key-fact .value { font-size: 16px; font-weight: 600; color: var(--text); }
.key-fact .value.kwiff { color: var(--blue); }

@media (max-width: 640px) {
  .key-facts { grid-template-columns: repeat(2, 1fr); }
  .key-fact { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .key-fact:nth-child(2n) { border-right: none; }
}

/* ============ PROS / CONS (clean text lists, no decorative cards) ============ */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 20px 0 28px;
}
.proscons h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.proscons .pros h3 { color: var(--green); }
.proscons .cons h3 { color: var(--red); }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { padding-left: 22px; position: relative; margin-bottom: 8px; font-size: 14px; line-height: 1.5; color: var(--text); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; gap: 20px; } }

/* ============ TABLES ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
caption {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0;
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ============ INFO CARDS ============ */
.info-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0 24px;
}
.info-card .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}
.info-card p:last-child { margin-bottom: 0; }

.info-card.warn { border-left: 3px solid var(--amber); }
.info-card.warn .label { color: var(--amber); }
.info-card.bad { border-left: 3px solid var(--red); }
.info-card.bad .label { color: var(--red); }

/* ============ BONUS CARD (key offers — simple, restrained) ============ */
.bonus-offer {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--kwiff);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 16px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.bonus-offer .offer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kwiff);
  margin: 0 0 6px;
}
.bonus-offer .offer-amount { font-size: 26px; font-weight: 800; color: var(--text); margin: 0 0 4px; letter-spacing: -0.01em; }
.bonus-offer .offer-terms { font-size: 13px; color: var(--text-muted); margin: 0; }
@media (max-width: 640px) {
  .bonus-offer { grid-template-columns: 1fr; }
}

/* ============ FAQ (clean accordion, no glow) ============ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  padding-right: 30px;
  position: relative;
  display: block;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: -2px;
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ============ RELATED CARDS (simple, no neon) ============ */
.related {
  margin: 40px 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related h2 { border-top: none; padding-top: 0; margin-top: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
  display: block;
}
.related-card:hover { border-color: var(--border-hi); transform: translateY(-1px); text-decoration: none; color: var(--text); }
.related-card .kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.related-card .title { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; line-height: 1.35; }
.related-card .meta { font-size: 12px; color: var(--text-dim); margin: 6px 0 0; }

/* ============ BYLINE ============ */
.byline {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.byline img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.byline .author { color: var(--text); font-weight: 600; }
.byline .sep { color: var(--border-hi); margin: 0 4px; }
.byline time { font-style: normal; }

/* ============ STEPS ============ */
.steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.steps li {
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  counter-increment: step;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 18px;
  width: 28px; height: 28px;
  background: var(--kwiff);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.steps li h3 { margin: 0 0 4px; font-size: 15px; }
.steps li p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 48px 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .colophon { color: var(--text-muted); line-height: 1.6; max-width: 340px; }
.responsible-gaming {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.responsible-gaming strong { color: var(--text); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  nav.main-nav { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-card { padding: 18px; }
  h1 { font-size: 26px; }
}

/* ============ 404 ============ */
.error-page { padding: 80px 24px; text-align: center; }
.error-page h1 { font-size: 72px; color: var(--kwiff); margin-bottom: 0; }
.error-page p { color: var(--text-muted); margin: 12px 0 24px; }
