/* ============================================================
   JackpotJill.co.uk — Style
   Dark theme, emerald-to-plum gradient, gold accents
   ============================================================ */

/* ---------- Base reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #f4f2ee;
    background: #13121a;
    overflow-x: hidden;
}

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

a {
    color: #d4af37;
    text-decoration: none;
    transition: color .2s;
}

a:hover,
a:focus {
    color: #f0c857;
    text-decoration: underline;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 49, 30, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: inline-block;
    flex-shrink: 0;
    line-height: 0;
}

.logo img {
    width: 202px;
    height: 81px;
    max-width: 100%;
}

.main-nav {
    /* Deprecated: in-body TOC (<details>) replaces header navigation on single-page layout */
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s, box-shadow .2s;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f0c857 100%);
    color: #13121a;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #13121a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background: transparent;
    color: #f4f2ee;
    border-color: #d4af37;
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(212, 175, 55, 0.15);
    color: #f0c857;
    text-decoration: none;
}

.header-cta {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.header-cta .btn {
    padding: 10px 18px;
    font-size: 12px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 70px 0 60px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.15), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(156, 77, 189, 0.20), transparent 50%),
        linear-gradient(135deg, #0e311e 0%, #1e1724 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.18;
    margin: 0 0 18px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -.5px;
}

.hero-byline {
    font-size: .9rem;
    color: rgba(244, 242, 238, 0.65);
    margin: 0 0 20px;
    letter-spacing: .3px;
}

.hero-byline a {
    color: rgba(244, 242, 238, 0.85);
}

.hero .hero-sub {
    font-size: clamp(1rem, 1.7vw, 1.1rem);
    color: rgba(244, 242, 238, 0.88);
    max-width: 650px;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-media img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: block;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero h1, .hero .hero-sub, .hero-byline {
        text-align: center;
    }
    .hero .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------- Stats counter ---------- */
.stats {
    background: linear-gradient(180deg, #1e1724 0%, #13121a 100%);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #d4af37;
    line-height: 1.1;
    margin: 0 0 6px;
}

.stat-item .stat-label {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(244, 242, 238, 0.75);
}

/* ---------- Typography ---------- */
h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #ffffff;
    margin: 0 0 24px;
    font-weight: 700;
    letter-spacing: -.3px;
}

h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: #d4af37;
    margin: 32px 0 14px;
    font-weight: 700;
}

p {
    margin: 0 0 16px;
    color: rgba(244, 242, 238, 0.9);
}

ul,
ol {
    margin: 0 0 20px;
    padding-left: 22px;
    color: rgba(244, 242, 238, 0.9);
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ---------- TOC ---------- */
.toc-wrapper {
    background: rgba(30, 23, 36, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 0;
    margin: 32px 0;
}

.toc-wrapper > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 22px;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4af37;
    user-select: none;
}

.toc-wrapper > summary::-webkit-details-marker {
    display: none;
}

.toc-wrapper > summary::after {
    content: "▸";
    float: right;
    transition: transform .2s;
}

.toc-wrapper[open] > summary::after {
    transform: rotate(90deg);
}

.toc {
    margin: 0;
    padding: 0 22px 18px 44px;
    columns: 2;
    column-gap: 30px;
}

.toc li {
    break-inside: avoid;
}

.toc a {
    color: rgba(244, 242, 238, 0.85);
    font-size: .9rem;
}

.toc a:hover {
    color: #d4af37;
}

@media (max-width: 640px) {
    .toc {
        columns: 1;
    }
}

/* ---------- Content blocks ---------- */
.content-block {
    background: linear-gradient(180deg, rgba(30, 23, 36, 0.35) 0%, rgba(19, 18, 26, 0) 100%);
}

.content-block:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(14, 49, 30, 0.20) 0%, rgba(19, 18, 26, 0) 100%);
}

/* ---------- Pros/Cons ---------- */
.proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 28px 0;
}

.proscons .card {
    background: rgba(30, 23, 36, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 22px 26px;
}

.proscons .card.pros {
    border-left: 4px solid #3fc07a;
}

.proscons .card.cons {
    border-left: 4px solid #d85055;
}

.proscons h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.15rem;
}

.proscons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proscons li {
    padding: 8px 0 8px 26px;
    position: relative;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.12);
}

.proscons li:last-child {
    border-bottom: none;
}

.proscons .pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3fc07a;
    font-weight: 700;
}

.proscons .cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #d85055;
    font-weight: 700;
}

@media (max-width: 680px) {
    .proscons {
        grid-template-columns: 1fr;
    }
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    margin: 20px 0 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

th,
td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

th {
    background: rgba(14, 49, 30, 0.6);
    color: #d4af37;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .6px;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* ---------- Media figures ---------- */
.media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
}

.media-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.media-row img {
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    width: 100%;
    height: auto;
    max-width: 420px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .media-row {
        grid-template-columns: 1fr;
    }
}

.media-center {
    text-align: center;
    margin: 40px 0;
}

.media-center img {
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    max-width: 100%;
    height: auto;
}

/* ---------- CTA blocks ---------- */
.cta-block {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #0e311e 0%, #1e1724 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    margin: 40px 0;
}

.cta-block h3 {
    color: #d4af37;
    margin-top: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
    margin: 20px 0;
}

.faq-item {
    background: rgba(30, 23, 36, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 700;
    color: #f4f2ee;
    user-select: none;
    position: relative;
    padding-right: 48px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #d4af37;
    transition: transform .2s;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item .faq-body {
    padding: 0 22px 18px;
    color: rgba(244, 242, 238, 0.85);
}

/* ---------- Responsible gambling block ---------- */
.responsible {
    background: rgba(216, 80, 85, 0.08);
    border: 1px solid rgba(216, 80, 85, 0.35);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 40px 0;
    font-size: .92rem;
}

.responsible strong {
    color: #d85055;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
}

.responsible a {
    color: #f0c857;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0a0910;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px 0 30px;
    margin-top: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.footer-logo img {
    width: 150px;
    height: 38px;
}

.footer-disclaimer {
    font-size: .85rem;
    color: rgba(244, 242, 238, 0.6);
    margin: 14px 0 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.footer-links h3 {
    color: #d4af37;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 6px 0;
}

.footer-links a {
    color: rgba(244, 242, 238, 0.8);
    font-size: .9rem;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: .85rem;
    color: rgba(244, 242, 238, 0.55);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 2px solid #d85055;
    border-radius: 50%;
    color: #d85055;
    font-weight: 800;
    font-size: .85rem;
    width: 38px;
    height: 38px;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ---------- Parameter table (quick-facts) ---------- */
.params-wrap {
    margin: -20px 0 40px;
}

.params-wrap table {
    background: rgba(14, 49, 30, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.params-wrap th {
    width: 28%;
    font-size: .78rem;
    color: #d4af37;
}

.params-wrap td {
    color: rgba(244, 242, 238, 0.92);
}

/* ---------- Author bio ---------- */
.author-bio {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    align-items: center;
    background: rgba(30, 23, 36, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-left: 4px solid #d4af37;
    border-radius: 10px;
    padding: 22px 26px;
    margin: 30px 0;
}

.author-bio img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.45);
}

.author-bio .author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.author-bio .author-role {
    font-size: .9rem;
    color: #d4af37;
    margin: 0 0 10px;
    letter-spacing: .3px;
}

.author-bio p {
    margin: 0;
    font-size: .95rem;
    color: rgba(244, 242, 238, 0.85);
}

@media (max-width: 560px) {
    .author-bio {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .author-bio img {
        margin: 0 auto;
    }
}

/* ---------- Game cards gallery ---------- */
.game-gallery-title {
    font-size: 1.15rem;
    color: #d4af37;
    margin: 30px 0 14px;
    letter-spacing: .3px;
}

.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 16px 0 28px;
}

.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 250 / 165;
    background: rgba(30, 23, 36, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin: 0;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}

.game-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 10px;
    font-size: .78rem;
    color: #ffffff;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    letter-spacing: .3px;
    margin: 0;
    max-width: none;
    text-align: left;
    font-style: normal;
}

/* ---------- Callout (Points to Keep in Mind) ---------- */
.callout {
    background: rgba(216, 80, 85, 0.06);
    border-left: 4px solid #d85055;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 22px 0;
}

.callout strong {
    display: block;
    color: #d85055;
    font-size: .85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.callout ul {
    margin: 0;
    padding-left: 20px;
}

/* ---------- Figure + caption ---------- */
figure {
    margin: 20px 0;
}

figure img {
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
    max-width: 640px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

figcaption {
    margin-top: 10px;
    font-size: .85rem;
    color: rgba(244, 242, 238, 0.6);
    text-align: center;
    font-style: italic;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Footer logo size (raster) ---------- */
.footer-logo img {
    width: 242px;
    height: 81px;
    max-width: 100%;
}

/* ---------- 404 ---------- */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-page .error-code {
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
    margin: 0 0 12px;
}

/* ---------- Utility ---------- */
.no-print {
    /* future */
}

/* ============================================================
   MOBILE ADAPTATIONS
   Consolidated breakpoints: 900 / 640 / 480
   ============================================================ */

/* Tablet-range: tighten paddings before full mobile layout */
@media (max-width: 900px) {
    section {
        padding: 44px 0;
    }
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 50px 0 44px;
    }
}

/* Mobile: layout switches ---------------------------------- */
@media (max-width: 640px) {
    /* Header: logo on top, CTA on bottom */
    .site-header .container {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo img {
        width: 160px;
        height: 64px;
    }

    .header-cta {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .header-cta .btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 9px 14px;
        font-size: 11px;
    }

    /* Hero: buttons stack full-width */
    .hero {
        padding: 36px 0 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 14px 16px;
    }

    .hero-media img {
        max-width: 320px;
    }

    /* Quick-facts table: th not forced to 28% */
    .params-wrap th,
    .params-wrap td {
        display: block;
        width: auto;
        padding: 10px 14px;
    }

    .params-wrap th {
        padding-bottom: 2px;
    }

    .params-wrap td {
        padding-top: 2px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    }

    .params-wrap tr:last-child td {
        border-bottom: none;
    }

    /* All tables: smaller cells, keep horizontal scroll */
    .table-wrap {
        margin: 16px 0 22px;
    }

    table {
        font-size: .85rem;
    }

    th, td {
        padding: 10px 10px;
    }

    /* Figures: full width, less padding */
    figure img {
        max-width: 100%;
        border-radius: 8px;
    }

    figcaption {
        font-size: .78rem;
    }

    /* CTA blocks: less padding */
    .cta-block {
        padding: 32px 18px;
    }

    .cta-block h3 {
        font-size: 1.15rem;
    }

    /* Callout: less padding */
    .callout {
        padding: 14px 16px;
    }

    /* Author bio: already stacks at 560px — reinforce */
    .author-bio {
        padding: 18px 18px;
    }

    /* FAQ: tighter padding */
    .faq-item summary {
        padding: 14px 44px 14px 16px;
        font-size: .95rem;
    }

    .faq-item .faq-body {
        padding: 0 16px 14px;
    }

    /* Footer: logo smaller on mobile */
    .footer-logo img {
        width: 200px;
        height: 67px;
    }

    /* Prevent wide elements overflowing */
    pre, code {
        word-break: break-word;
    }
}

/* Extra small screens (≤480px): final tightenings */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: 1.55rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .logo img {
        width: 140px;
        height: 56px;
    }

    .header-cta .btn {
        padding: 8px 10px;
        font-size: 10.5px;
        letter-spacing: .4px;
    }

    .hero-media img {
        max-width: 260px;
    }

    .game-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-bio img {
        width: 92px;
        height: 92px;
    }
}

@media print {
    .site-header, .site-footer, .cta-block { display: none; }
}

