/**
 * state-page.css
 *
 * Individual state page styles (btf_state CPT).
 * Mobile-first with min-width breakpoints.
 * Uses existing design tokens from base.css.
 *
 * @package BeatTheFish
 * @since   2.2.0
 */

/* ═══ Hero — State Page ═══════════════════════════════════════════ */

.sp-hero {
  padding: 36px 0 44px;
}

/* ── Status Strip (horizontal, below intro) ──────────────────── */

/* Mobile: vertical card layout */
.sp-status-strip {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.sp-status-strip-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-status-strip-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(243, 156, 18, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.sp-status-strip-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  color: var(--on-dark);
}

.sp-status-strip-text {
  font-size: 0.8rem;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

.sp-status-strip-rows {
  display: flex;
  flex-direction: column;
}

.sp-status-strip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-status-strip-row .sp-status-value {
  margin-left: auto;
}

.sp-status-strip-row:last-child { border-bottom: none; }

.sp-status-strip-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-status-strip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sp-status-strip-footer .sp-verified {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--on-dark-dim);
}

.sp-status-strip-footer a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(184, 148, 62, 0.8);
}

.sp-status-strip-footer a:hover {
  color: rgba(184, 148, 62, 1);
  text-decoration: none;
}

.sp-hero .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Desktop: horizontal pill layout */
@media (min-width: 600px) {
  .sp-status-strip {
    background: none;
    border: none;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    overflow: visible;
  }

  .sp-status-strip-summary {
    padding: 0;
    border-bottom: none;
    margin-bottom: 16px;
  }

  .sp-status-strip-rows {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sp-status-strip-row {
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 8px 16px;
  }

  .sp-status-strip-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  .sp-status-strip-footer {
    justify-content: flex-start;
    gap: 16px;
    padding: 0;
    margin-top: 14px;
    border-top: none;
    background: none;
  }

  .sp-hero .btn-primary {
    width: auto;
  }
}

.sp-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-status-dot.green  { background: rgba(61, 122, 74, 0.9); }
.sp-status-dot.amber  { background: rgba(168, 152, 80, 0.9); }
.sp-status-dot.red    { background: rgba(139, 48, 48, 0.9); }

.sp-status-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.sp-status-value.yes  { color: rgba(61, 122, 74, 0.9); }
.sp-status-value.grey { color: rgba(255, 255, 255, 0.4); }
.sp-status-value.no   { color: rgba(180, 70, 70, 0.8); }

/* ═══ Section Headers ════════════════════════════════════════════ */

.sp-section-sub {
  font-size: 0.92rem;
  color: var(--ink3);
  max-width: 660px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ═══ Legal Status Grid ══════════════════════════════════════════ */

.sp-legal-card {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.sp-legal-card.yes  { background: var(--felt-bg); border-color: rgba(30, 107, 60, 0.15); }
.sp-legal-card.no   { background: var(--red-bg);  border-color: rgba(139, 32, 32, 0.15); }
.sp-legal-card.grey { background: var(--bg2);     border-color: var(--rule); }

.sp-legal-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.sp-legal-status.yes  { color: var(--felt); }
.sp-legal-status.no   { color: var(--red); }
.sp-legal-status.grey { color: var(--ink4); }

.sp-legal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-legal-dot.yes  { background: var(--felt); }
.sp-legal-dot.no   { background: var(--red); }
.sp-legal-dot.grey { background: var(--ink4); }

.sp-legal-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sp-legal-desc {
  font-size: 0.83rem;
  color: var(--ink3);
  margin: 0 0 12px;
  line-height: 1.55;
}

.sp-legal-note {
  font-size: 0.73rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--ink4);
}

/* ═══ Timeline ═══════════════════════════════════════════════════ */

.sp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.sp-timeline::before {
  content: '';
  position: absolute;
  left: 85px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.sp-tl-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0;
  position: relative;
}

.sp-tl-date {
  min-width: 60px;
  text-align: right;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink4);
  line-height: 1.4;
  padding-top: 2px;
}

.sp-tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.sp-tl-dot.pass    { background: var(--felt); }
.sp-tl-dot.fail    { background: var(--red); }
.sp-tl-dot.pending { background: var(--brass); }
.sp-tl-dot.neutral { background: var(--ink4); }

.sp-tl-body {
  flex: 1;
}

.sp-tl-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.sp-tl-desc {
  font-size: 0.83rem;
  color: var(--ink3);
  line-height: 1.55;
  margin: 0;
}

.sp-tl-desc a {
  color: var(--felt);
  font-weight: 500;
}

.sp-tl-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 7px;
  vertical-align: middle;
}

.sp-tl-tag.tag-pass    { background: var(--felt-bg); color: var(--felt); }
.sp-tl-tag.tag-fail    { background: var(--red-bg);  color: var(--red); }
.sp-tl-tag.tag-pending { background: var(--brass-bg); color: var(--brass); }

/* ═══ Sources ════════════════════════════════════════════════════ */

.sp-sources-intro {
  font-size: 0.85rem;
  color: var(--ink4);
  margin-bottom: 20px;
}

.sp-sources-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.sp-source-item {
  font-size: 0.88rem;
}

.sp-source-item a {
  color: var(--felt);
  font-weight: 500;
  transition: color 0.15s;
}

.sp-source-item a:hover {
  color: var(--felt2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══ Callout Box ════════════════════════════════════════════════ */

.sp-callout {
  background: var(--brass-bg);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin-top: 1.5rem;
  max-width: 640px;
}

.sp-callout--full { max-width: none; }

.sp-callout p {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.7;
  margin: 0;
}

.sp-callout strong {
  color: var(--ink);
}

.sp-callout a {
  color: var(--felt);
  font-weight: 600;
}

/* ═══ Section Spacing (override global padding for state pages) ═ */

.section-paper,
.section-surface,
.section-white {
  padding: 3rem 0;
}

/* ═══ Tribal Gaming ═════════════════════════════════════════════ */

.sp-tribal-box {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.sp-tribal-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-tribal-stat {
  text-align: center;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
}

.sp-tribal-stat-val {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  font-style: italic;
  color: var(--brass);
  display: block;
  line-height: 1;
}

.sp-tribal-stat-label {
  font-size: 0.78rem;
  color: var(--ink4);
  margin-top: 4px;
  display: block;
}

/* ═══ Player Protections ════════════════════════════════════════ */

.sp-prot-grid {
  margin-bottom: 1.5rem;
}

.sp-prot-card {
  padding: 1.25rem;
}

.sp-prot-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.sp-prot-yes .sp-prot-status { color: var(--felt); }
.sp-prot-no .sp-prot-status  { color: var(--red); }

.sp-prot-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sp-prot-desc {
  font-size: 0.82rem;
  margin: 0;
  color: var(--ink3);
}

/* ═══ Responsible Gambling ══════════════════════════════════════ */

/* Dark RG style handled by .rg-box--dark in cards.css */

.sp-rg-grid {
  margin-bottom: 20px;
}

.sp-rg-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.sp-rg-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(244, 239, 230, 0.9);
  margin-bottom: 4px;
}

.sp-rg-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
  margin-bottom: 8px;
}

.sp-rg-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(184, 148, 62, 0.8);
}

.sp-rg-card-link:hover {
  color: rgba(184, 148, 62, 1);
}

.sp-rg-tools-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
}

.sp-rg-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-rg-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(244, 239, 230, 0.6);
}

/* ═══ Casino Checklist ══════════════════════════════════════════ */

.sp-checklist {
  margin-top: 1.5rem;
  background: rgba(27, 58, 45, 0.08);
  border: 1px solid rgba(27, 58, 45, 0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  max-width: 640px;
}

.sp-checklist-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--felt);
  margin-bottom: 0.85rem;
}

.sp-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sp-checklist li {
  font-size: 0.85rem;
  color: var(--felt);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.sp-checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--felt);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══ Responsive ════════════════════════════════════════════════ */

@media (min-width: 600px) {
  .sp-tribal-box {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
