/*
Theme Name: SlotTracker
Theme URI: https://slottracker.ai
Author: Player Analytics Group, LLC
Description: Editorial theme for SlotTracker.ai — a Player Analytics Group publication. Implements the SpinLucki Style Guide v1.1 (navy/gold, Cinzel + DM Sans).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: slottracker
*/

/* ============ Tokens — SpinLucki Style Guide v1.1 ============ */
:root {
  --navy: #07111F;
  --navy-mid: #0C1A2E;
  --navy-light: #112038;
  --navy-border: #1E3A5F;
  --gold: #C8960C;
  --gold-highlight: #F0B830;
  --white: #E2E8F0;
  --dim: rgba(226, 232, 240, 0.55);
  --muted: #8BA3C0;
  --card-border-gold: rgba(200, 150, 12, 0.14);
  --positive: #4CAF50;
  --caution: #E53E3E;
}

/* ============ Base ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  color: var(--gold-highlight);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 16px; }

a { color: var(--gold-highlight); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

.st-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.st-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.st-header {
  background-color: var(--navy);
  border-bottom: 1px solid var(--navy-border);
  padding: 18px 0;
}
.st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.st-logo { display: flex; align-items: baseline; gap: 10px; }
.st-logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-right: 2px;
}
.st-logo-mark span {
  display: inline-block;
  width: 5px;
  background: var(--gold);
  border-radius: 1px;
}
.st-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.st-logo-text em { font-style: normal; color: var(--gold-highlight); }
.st-logo-tag {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.st-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.st-nav a {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--muted);
}
.st-nav a:hover { color: var(--gold); }
.st-nav a.st-nav-active { color: var(--gold-highlight); }

.st-cta {
  display: inline-block;
  background: linear-gradient(135deg, #C8960C, #E07B20);
  color: var(--navy) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(200, 150, 12, 0.25);
}
.st-cta:hover { filter: brightness(1.08); }

/* ============ Hero (front page) ============ */
.st-hero { padding: 72px 0 56px; }
.st-hero h1 {
  font-size: 52px;
  margin: 0 0 8px;
  color: var(--white);
}
.st-hero h1 em { font-style: normal; color: var(--gold-highlight); }
.st-hero-rule {
  width: 72px; height: 3px;
  background: var(--gold);
  margin: 22px 0;
}
.st-hero-sub {
  font-size: 21px;
  color: var(--white);
  max-width: 560px;
  margin-bottom: 10px;
}
.st-hero-body {
  color: var(--dim);
  max-width: 560px;
  margin-bottom: 28px;
}

/* ============ Cards ============ */
.st-card {
  background-color: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.st-card:hover { border-color: var(--gold); }

.st-card-gold {
  background-color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.st-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.st-kicker {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.st-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.st-section { padding: 40px 0; }
.st-section-head { margin-bottom: 24px; }

/* ============ Article layout ============ */
.st-article { padding: 56px 0 40px; }
.st-article-kicker {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.st-article h1 { margin: 0 0 10px; }
.st-article-standfirst {
  font-size: 19px;
  color: var(--dim);
  margin-bottom: 8px;
}
.st-article-meta {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 34px;
}
.st-article .entry-content h2 { font-size: 22px; margin-top: 40px; }
.st-article .entry-content h3 { margin-top: 36px; margin-bottom: 8px; }

/* Myth / fact card (Slot Myths pattern) */
.st-myth-card {
  background-color: var(--navy-mid);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 24px;
  margin: 0 0 20px;
}
.st-myth-card .st-myth {
  color: var(--gold-highlight);
  font-size: 18px;
  font-style: italic;
  margin-bottom: 14px;
}
.st-myth-card .st-fact { color: #CBD5E1; font-size: 16px; margin-bottom: 16px; }
.st-myth-card .st-origin { color: var(--muted); font-size: 16px; font-style: italic; line-height: 1.65; margin-bottom: 0; }

/* Signature line (left-border list item) */
.st-sig {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  color: #CBD5E1;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 10px;
}

/* Stat boxes */
.st-stat {
  background-color: var(--navy);
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
}
.st-stat .st-stat-value {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--gold-highlight);
}
.st-stat .st-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Closing box */
.st-closing {
  background-color: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Pullquote */
.st-pullquote {
  border-left: 3px solid var(--gold);
  background: rgba(200, 150, 12, 0.07);
  padding: 14px 18px;
  margin: 22px 0;
}
.st-pullquote p {
  color: var(--gold-highlight);
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  margin: 0;
}

/* Research card */
.st-research-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.st-research-heading {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold-highlight);
  margin: 0 0 12px;
}
.st-research-source {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(200, 150, 12, 0.2);
  padding-top: 10px;
  margin-top: 12px;
}
.st-orientation {
  font-size: 16px;
  color: var(--gold-highlight);
  font-style: italic;
  line-height: 1.65;
  margin: 10px 0 0;
}

/* Formula box + pills */
.st-formula {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  color: var(--gold-highlight);
  line-height: 1.8;
  margin-bottom: 10px;
}
.st-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.st-pill {
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Caution strip inside cards */
.st-caution {
  margin-top: 14px;
  padding: 10px 14px;
  background-color: var(--navy-light);
  border-radius: 4px;
  font-size: 15px;
  color: var(--muted);
}
.st-caution strong {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  overflow: hidden;
}
.entry-content th {
  background: var(--navy);
  color: var(--gold-highlight);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gold);
}
.entry-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--navy-border);
  vertical-align: top;
}
.entry-content tr:last-child td { border-bottom: none; }

/* SpinLucki callout band */
.st-spinlucki-band {
  background: var(--navy-mid);
  border: 1px solid var(--card-border-gold);
  border-radius: 6px;
  padding: 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.st-spinlucki-band .st-band-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--gold-highlight);
  margin-bottom: 6px;
}
.st-spinlucki-band p { color: var(--dim); margin: 0; max-width: 520px; }

/* ============ Visual landing page ============ */
.st-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.st-hero-visual { position: relative; text-align: center; }
.st-hero-visual svg { width: 100%; max-width: 460px; height: auto; }
.st-hero-glow {
  position: absolute;
  inset: -10% -10%;
  background: radial-gradient(ellipse at center, rgba(200, 150, 12, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.st-chip {
  position: absolute;
  background: rgba(12, 26, 46, 0.92);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  padding: 8px 14px;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.st-chip .st-chip-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.st-chip .st-chip-value {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold-highlight);
}
.st-feature-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #0C1A2E 0%, #112038 100%);
  border: 1px solid var(--card-border-gold);
  border-radius: 6px;
  padding: 26px 30px;
  margin-bottom: 40px;
}
.st-feature-banner .st-kicker { margin-bottom: 6px; }
.st-thumb {
  height: 128px;
  border-radius: 6px 6px 0 0;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.st-thumb svg { width: 82%; height: 82%; }
.st-insight-card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.st-insight-card:hover { border-color: var(--gold); }
.st-insight-body { padding: 18px 20px 20px; }
.st-insight-body h3 { margin: 0 0 8px; font-size: 17px; }
.st-insight-body p { color: var(--dim); font-size: 15px; margin: 0; }
.st-check { list-style: none; padding: 0; margin: 0 0 14px; }
.st-check li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--white);
  font-size: 15px;
  border-bottom: 1px solid rgba(30, 58, 95, 0.5);
}
.st-check li:last-child { border-bottom: none; }
.st-check li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 700;
}
.st-creator-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.st-creator-item { text-align: center; padding: 18px 12px; }
.st-creator-item .st-ico {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.st-creator-item .st-ico-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold-highlight);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}
.st-creator-item p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.55; }
@media (max-width: 900px) {
  .st-hero-grid { grid-template-columns: 1fr; }
  .st-chip { display: none; }
  .st-creator-strip { grid-template-columns: 1fr 1fr; }
  .st-feature-banner { grid-template-columns: 1fr; }
}

/* ============ Full-bleed hero stage ============ */
.st-stage {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  line-height: 0;
}
.st-stage-art {
  width: 100%;
  height: auto;
  display: block;
}
.st-stage-head {
  position: absolute;
  top: 2.5%;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 1.2;
}
.st-stage-kicker {
  font-family: 'Cinzel', serif;
  font-size: clamp(10px, 1.3vw, 14px);
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.st-stage-head h1 {
  font-size: clamp(26px, 4.2vw, 48px);
  color: var(--white);
  margin: 0;
}
.st-stage-head h1 em { font-style: normal; color: var(--gold-highlight); }
.st-cloud {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(9px, 1.35vw, 16px);
  line-height: 1.3;
  color: var(--gold-highlight);
  padding: 0 2%;
  transition: color 0.2s, transform 0.2s;
}
.st-cloud:hover { color: #F7D470; transform: scale(1.04); }
.st-stage-sub { padding: 34px 0 8px; }
@media (max-width: 700px) {
  .st-cloud { display: none; }
  .st-stage-kicker { display: none; }
  .st-stage-head { top: 4%; }
}

/* ============ Why are you here ============ */
.st-intent-head {
  font-family: 'Cinzel', serif;
  font-size: 30px;
  color: var(--white);
  margin: 0 0 6px;
}
.st-intent-head em { font-style: normal; color: var(--gold-highlight); }
.st-intent-sub { color: var(--dim); margin-bottom: 26px; }
.st-intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-intent-card {
  background: linear-gradient(160deg, #0C1A2E 0%, #0A1626 100%);
  border: 1px solid var(--navy-border);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 24px 26px;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.st-intent-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.st-intent-card .st-intent-q {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--gold-highlight);
  margin-bottom: 8px;
  line-height: 1.35;
}
.st-intent-card p { color: var(--dim); font-size: 15px; margin: 0 0 10px; }
.st-intent-card .st-intent-go {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.5px;
}
@media (max-width: 820px) {
  .st-intent-grid { grid-template-columns: 1fr; }
}

/* ============ Gazette (broadsheet) ============ */
.gz-masthead {
  border-bottom: 2px solid var(--gold);
  padding: 26px 0 0;
  text-align: center;
}
.gz-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--navy-border);
  padding-bottom: 9px;
  text-transform: uppercase;
}
.gz-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700;
  color: var(--gold-highlight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin: 18px 0 6px;
}
.gz-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.gz-edition-bar {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 7px 0;
  border-top: 1px solid var(--navy-border);
}
.gz-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.gz-rule::before, .gz-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--navy-border);
}
.gz-rule span {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}
.gz-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: var(--navy-border);
}
.gz-cell { background: var(--navy); padding: 24px; position: relative; }
.gz-hero-corner {
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent rgba(200, 150, 12, 0.35) transparent transparent;
}
.gz-cat {
  display: inline-block;
  background: var(--gold);
  border-radius: 3px;
  padding: 4px 12px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gz-cat-outline {
  background: rgba(200, 150, 12, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 400;
}
.gz-headline {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--gold-highlight);
  line-height: 1.3;
  margin: 0 0 12px;
  display: block;
}
.gz-headline-sm { font-size: 18px; }
.gz-deck { font-size: 16px; color: var(--dim); line-height: 1.65; margin-bottom: 14px; }
.gz-byline {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--navy-border);
  padding-top: 12px;
  margin-bottom: 14px;
}
.gz-col { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--navy-border); }
.gz-briefs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--navy-border);
  margin-top: 1px;
}
.gz-brief-col { background: var(--navy); padding: 20px 24px; }
.gz-brief-head {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--navy-border);
}
.gz-brief {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: rgba(240, 184, 48, 0.85);
  line-height: 1.45;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.5);
}
.gz-brief:last-child { border-bottom: none; }
.gz-brief:hover { color: var(--gold-highlight); }
@media (max-width: 820px) {
  .gz-grid, .gz-briefs { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.st-footer {
  border-top: 1px solid var(--navy-border);
  margin-top: 56px;
  padding: 32px 0 40px;
}
.st-footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.st-footer-links a { font-size: 13px; color: var(--muted); }
.st-footer-links a:hover { color: var(--gold); }
.st-footer-legal {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.st-footer-legal .st-age {
  display: inline-block;
  border: 1px solid var(--muted);
  border-radius: 50%;
  width: 28px; height: 28px;
  line-height: 26px;
  text-align: center;
  font-size: 10px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .st-grid-3, .st-grid-2 { grid-template-columns: 1fr; }
  .st-hero h1 { font-size: 38px; }
  .st-header-inner { justify-content: center; text-align: center; }
}

/* ============ Mobile nav (hamburger, CSS-only) ============ */
.st-nav-toggle, .st-nav-burger { display: none; }

@media (max-width: 820px) {
  .st-header { padding: 12px 0; }
  .st-header-inner { justify-content: space-between; text-align: left; }
  .st-nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .st-nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .st-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }
  .st-nav a {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--navy-border);
  }
  .st-nav a.st-cta {
    margin: 16px 0 6px;
    text-align: center;
    border-bottom: none;
    padding: 13px 22px;
  }
  .st-nav-toggle:checked ~ .st-nav { display: flex; }
  .st-nav-toggle:checked + .st-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .st-nav-toggle:checked + .st-nav-burger span:nth-child(2) { opacity: 0; }
  .st-nav-toggle:checked + .st-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
