/* ═══════════════════════════════════════════════════════════════
   FREE SPINS — single + archive
   Ported from the Claude Design canvas "Slottyhouse Free Spins Page".
   Loaded only on is_singular('free_spins') / the /free-spins/ archive.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page shell ───────────────────────────────────────────────── */
.sh-fs-page {
  max-width: 1152px;
  margin: 0 auto;
  padding: 80px 16px 48px; /* 80px top clears the 64px fixed navbar */
}

.sh-fs-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.sh-fs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  padding: 16px 0;
}
.sh-fs-breadcrumb a {
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s;
}
.sh-fs-breadcrumb a:hover { color: var(--primary); }

/* ── Hero ─────────────────────────────────────────────────────── */
.sh-fs-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 40px;
  margin-bottom: 8px;
}

.sh-fs-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  align-items: center;
}

.sh-fs-hero-copy { flex: 1; min-width: 0; }

.sh-fs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: hsla(152, 69%, 41%, 0.12);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sh-fs-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--fg);
  margin: 0 0 16px;
}

.sh-fs-hero-sub {
  color: var(--body-copy);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 0 24px;
}

.sh-fs-hero-cta {
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(230, 190, 80, 0.35);
}

/* Spins tile — the identity of these pages, so it holds the hero's right side
   instead of the Featured image (which is the card art on the archive). */
.sh-fs-hero-tile {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.sh-fs-tile {
  position: relative;
  width: 200px;
  height: 200px;
  background: linear-gradient(to top, hsla(152, 69%, 41%, 0.35), #161719 70%);
  border: 1px solid hsla(152, 69%, 41%, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.sh-fs-tile-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--primary);
}
/* A word ("Friday") or a 4-digit count would spill out of the fixed square. */
.sh-fs-tile-num--md { font-size: 3.25rem; }
.sh-fs-tile-num--sm { font-size: 2.5rem; }
.sh-fs-tile-num--xs { font-size: 1.75rem; word-break: break-word; }

.sh-fs-tile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 4px;
}

.sh-fs-hero--archive { padding-bottom: 24px; }

/* ── Sections ─────────────────────────────────────────────────── */
.sh-fs-section { margin-bottom: 32px; }

.sh-fs-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 0 0 8px;
}

.sh-fs-section-intro {
  color: var(--body-copy);
  font-size: 0.875rem;
  max-width: 48rem;
  margin: 0 0 24px;
}
.sh-fs-section-title + .sh-casino-grid,
.sh-fs-section-title + .sh-fs-read-grid,
.sh-fs-section-title + .sh-fs-faq-box { margin-top: 16px; }

/* ── Article body ─────────────────────────────────────────────── */
.sh-fs-article {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  color: var(--body-copy) !important;
}
.sh-fs-article h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg) !important;
  margin: 32px 0 12px;
}
.sh-fs-article h2:first-child { margin-top: 0; }
.sh-fs-article h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg) !important;
  margin: 24px 0 8px;
}
.sh-fs-article p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--body-copy) !important;
  margin: 0 0 16px;
}
.sh-fs-article ul,
.sh-fs-article ol {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-fg) !important;
  margin: 0 0 16px;
  padding-left: 24px;
}
.sh-fs-article ul { list-style: disc; }
.sh-fs-article ol { list-style: decimal; }
.sh-fs-article li { margin-bottom: 6px; color: var(--muted-fg) !important; }
.sh-fs-article strong { color: var(--fg) !important; }
.sh-fs-article a {
  color: var(--primary) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.sh-fs-article a:hover { border-bottom-color: var(--primary); }
/* Strip pasted inline colours from wp_editor content */
.sh-fs-article span,
.sh-fs-article div,
.sh-fs-article td,
.sh-fs-article th {
  color: inherit !important;
  background-color: transparent !important;
}
.sh-fs-article .sh-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.sh-fs-article table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.sh-fs-article table th,
.sh-fs-article table td {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  text-align: left;
}
.sh-fs-article table th {
  background: var(--secondary);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted-fg) !important;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.sh-fs-faq-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
}

/* ── Keep Reading / archive cards ─────────────────────────────── */
.sh-fs-read-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sh-fs-read-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sh-fs-read-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 24px hsla(152, 69%, 41%, 0.15);
}

.sh-fs-read-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(220, 15%, 6%);
}
.sh-fs-read-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* No card art yet — the hatched placeholder from the design canvas. */
.sh-fs-read-art--empty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 14px
  );
}

.sh-fs-read-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.sh-fs-read-body { padding: 16px; }

.sh-fs-read-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 0 0 6px;
}

.sh-fs-read-desc {
  color: var(--body-copy);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Pagination ───────────────────────────────────────────────── */
.sh-fs-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.sh-fs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  transition: all 0.2s;
}
.sh-fs-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.sh-fs-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sh-fs-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .sh-fs-hero-tile {
    width: 100%;
    justify-content: flex-start;
  }
  .sh-fs-hero-title { font-size: 2rem; }
}

@media (max-width: 640px) {
  .sh-fs-page { padding-top: 72px; }
  .sh-fs-hero { padding: 32px 0 24px; }
  .sh-fs-hero-title { font-size: 1.75rem; }
  .sh-fs-hero-cta { width: 100%; }
  .sh-fs-tile { width: 160px; height: 160px; }
  .sh-fs-tile-num { font-size: 3.5rem; }
}
