/* ── Single Game Template ── */
/* netent.net game pages - polished card-based layout */

:root {
    --sg-accent: #2d8f4e;
    --sg-accent-hover: #247a42;
    --sg-accent-light: #f0fdf4;
    --sg-heading: #0f1d35;
    --sg-body: #3d4e71;
    --sg-muted: #6b7a99;
    --sg-border: #e5e7eb;
    --sg-card-shadow: 0 8px 40px rgba(32, 35, 43, .06);
    --sg-card-radius: 16px;
    --sg-radius-sm: 10px;
    --sg-radius-pill: 9999px;
}

.sg-page { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px 90px; color: var(--sg-body); }

/* Breadcrumbs */
.sg-breadcrumbs { font-size: 13px; color: var(--sg-muted); padding: 14px 0; }
.sg-breadcrumbs a { color: var(--sg-accent); text-decoration: none; }
.sg-breadcrumbs a:hover { text-decoration: underline; }
.sg-breadcrumbs span { color: var(--sg-heading); font-weight: 500; }

/* ── HERO: Image + Stats Card ── */
.sg-hero-grid { display: grid; grid-template-columns: 400px 1fr; gap: 24px; margin-bottom: 28px; }
.sg-hero-image { border-radius: var(--sg-card-radius); overflow: hidden; background: #111827; aspect-ratio: 3/2; }
.sg-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-hero-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; color: #475569; background: #111827; }

.sg-hero-info { background: #fff; border-radius: var(--sg-card-radius); box-shadow: var(--sg-card-shadow); overflow: hidden; display: flex; flex-direction: column; }
.sg-hero-info-top { padding: 24px 24px 16px; }
.sg-title { font-size: 30px; font-weight: 700; margin: 0 0 2px; color: var(--sg-heading); letter-spacing: -.3px; }
.sg-provider-link { color: var(--sg-accent); font-size: 14px; text-decoration: none; font-weight: 600; display: inline-block; margin-bottom: 12px; }
.sg-provider-link:hover { text-decoration: underline; }

/* Badges */
.sg-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sg-badge { background: var(--sg-accent-light); color: var(--sg-accent); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--sg-radius-pill); letter-spacing: .3px; text-transform: uppercase; }

/* Info grid inside hero card */
.sg-info-grid { border-top: 1px solid var(--sg-border); flex: 1; }
.sg-info-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 13px 24px; border-bottom: 1px solid var(--sg-border); }
.sg-info-item:last-child { border-bottom: none; }
.sg-info-icon { width: 16px; height: 16px; color: var(--sg-muted); flex-shrink: 0; }
.sg-info-label { font-size: 13px; color: var(--sg-muted); font-weight: 500; }
.sg-info-val { font-size: 14px; font-weight: 700; color: var(--sg-heading); text-align: right; }
.sg-info-val a { color: var(--sg-accent); text-decoration: none; }
.sg-info-val a:hover { text-decoration: underline; }

/* Hero CTA */
.sg-hero-cta { display: block; text-align: center; background: var(--sg-accent); color: #fff; font-size: 15px; font-weight: 700; padding: 14px; text-decoration: none; transition: background .15s; }
.sg-hero-cta:hover { background: var(--sg-accent-hover); color: #fff; text-decoration: none; }

/* Blur */
.sg-page:not(.sg-unblur) .sg-hero-image img,
.sg-page:not(.sg-unblur) .sg-ss-grid img { filter: blur(8px); }

/* ── DEMO ── */
.sg-demo-section { margin-bottom: 28px; display: none; }
.sg-demo-section.sg-demo-visible { display: block; }
.sg-demo-section h2 { font-size: 22px; font-weight: 600; color: var(--sg-heading); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--sg-accent); }
.sg-demo-wrap { position: relative; border-radius: var(--sg-radius-sm); overflow: hidden; background: #111827; }
.sg-demo-wrap iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.sg-demo-placeholder { position: relative; width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.sg-demo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.5); }
.sg-demo-play { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; transition: transform .2s; }
.sg-demo-play:hover { transform: scale(1.1); }
.sg-demo-play span { color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.sg-demo-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(10,10,30,.95); z-index: 10; text-align: center; padding: 24px; }
.sg-demo-gate.hidden { display: none; }
.sg-demo-gate h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.sg-demo-gate p { color: #94a3b8; font-size: 14px; margin: 0 0 20px; max-width: 400px; line-height: 1.6; }
.sg-age-badge { font-size: 44px; font-weight: 800; color: #ef4444; border: 3px solid #ef4444; border-radius: 50%; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.sg-demo-confirm { background: var(--sg-accent); color: #fff; border: none; padding: 12px 36px; font-size: 15px; font-weight: 700; border-radius: var(--sg-radius-pill); cursor: pointer; transition: background .15s; }
.sg-demo-confirm:hover { background: var(--sg-accent-hover); }
.sg-demo-decline { background: none; border: 1px solid #475569; color: #94a3b8; padding: 8px 24px; font-size: 13px; border-radius: var(--sg-radius-pill); cursor: pointer; margin-top: 10px; }
.sg-demo-note { text-align: center; color: var(--sg-muted); font-size: 12px; margin-top: 6px; }

/* ── TWO-COLUMN LAYOUT ── */
.sg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }

/* ── SIDEBAR ── */
.sg-sidebar { position: sticky; top: 80px; }
.sg-sidebar-box { background: #fff; border-radius: var(--sg-card-radius); box-shadow: var(--sg-card-shadow); padding: 20px; margin-bottom: 20px; }
.sg-sidebar-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: var(--sg-heading); text-align: center; padding-bottom: 12px; border-bottom: 3px solid var(--sg-accent); }

/* Casino cards */
.sg-casino-card { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.sg-casino-card:last-child { border-bottom: none; padding-bottom: 0; }
.sg-casino-logo { width: 64px; height: 64px; border-radius: var(--sg-radius-sm); flex-shrink: 0; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sg-casino-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sg-casino-name { font-size: 15px; color: var(--sg-heading); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-casino-btn { display: block; text-align: center; background: var(--sg-accent); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: var(--sg-radius-pill); text-decoration: none; transition: background .15s; }
.sg-casino-btn:hover { background: var(--sg-accent-hover); color: #fff; text-decoration: none; }
.sg-casino-review { text-align: center; font-size: 12px; color: var(--sg-accent); text-decoration: none; font-weight: 500; }
.sg-casino-review:hover { text-decoration: underline; }

/* Sidebar info table */
.sg-sidebar-table { width: 100%; border-collapse: collapse; border: none; }
.sg-sidebar-table td { padding: 9px 0; font-size: 13px; border: none; border-bottom: 1px solid #f1f5f9; }
.sg-sidebar-table td:first-child { color: var(--sg-muted); font-weight: 500; }
.sg-sidebar-table td:last-child { color: var(--sg-heading); font-weight: 600; text-align: right; }
.sg-sidebar-table a { color: var(--sg-accent); text-decoration: none; }
.sg-sidebar-table tr:last-child td { border-bottom: none; }
.sg-sidebar-table tr { border: none; }

/* ── MAIN CONTENT ── */
.sg-main { min-width: 0; }
.sg-content { line-height: 1.75; margin-bottom: 28px; font-size: 16px; }
.sg-content h2 { font-size: 24px; font-weight: 600; color: var(--sg-heading); margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--sg-accent); }
.sg-content h3 { font-size: 18px; font-weight: 600; color: var(--sg-heading); margin: 24px 0 10px; }
.sg-content p { margin-bottom: 16px; }
.sg-content ul, .sg-content ol { margin-bottom: 16px; padding-left: 24px; }
.sg-content li { margin-bottom: 8px; }
.sg-content strong { color: var(--sg-heading); }

/* ── INLINE CTA ── */
.sg-inline-cta { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--sg-card-radius); box-shadow: var(--sg-card-shadow); padding: 18px 22px; margin-bottom: 28px; }
.sg-inline-cta img { width: 56px; height: 56px; border-radius: var(--sg-radius-sm); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sg-inline-cta-text { flex: 1; }
.sg-inline-cta-text strong { display: block; font-size: 16px; color: var(--sg-heading); }
.sg-inline-cta-text span { font-size: 13px; color: var(--sg-muted); }
.sg-inline-cta-btn { background: var(--sg-accent); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: var(--sg-radius-pill); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background .15s; }
.sg-inline-cta-btn:hover { background: var(--sg-accent-hover); color: #fff; text-decoration: none; }

/* ── SCREENSHOTS ── */
.sg-screenshots { margin-bottom: 28px; }
.sg-screenshots h2 { font-size: 24px; font-weight: 600; color: var(--sg-heading); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--sg-accent); }
.sg-ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sg-ss-grid img { width: 100%; border-radius: var(--sg-radius-sm); cursor: pointer; transition: transform .2s, box-shadow .2s; aspect-ratio: 16/9; object-fit: cover; }
.sg-ss-grid img:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

/* ── FAQs ── */
.sg-faqs { margin-bottom: 28px; }
.sg-faqs h2 { font-size: 24px; font-weight: 600; color: var(--sg-heading); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--sg-accent); }
.sg-faq-item { border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); margin-bottom: 8px; overflow: hidden; transition: box-shadow .2s; }
.sg-faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.sg-faq-q { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 18px; background: #fff; border: none; cursor: pointer; font-size: 15px; font-weight: 600; color: #1e293b !important; text-align: left; gap: 12px; transition: background .15s; }
.sg-faq-q span { color: #1e293b !important; }
.sg-faq-q:focus, .sg-faq-q:active, .sg-faq-q:focus-visible { background: #fff !important; color: #1e293b !important; outline: none !important; box-shadow: none !important; }
.sg-faq-q:focus span, .sg-faq-q:active span { color: #1e293b !important; }
.single-game .faq-question:focus, .single-game .faq-question:active, .single-game .faq-question:focus-visible { background: #fff !important; color: #1e293b !important; outline: none !important; box-shadow: none !important; }
.single-game button:focus, .single-game button:active { color: #1e293b !important; }
.sg-faq-q:hover { background: #f8fafc; color: var(--sg-heading); }
.sg-faq-q svg { flex-shrink: 0; transition: transform .25s; color: var(--sg-muted); }
.sg-faq-item.open .sg-faq-q svg { transform: rotate(180deg); }
.sg-faq-a { display: none; padding: 0 18px 16px; color: var(--sg-body); line-height: 1.65; font-size: 14px; }
.sg-faq-item.open .sg-faq-a { display: block; }

/* Override wp-faq-schema plugin styles */
.single-game .faq-schema-wrap { border: none !important; box-shadow: none !important; }
.single-game .faq-schema-wrap .faq-question { background: #fff !important; color: #1e293b !important; border: 1px solid var(--sg-border) !important; border-radius: var(--sg-radius-sm) !important; margin-bottom: 8px !important; padding: 16px 18px !important; font-weight: 600 !important; }
.single-game .faq-schema-wrap .faq-question:hover { background: #f8fafc !important; }
.single-game .faq-schema-wrap .faq-question.active,
.single-game .faq-schema-wrap .faq-question[aria-expanded="true"] { background: #fff !important; color: #1e293b !important; }
.single-game .faq-schema-wrap .faq-question span,
.single-game .faq-schema-wrap .faq-question p { color: #1e293b !important; }
.single-game .faq-schema-wrap .faq-answer { background: #fff !important; color: var(--sg-body) !important; border: 1px solid var(--sg-border) !important; border-top: none !important; border-radius: 0 0 var(--sg-radius-sm) var(--sg-radius-sm) !important; padding: 16px 18px !important; margin-top: -9px !important; margin-bottom: 8px !important; }
.single-game .faq-schema-wrap .faq-answer p { color: var(--sg-body) !important; }

/* ── STICKY CTA ── */
.sg-sticky-cta { position: fixed; bottom: -80px; left: 0; right: 0; z-index: 9999; background: #111827; border-top: 1px solid #1f2937; transition: bottom .35s cubic-bezier(.4,0,.2,1); box-shadow: 0 -8px 32px rgba(0,0,0,.4); }
.sg-sticky-cta.visible { bottom: 0; }
.sg-sticky-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.sg-sticky-logo { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; }
.sg-sticky-text { color: #94a3b8; font-size: 14px; flex: 1; }
.sg-sticky-text strong { color: #fff; }
.sg-sticky-btn { background: var(--sg-accent); color: #fff; font-size: 14px; font-weight: 700; padding: 11px 28px; border-radius: var(--sg-radius-pill); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background .15s; }
.sg-sticky-btn:hover { background: var(--sg-accent-hover); color: #fff; text-decoration: none; }

/* ── LIGHTBOX ── */
.wm-lb-overlay { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; flex-direction: column; backdrop-filter: blur(4px); }
.wm-lb-overlay.active { display: flex; }
.wm-lb-img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 8px 48px rgba(0,0,0,.5); }
.wm-lb-close { position: absolute; top: 16px; right: 22px; color: #fff; font-size: 36px; cursor: pointer; background: none; border: none; z-index: 10; opacity: .7; transition: opacity .15s; }
.wm-lb-close:hover { opacity: 1; }
.wm-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 44px; cursor: pointer; background: rgba(0,0,0,.5); border: none; padding: 6px 16px; border-radius: 8px; z-index: 10; opacity: .6; transition: opacity .15s; }
.wm-lb-nav:hover { opacity: 1; }
.wm-lb-prev { left: 16px; }
.wm-lb-next { right: 16px; }
.wm-lb-caption { color: #cbd5e1; font-size: 14px; margin-top: 12px; }
.wm-lb-counter { color: #64748b; font-size: 13px; margin-top: 4px; }

/* ── NO CONTENT LAYOUT ── */
.sg-no-content .sg-layout { grid-template-columns: 1fr; }
.sg-no-content .sg-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; order: 1; }
.sg-no-content .sg-sidebar-box { margin-bottom: 0; }
.sg-no-content .sg-main { order: 2; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .sg-hero-grid { grid-template-columns: 1fr; }
    .sg-hero-image { aspect-ratio: 3/2; max-width: 400px; }
    .sg-layout { grid-template-columns: 1fr; }
    .sg-sidebar { position: static; order: -1; }
}
@media (max-width: 600px) {
    .sg-title { font-size: 24px; }
    .sg-ss-grid { grid-template-columns: repeat(2, 1fr); }
    .sg-inline-cta { flex-direction: column; text-align: center; }
    .sg-inline-cta-btn { width: 100%; text-align: center; }
    .sg-sticky-text { font-size: 12px; }
    .sg-sticky-btn { padding: 9px 18px; font-size: 13px; }
}

/* ── HIDE GP/WMC DEFAULTS ── */
.single-game .entry-header,
.single-game .entry-meta,
.single-game .cat-links,
.single-game .post-image,
.single-game .wmc-hero,
.single-game .wmc-breadcrumbs-bar,
.single-game .wmc-toc-bar,
.single-game .wmc-hero-disclosure,
.single-game .apb-byline,
.single-game .apb-bio,
.single-game .author-profile-box,
.single-game .pf-content,
.single-game .post-navigation { display: none !important; }
