/* ============================================================
   SpinPatrol — review.css  (v2)
   Long-form content, review pages, FAQ, demo modal.
   Mobile-first: no max-width overrides that fight main.css.
   ============================================================ */

/* ── Long-form content ──────────────────────────────── */
.content-wrap { max-width: var(--wrap-text); }

.content-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 27px);
  font-weight: 800;
  margin: 36px 0 14px;
  letter-spacing: -.03em;
  line-height: 1.25;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap h3 {
  font-family: var(--font-display);
  font-size: clamp(16.5px, 4vw, 20px);
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.content-wrap h4 {
  font-size: 15.5px; font-weight: 700; margin: 20px 0 8px; color: var(--text);
}
.content-wrap p {
  color: var(--text2);
  font-size: 15.5px;
  line-height: 1.78;
  margin-bottom: 15px;
}
.content-wrap p strong, .content-wrap li strong { color: var(--text); font-weight: 700; }
.content-wrap a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240,180,41,.4); }
.content-wrap a:hover { text-decoration-color: var(--gold2); }

.content-wrap ul, .content-wrap ol { margin: 0 0 16px 19px; }
.content-wrap li {
  color: var(--text2);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 7px;
}
.content-wrap ul ul, .content-wrap ol ol { margin-top: 7px; }

.content-list { list-style: none; margin-left: 0 !important; }
.content-list li { padding-left: 24px; position: relative; }
.content-list li::before {
  content: '→'; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 800;
}

.content-wrap blockquote {
  margin: 20px 0; padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 var(--r1) var(--r1) 0;
  color: var(--text2); font-size: 15px; line-height: 1.7;
}

/* Article figures (charts / screenshots) */
.article-figure { margin: 26px 0; text-align: center; max-width: 100%; }
.article-figure img,
.article-figure picture {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.article-figure img {
  border-radius: var(--r2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: contain;
  background: var(--bg2, #0f1419);
}
.article-figure figcaption {
  font-size: 12px; color: var(--text3); margin-top: 9px; line-height: 1.55;
}
@media (max-width: 719px) {
  .article-figure { margin: 16px 0; }
  .article-figure img {
    /* Keep review screenshots compact on phones (~16:9 sources) */
    width: 100%;
    max-height: min(48vh, 360px);
    object-fit: contain;
    object-position: center top;
  }
  .article-figure figcaption {
    font-size: 11.5px;
    padding: 0 2px;
    text-align: left;
  }
}

/* ── Info boxes ─────────────────────────────────────── */
.info-box {
  border-radius: var(--r2);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text2);
}
.info-box strong { display: block; margin-bottom: 5px; font-weight: 800; }
.info-box p { font-size: 14.5px !important; margin-bottom: 0 !important; }
.info-box--gold  { background: var(--gold-dim); border: 1px solid rgba(240,180,41,.25); }
.info-box--gold strong { color: var(--gold); }
.info-box--blue  { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.22); }
.info-box--blue strong { color: #60a5fa; }
.info-box--green { background: var(--green-dim); border: 1px solid rgba(34,197,94,.22); }
.info-box--green strong { color: var(--green); }
.info-box--red   { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.22); }
.info-box--red strong { color: #fb7185; }

/* ── Comparison table (scrolls on mobile) ───────────── */
.comparison-table-wrap { margin: 24px 0; }
.comparison-table-wrap h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 11px; color: var(--text); }
.table-responsive {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r2);
}
.table-responsive::-webkit-scrollbar { height: 5px; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 999px; }

.comparison-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
.comparison-table th {
  background: var(--bg3); padding: 11px 13px; text-align: left;
  color: var(--text2); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.comparison-table td {
  padding: 11px 13px; border-bottom: 1px solid var(--border);
  color: var(--text2); vertical-align: top; line-height: 1.55;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.comparison-table th:first-child,
.comparison-table td:first-child { font-weight: 600; color: var(--text); }
.highlight-green { color: var(--green) !important; font-weight: 700; }
.highlight-gold  { color: var(--gold)  !important; font-weight: 700; }

/* ── FAQ (accordion) ────────────────────────────────── */
.faq-list { margin-top: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r2);
  margin-bottom: 9px;
  overflow: hidden;
  background: var(--bg2);
  transition: border-color .18s;
}
.faq-item.open { border-color: rgba(240,180,41,.3); }
.faq-question {
  font-family: var(--font-display) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 14px 16px;
  cursor: pointer;
  background: transparent;
  color: var(--text) !important;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background .15s;
  user-select: none;
  line-height: 1.45;
  min-height: 52px;
}
.faq-question:hover { background: var(--bg3); }
.faq-question::after {
  content: '+';
  font-size: 21px; font-weight: 400;
  color: var(--gold); flex-shrink: 0;
  transition: transform .22s; line-height: 1;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-item.open .faq-question { background: var(--bg3); }
.faq-answer { display: none; padding: 0 16px 15px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p {
  margin: 11px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--text2);
}
@media (min-width: 768px) {
  .faq-question { font-size: 15.5px !important; padding: 16px 20px; }
  .faq-answer { padding: 0 20px 17px; }
}

/* ── Quick facts strip ──────────────────────────────── */
.quick-facts-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.quick-facts {
  display: flex; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-facts::-webkit-scrollbar { display: none; }
.qf-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 16px; border-right: 1px solid var(--border);
  min-width: 96px; flex: 1 0 auto; text-align: center;
}
.qf-item:last-child { border-right: none; }
.qf-label {
  font-size: 10px; color: var(--text3); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 3px; white-space: nowrap;
}
.qf-value { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.wdi { color: var(--green) !important; }
@media (min-width: 768px) { .qf-item { min-width: 116px; padding: 8px 20px; } .qf-value { font-size: 15px; } }

/* ── Score breakdown ────────────────────────────────── */
.score-breakdown {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 18px;
}
.score-breakdown h2 { font-size: 17px !important; margin: 0 0 16px !important; }
.score-grid { display: flex; flex-direction: column; gap: 11px; }
.score-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.score-item__label { font-size: 13px; color: var(--text2); }
.score-item__num { font-size: 13px; font-weight: 800; color: var(--gold); text-align: right; }
.score-item__bar {
  grid-column: 1 / -1;
  height: 6px; background: var(--bg3);
  border-radius: 999px; overflow: hidden;
}
.score-item__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width .8s ease;
}
@media (min-width: 640px) {
  .score-breakdown { padding: 26px; }
  .score-item { grid-template-columns: 168px 1fr 52px; }
  .score-item__bar { grid-column: auto; }
}

/* ── Review hero ────────────────────────────────────── */
.review-hero {
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(240,180,41,.10), transparent 60%),
    var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.review-header {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: start;
  background: none; border: none; padding: 0; margin: 0;
}
.review-logo {
  width: 116px; aspect-ratio: 2 / 1;
  background: var(--bg3);
  border-radius: var(--r2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0;
}
.review-logo picture { display: contents; }
.review-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.review-logo__fallback { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: var(--gold); }

.review-header__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.review-header__top h1 {
  font-family: var(--font-display);
  font-size: clamp(21px, 5.6vw, 32px);
  font-weight: 800; letter-spacing: -.03em; margin: 0; width: 100%;
}
.review-header__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.review-header__actions .btn { width: 100%; }

.review-score {
  grid-column: 1 / -1;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 14px;
  display: flex; align-items: center; gap: 16px;
  text-align: left;
}
.review-score__num { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; }
.review-score__label { font-size: 12.5px; color: var(--text2); margin-top: 3px; }
.review-score__stars { color: var(--gold); font-size: 15px; }
.review-score__sub { font-size: 11px; color: var(--text3); margin-top: 3px; }
.review-score__max { font-size: 13px; color: var(--text2); }

@media (min-width: 900px) {
  .review-hero { padding: 40px 0; }
  .review-header { grid-template-columns: 180px 1fr auto; gap: 24px; }
  .review-logo { width: 180px; }
  .review-score {
    grid-column: auto; flex-direction: column; text-align: center;
    min-width: 132px; padding: 20px; gap: 4px;
  }
  .review-score__num { font-size: 44px; }
  .review-header__actions { display: flex; gap: 10px; }
  .review-header__actions .btn { width: auto; }
}

/* ── Review CTA box ─────────────────────────────────── */
.review-cta-box {
  background: linear-gradient(135deg, rgba(240,180,41,.10), var(--bg2));
  border: 1px solid rgba(240,180,41,.3);
  border-radius: var(--r2);
  padding: 20px; margin: 28px 0;
  display: flex; flex-direction: column; gap: 16px;
}
.review-cta-box__content { flex: 1; min-width: 0; }
.review-cta-box h3 {
  font-family: var(--font-display);
  font-size: 17.5px; font-weight: 700;
  margin: 0 0 5px; color: var(--text) !important;
}
.review-cta-box p { color: var(--text2) !important; font-size: 14px; margin: 0 !important; }
.review-cta-box .btn { width: 100%; }
@media (min-width: 700px) {
  .review-cta-box { flex-direction: row; align-items: center; gap: 24px; padding: 26px; }
  .review-cta-box .btn { width: auto; flex-shrink: 0; }
}

/* ── Slot demo modal ────────────────────────────────── */
.slot-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.slot-modal[hidden] { display: none; }
.slot-modal__backdrop { position: absolute; inset: 0; background: rgba(4,5,9,.9); }
.slot-modal__inner {
  position: relative;
  width: 100%; max-width: 940px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r2); overflow: hidden;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 20px);
  box-shadow: var(--shadow-lg);
}
.slot-modal__header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg3); flex-shrink: 0;
}
.slot-modal__title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.slot-modal__close {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--r1);
  width: 36px; height: 36px; min-width: 36px;
  cursor: pointer; font-size: 16px; line-height: 1;
}
.slot-modal__close:hover { border-color: var(--gold); color: var(--gold); }
.slot-modal__frame {
  width: 100%; flex: 1; border: none; display: block;
  background: #000; aspect-ratio: 16/10; min-height: 200px;
}
.slot-modal__footer {
  padding: 11px 14px; background: var(--bg3);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: stretch; gap: 9px;
  flex-shrink: 0; font-size: 12.5px; color: var(--text2);
}
.slot-modal__casinos { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 7px; }
.slot-modal__casinos .btn { width: 100%; }
@media (min-width: 700px) {
  .slot-modal { padding: 16px; }
  .slot-modal__frame { aspect-ratio: 16/9; }
  .slot-modal__footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .slot-modal__casinos { display: flex; flex-wrap: wrap; }
  .slot-modal__casinos .btn { width: auto; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .slot-modal__frame { aspect-ratio: auto; height: calc(100dvh - 130px); }
}

/* ── Table of contents ──────────────────────────────── */
.toc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 16px 18px; margin: 22px 0;
}
.toc__title {
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text3); margin-bottom: 10px;
}
.toc ol { margin: 0 0 0 18px; }
.toc li { font-size: 14px; margin-bottom: 6px; color: var(--text2); }
.toc a { color: var(--text2); text-decoration: none; }
.toc a:hover { color: var(--gold); }

/* ── Author / trust block ───────────────────────────── */
.author-box {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 15px; margin: 28px 0;
}
.author-box__avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold), #d99a12);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; color: #0a0c11; font-size: 15px;
}
.author-box__name { font-size: 14px; font-weight: 700; color: var(--text); }
.author-box__role { font-size: 12px; color: var(--text3); margin-bottom: 5px; }
.author-box__bio  { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── Section alt alias ──────────────────────────────── */
.section--alt { background: var(--bg2); border-top: 1px solid var(--border); }

/* ── Slot grid home alias ───────────────────────────── */
.slot-grid--home { }
