/* ──────────────────────────────────────────────────────────────────
   Base Styles – Reset, Container, Layout, Section, Prose, Pills
   Matches approved mockup-slot-page.html
   ────────────────────────────────────────────────────────────────── */

/* ── Global Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--sn-font);
    background: var(--sn-page-bg);
    color: var(--sn-text-body);
    line-height: var(--sn-line-height);
    font-size: var(--sn-font-size);
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* AI-generated content tables — wrapped in .sn-table-wrap (see sn_wrap_content_tables).
   Full-width on desktop, horizontal scroll on mobile, professional styling. */
.sn-table-wrap {
    margin: 22px 0 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    background: var(--sn-card-bg);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sn-casino-content table,
.sn-prose table {
    width: 100%;
    min-width: 560px;               /* scroll inside the wrap on narrow screens */
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

/* Override generic .sn-prose table rules from _page.css (loaded later):
   kill the 24px table margin that creates empty space inside the wrapper,
   and drop vertical grid borders for a cleaner row-based look. */
.sn-table-wrap table {
    margin: 0 !important;
}
.sn-table-wrap table th,
.sn-table-wrap table td {
    border-left: 0 !important;
    border-right: 0 !important;
}

.sn-casino-content table thead th,
.sn-prose table thead th {
    background: rgba(91, 108, 255, 0.05);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sn-text-secondary);
    padding: 13px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--sn-border);
}

.sn-casino-content table td,
.sn-prose table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--sn-border-light, #eef0f4);
    text-align: left;
    vertical-align: top;
    color: var(--sn-text-secondary);
}

.sn-casino-content table tbody tr:last-child td,
.sn-prose table tbody tr:last-child td {
    border-bottom: 0;
}

/* First column = slot name (row label) */
.sn-casino-content table tbody td:first-child,
.sn-prose table tbody td:first-child {
    font-weight: 700;
    color: var(--sn-text-primary);
    white-space: nowrap;
}

/* Zebra + hover */
.sn-casino-content table tbody tr:nth-child(even),
.sn-prose table tbody tr:nth-child(even) {
    background: rgba(91, 108, 255, 0.018);
}
.sn-casino-content table tbody tr:hover,
.sn-prose table tbody tr:hover {
    background: rgba(91, 108, 255, 0.06);
}

/* Highlight the reviewed slot (always the first data row per the prompt) */
.sn-prose table tbody tr:first-child {
    background: rgba(91, 108, 255, 0.045);
}
.sn-prose table tbody tr:first-child td:first-child {
    box-shadow: inset 3px 0 0 var(--sn-primary);
}

[data-theme="dark"] .sn-table-wrap {
    background: var(--sn-card-bg);
    border-color: var(--sn-border);
}
[data-theme="dark"] .sn-casino-content table thead th,
[data-theme="dark"] .sn-prose table thead th {
    background: rgba(91, 108, 255, 0.12);
}

@media (max-width: 480px) {
    .sn-casino-content table,
    .sn-prose table { font-size: 0.875rem; }
    .sn-casino-content table thead th,
    .sn-prose table thead th,
    .sn-casino-content table td,
    .sn-prose table td { padding: 11px 13px; }
}

/* AI-generated name lists (Similar Slots, Where to Play) → chip-card grid */
.sn-slot-content .sn-prose ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 28px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
}

.sn-slot-content .sn-prose ul li {
    margin: 0;
    border: 1px solid var(--sn-border);
    border-radius: 12px;
    background: var(--sn-card-bg);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: var(--sn-text-primary);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sn-slot-content .sn-prose ul li::marker { content: ""; }

/* Linked chip — the anchor fills the whole card, so the entire chip is clickable */
.sn-slot-content .sn-prose ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
}
.sn-slot-content .sn-prose ul li a::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sn-primary);
}

/* Plain text chip (no matching page on the site) — muted dot, not interactive */
.sn-slot-content .sn-prose ul li:not(:has(a)) {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}
.sn-slot-content .sn-prose ul li:not(:has(a))::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sn-text-muted);
}

/* Hover only on clickable chips */
.sn-slot-content .sn-prose ul li:has(a):hover {
    border-color: var(--sn-primary);
    box-shadow: 0 6px 16px rgba(91, 108, 255, 0.12);
    transform: translateY(-1px);
}
.sn-slot-content .sn-prose ul li:has(a):hover a { color: var(--sn-primary); }

@media (max-width: 480px) {
    .sn-slot-content .sn-prose ul {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .sn-slot-content .sn-prose ul li { font-size: 0.875rem; }
    .sn-slot-content .sn-prose ul li a,
    .sn-slot-content .sn-prose ul li:not(:has(a)) { padding: 10px 13px; }
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Container ── */
.sn-container,
.sn-slot-container {
    max-width: var(--sn-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Main content column ── */
.sn-slot-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Section Spacing ── */
.sn-section {
    padding: 0 0 28px;
}

/* ── Section Titles ── */
.sn-section-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--sn-text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

/* ── Gap Section (top spacing utility) ── */
.sn-gap-section {
    padding-top: 36px;
}

/* ── Prose (rich text content) ── */
.sn-prose {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--sn-text-secondary);
}

.sn-prose h2 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--sn-text-primary);
    margin: 24px 0 12px;
    letter-spacing: -0.02em;
}

.sn-prose h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sn-text-primary);
    margin: 20px 0 8px;
    letter-spacing: -0.01em;
}

.sn-prose h3:first-child {
    margin-top: 0;
}

.sn-prose h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sn-text-primary);
    margin: 1.25em 0 0.5em;
}

.sn-prose p {
    margin: 0 0 6px;
}

.sn-prose ul,
.sn-prose ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.sn-prose li {
    margin-bottom: 0.35em;
}

.sn-prose li::marker {
    color: var(--sn-primary);
}

.sn-prose a {
    color: var(--sn-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sn-prose a:hover {
    color: var(--sn-primary-dark);
}

.sn-prose strong {
    font-weight: 600;
    color: var(--sn-text-primary);
}

.sn-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sn-radius);
    margin: 1em 0;
}

/* (slot/casino content tables are fully styled by the responsive block near the top of this file) */

/* ── Pill Tags ── */
.sn-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--sn-border-light);
    color: var(--sn-text-secondary);
    border: 1px solid var(--sn-border);
    line-height: 1.4;
    white-space: nowrap;
}

.sn-pill--primary {
    background: rgba(91, 108, 255, 0.1);
    color: var(--sn-primary);
    border-color: rgba(91, 108, 255, 0.2);
}

.sn-pill--accent {
    background: rgba(236, 72, 153, 0.1);
    color: var(--sn-accent);
    border-color: rgba(236, 72, 153, 0.2);
}

/* ── Visually Hidden (a11y) ── */
.sn-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Utility spacing ── */
.sn-mt-28 {
    margin-top: 28px;
}

.sn-mb-8 {
    margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .sn-container,
    .sn-slot-container {
        padding: 0 16px;
    }

    .sn-section-title {
        font-size: 1.1875rem;
    }
}
