/* SeeFoodPlay BC — Green Elegant Theme */
@import url('https://fonts.googleapis.com/css2?family=Pridi:wght@400;500;600;700&family=Prompt:wght@400;500;600;700&display=swap');
@import url('casino.css');

:root {
    --bg: #0a120e;
    --bg-alt: #0f1a14;
    --card: #152019;
    --card-hover: #1a2820;
    --border: #1e3d2a;
    --text: #e8f5ee;
    --muted: #7da892;
    --accent: #3daa72;
    --accent-hover: #4dc489;
    --accent-gold: #c9a227;
    --accent-gold-hover: #dbb43a;
    --accent-dim: rgba(61, 170, 114, 0.12);
    --accent-gold-dim: rgba(201, 162, 39, 0.12);
    --gradient-hero: linear-gradient(135deg, #0a120e 0%, #152019 40%, #1a3d2a 100%);
    --gradient-btn: linear-gradient(135deg, #2d8659 0%, #3daa72 100%);
    --font-body: 'Prompt', 'Noto Sans Thai', 'Segoe UI', sans-serif;
    --font-display: 'Pridi', 'Prompt', serif;
    --radius: 10px;
    --max: 1280px;
    --content-max: 820px;
    --toc-width: 260px;
    --header: 68px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 20px);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight { color: var(--accent); }
.highlight-gold { color: var(--accent-gold); }

.badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(61, 170, 114, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header);
    background: rgba(10, 18, 14, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo:hover { opacity: 0.92; }

.logo__img {
    display: block;
    height: 58px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.logo__img--footer {
    height: 44px;
    max-width: 180px;
}

.logo__mark {
    width: 36px;
    height: 36px;
    background: var(--gradient-btn);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 8px rgba(61, 170, 114, 0.3);
}

.nav { display: flex; gap: 2px; flex-wrap: wrap; }

.nav__link {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text);
    background: var(--accent-dim);
}

.menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 2px 12px rgba(61, 170, 114, 0.25);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(61, 170, 114, 0.35);
    color: #fff;
}

.btn--gold {
    background: linear-gradient(135deg, #a8861f 0%, var(--accent-gold) 100%);
    color: #111;
}

.btn--gold:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: #111;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }

/* Hero */
.hero {
    position: relative;
    padding: 60px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(61, 170, 114, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-gold-dim);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero__lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat__label {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Layout with TOC */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--toc-width);
    gap: 32px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 20px 60px;
    align-items: start;
}

.layout--no-toc {
    grid-template-columns: 1fr;
    max-width: var(--content-max);
}

.layout__content { min-width: 0; }

/* Sections */
.section {
    padding: 48px 0;
}

.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    text-align: center;
    margin-bottom: 36px;
}

.section__title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--text);
}

.section__sub {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Game Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--casino {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .grid--casino { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .grid--casino { grid-template-columns: 1fr; }
}
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: rgba(61, 170, 114, 0.4);
    transform: translateY(-2px);
}

.card__img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(180deg, #1a2820 0%, #0f1a14 100%);
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.card__body { padding: 18px; }

.card__desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

.card__link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Features */
.feature {
    text-align: center;
    padding: 28px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature__title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature__desc {
    font-size: 0.88rem;
    color: var(--muted);
}

/* Article */
.article { max-width: var(--content-max); }

.article__header { margin-bottom: 32px; }

.article__meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.article__meta-sep { margin: 0 8px; }

.article__intro {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    padding: 16px 20px;
    background: var(--accent-dim);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article h1 {
    font-size: 1.85rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article h2 {
    font-size: 1.35rem;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.article h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--accent);
}

.article p {
    margin-bottom: 16px;
    color: var(--muted);
    line-height: 1.75;
}

.article-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.article-list li {
    position: relative;
    padding: 10px 0 10px 24px;
    color: var(--muted);
    border-bottom: 1px solid rgba(30, 61, 42, 0.5);
}

.article-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.6rem;
    top: 14px;
}

.article-callout {
    padding: 18px 20px;
    margin: 24px 0;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    background: var(--accent-dim);
}

.article-callout__title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.article-callout p { margin: 0; }

.article__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* TOC Sidebar */
.toc-sidebar {
    position: sticky;
    top: calc(var(--header) + 20px);
    align-self: start;
}

.toc-sidebar__panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.toc-sidebar__head {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(61, 170, 114, 0.08) 0%, transparent 100%);
}

.toc-sidebar__head .toc-sidebar__title {
    margin: 0 0 4px;
    padding: 0;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.toc-sidebar__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.toc-sidebar__head .toc-sidebar__desc {
    margin: 0;
}

.toc-sidebar__desc {
    font-size: 0.72rem;
    color: var(--muted);
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    max-height: calc(100vh - var(--header) - 100px);
    overflow-y: auto;
}

.toc__empty {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    padding: 16px 8px;
}

.toc__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    color: var(--text);
    transition: all 0.15s;
}

.toc__item:hover {
    background: var(--card-hover);
    border-color: var(--border);
    color: var(--text);
}

.toc__item.toc__item--active {
    background: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
}

.toc__item--h1 { font-weight: 600; }
.toc__item--h2 { padding-left: 18px; }

.toc__tag {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(61, 170, 114, 0.25);
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 24px;
    text-align: center;
}

.toc__num {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    opacity: 0.6;
}

.toc__text {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toc-sidebar__close,
.toc-toggle {
    display: none;
}

.toc-inline {
    display: none;
}

.toc-inline__panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.toc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.2s;
}

.toc-overlay.open {
    display: block;
    opacity: 1;
}

/* FAQ */
.faq {
    max-width: 100%;
    margin: 0;
}

#faq .section__head {
    text-align: left;
    margin-bottom: 24px;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--card);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.faq__question:hover { background: var(--card-hover); }

.faq__question[aria-expanded="true"] {
    background: var(--accent-dim);
    color: var(--accent);
}

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1rem;
    transition: transform 0.2s;
}

.faq__question[aria-expanded="true"] .faq__icon {
    transform: rotate(45deg);
    border-color: var(--accent);
    color: var(--accent);
}

.faq__answer {
    display: none;
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.faq__answer.open { display: block; }

/* Subpage hero */
.page-hero {
    padding: 48px 0 32px;
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--muted);
    max-width: 600px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--accent); }

/* Footer */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--accent-gold);
}

.footer__links {
    list-style: none;
}

.footer__links li { margin-bottom: 8px; }

.footer__links a {
    color: var(--muted);
    font-size: 0.88rem;
}

.footer__links a:hover { color: var(--accent); }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none;
    }

    .toc-inline {
        display: block;
        margin: 24px 0 32px;
    }

    .toc-inline__panel {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: none;
    }

    .toc-inline .toc-sidebar__head {
        padding: 10px 14px;
    }

    .toc-inline .toc {
        max-height: none;
        gap: 0;
        padding: 0;
    }

    .toc-inline .toc__item {
        border: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 12px 16px;
        background: transparent;
        box-shadow: none;
    }

    .toc-inline .toc__item:last-child {
        border-bottom: none;
    }

    .toc-inline .toc__item:hover {
        background: rgba(61, 170, 114, 0.06);
    }

    .toc-inline .toc__item.toc__item--active {
        background: rgba(61, 170, 114, 0.1);
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .toc-inline .toc__item--h2 {
        padding-left: 24px;
    }

    .toc-inline .toc__text {
        white-space: normal;
        line-height: 1.45;
    }
}

@media (max-width: 768px) {
    .menu-btn { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--border);
        padding: 12px;
    }

    .nav.open { display: flex; }

    .header .btn--sm { display: none; }

    .hero { padding: 40px 0 60px; }

    .hero__stats { gap: 16px; }
}
