/* Explore Joy Club — cohesive neon-club palette
   Inspired by teal/magenta neon (mascot) + red/cream chip (logo)
   ================================================================== */

:root {
    /* brand core */
    --ink-950: #0A0F1C;
    --ink-900: #0E1526;
    --ink-700: #18243A;
    --ink-500: #23324E;
    --cloud-000: #FFFFFF;
    --cloud-050: #F6F2EC;
    --cloud-100: #EEF1F6;
    --cloud-300: #D9E1EE;
    --neon-teal-500: #14F1E1;
    --neon-teal-600: #13D5C7;
    --neon-teal-700: #12B1A7;
    --magenta-500: #FF2DAE;
    --magenta-600: #E0249A;
    --magenta-700: #C01E84;
    --club-red-600: #E14545;
    --club-red-700: #C53A3A;
    --navy-700: #1B2A4B;
    --gold-500: #F6C945;
    --gold-600: #E2B833;
    --success-500: #20C997;
    --warning-500: #FFBF47;
    --danger-500: #FF6B6B;
    /* ui tokens */
    --bg: var(--ink-900);
    --surface: var(--ink-700);
    --text: var(--cloud-000);
    --muted: #A9B4C9;
    --brand: var(--neon-teal-500);
    --brand-500: var(--neon-teal-500);
    --brand-600: var(--neon-teal-600);
    --accent: var(--magenta-500);
    --accent-600: var(--magenta-600);
    --chip: var(--club-red-600);
    --cream: var(--cloud-050);
    --radius-xl: 1.25rem;
    --radius-lg: 1rem;
    --radius-md: .75rem;
    --shadow-1: 0 8px 20px rgba(0,0,0,.25);
    --shadow-2: 0 14px 32px rgba(0,0,0,.35);
}

/* Reset-ish */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: linear-gradient(180deg,var(--ink-950),var(--ink-900));
    color: var(--text);
    font: 16px/1.6 "Inter",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
    overflow-x: hidden; /* avoid page-wide horizontal bar */
}

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

a {
    color: var(--brand-500);
    text-decoration: none;
}

    a:hover {
        color: var(--brand-600);
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.rounded-xl {
    border-radius: var(--radius-xl);
}

.shadow-1 {
    box-shadow: var(--shadow-1);
}

.shadow-2 {
    box-shadow: var(--shadow-2);
}

.text-muted {
    color: var(--muted);
}

.p-2 {
    padding: .5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.py-5 {
    padding: 4rem 0;
}

/* CTA button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(90deg,var(--brand),var(--accent));
    color: #0a0a0a;
    font-weight: 800;
    letter-spacing: .4px;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    border: 0;
    box-shadow: 0 8px 18px rgba(20,241,225,.25), inset 0 0 0 2px rgba(255,255,255,.08);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

    .cta-button:hover {
        transform: translateY(-1px);
        filter: saturate(1.1);
        box-shadow: 0 10px 22px rgba(255,45,174,.25);
    }

    .cta-button:active {
        transform: translateY(0) scale(.98);
    }

/* Header — sticky neon nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,15,28,.72);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

    .site-header .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 72px;
    }

    .site-header .brand {
        display: flex;
        align-items: center;
        gap: .75rem;
        color: var(--text);
        font-weight: 800;
    }

        .site-header .brand img {
            height: 36px;
            width: auto;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
        }

    .site-header .site-name {
        display: none;
    }

@media (min-width:640px) {
    .site-header .site-name {
        display: inline-block;
        opacity: .9;
    }
}

.nav-links {
    display: none;
    gap: 1rem;
    align-items: center;
}

    .nav-links a {
        padding: .5rem .75rem;
        color: var(--cloud-000);
        font-weight: 600;
        opacity: .92;
        border-radius: 999px;
        transition: background .15s ease, color .15s ease;
    }

        .nav-links a:hover {
            background: rgba(255,255,255,.06);
        }

    .nav-links .nav-cta {
        box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
    }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    color: var(--cloud-000);
    background: rgba(255,255,255,.06);
}

@media (min-width:960px) {
    .nav-links {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}

/* Mobile drawer */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10,15,28,.85);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 96px 24px 24px;
    gap: 12px;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
}

    .mobile-menu.open {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu a {
        color: var(--cloud-000);
        font-weight: 700;
        font-size: 1.1rem;
        padding: 12px 16px;
        border-radius: 12px;
    }

        .mobile-menu a:hover {
            background: rgba(255,255,255,.06);
        }

    .mobile-menu .mobile-close {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 2rem;
    }

/* HERO (generic webpart) */
.webpart-hero {
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
}

    .webpart-hero .container {
        display: flex;
        align-items: center;
        min-height: clamp(320px, 48vh, 560px);
    }

    .webpart-hero .display-3, .banner-title {
        font-weight: 900;
    }

/* Banner Character (mascot) */
.webpart-banner-character {
    position: relative;
    overflow: hidden;
}

.banner-character-image {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    background: radial-gradient(120px 60px at 20% 10%, rgba(255,45,174,.35), transparent), radial-gradient(140px 80px at 90% 80%, rgba(20,241,225,.25), transparent);
    box-shadow: var(--shadow-2);
}

.banner-title {
    letter-spacing: .2px;
    margin-bottom: 12px;
}

/* Icon Features */
.webpart-icon-features .feature-item {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    min-height: 220px;
}

/* === Icon Features (new webpart) ============================== */
.webpart-icon-features {
    padding: 64px 0;
}

    .webpart-icon-features .icon-features-title {
        text-align: center;
        font-weight: 900;
        margin: 0 0 8px;
    }

    .webpart-icon-features .icon-features-desc {
        text-align: center;
        opacity: .9;
        margin: 0 0 28px;
    }

    /* list + cards (override inline basics) */
    .webpart-icon-features .icon-features-list {
        gap: 22px !important;
    }

    .webpart-icon-features .icon-feature {
        flex: 1 1 260px !important;
        min-width: 240px !important;
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: var(--radius-lg);
        padding: 20px !important;
        box-shadow: var(--shadow-1);
        transition: transform .15s ease, box-shadow .2s ease;
    }

        .webpart-icon-features .icon-feature:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-2);
        }

    /* make it work on light sections too */
    .webpart-icon-features[style*="#FFFFFF"] .icon-feature {
        background: #ffffff;
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: 0 2px 10px rgba(0,0,0,.04);
    }

    /* icon + text */
    .webpart-icon-features .icon-feature-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: rgba(255,255,255,.08);
        margin-bottom: 12px;
    }

    .webpart-icon-features[style*="#FFFFFF"] .icon-feature-icon {
        background: rgba(0,0,0,.06);
    }

    .webpart-icon-features .icon-feature-icon i {
        font-size: 22px;
        color: var(--brand-500);
    }

    .webpart-icon-features .icon-feature-title {
        margin: 0 0 6px;
        font-weight: 800;
        font-size: 1.25rem;
    }

    .webpart-icon-features .icon-feature-text {
        margin: 0;
        opacity: .9;
        line-height: 1.6;
    }

/* small screens */
@media (max-width: 640px) {
    .webpart-icon-features {
        padding: 44px 0;
    }

        .webpart-icon-features .icon-feature {
            min-width: 100% !important;
        }
}


.webpart-icon-features .feature-item-title {
    font-weight: 800;
}




/* Align "Play Now" buttons across game cards (detailed grid) */
.webpart-games-collection .row.g-4 > [class*="col-"] {
    display: flex; /* let columns stretch equally */
}

    .webpart-games-collection .row.g-4 > [class*="col-"] > .game-card-detailed {
        display: flex;
        flex-direction: column; /* image on top, info below */
        width: 100%;
    }

/* keep image block natural height (already square via other rules) */
.game-card-detailed .game-card-image-link {
    display: block;
}

/* make the info area grow and push CTA to the bottom */
.game-card-detailed .game-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

/* clamp long titles so rows stay even */
.game-card-detailed .game-card-title {
    margin: 0 0 6px;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em; /* keeps equal height over 2 lines */
}

/* button sits on the same baseline for every card */
.game-card-detailed .game-card-cta {
    margin-top: auto; /* pushes CTA to bottom of info area */
    align-self: flex-start; /* keeps it left-aligned */
}




/* Games Collection (shared) */
.webpart-games-collection {
    overflow: hidden;
}
    /* contain horizontal scroll */
    .webpart-games-collection .game-card-image {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-1);
    }

    .webpart-games-collection .game-card-detailed {
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.06);
        border-radius: var(--radius-lg);
        overflow: hidden;
        height: 100%;
    }

.game-card-detailed .game-card-info {
    padding: 14px;
}

.game-card-detailed .game-card-title {
    margin: 0 0 8px;
    font-weight: 800;
}

/* Simple row (used by Featured Picks) with desktop arrows */
.scroll-row {
    position: relative;
    overflow: hidden;
}

    .scroll-row .game-row-simple {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 220px;
        gap: 16px;
        overflow-x: auto;
        padding: 12px 24px;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

        .scroll-row .game-row-simple::-webkit-scrollbar {
            display: none;
        }

    .scroll-row .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.12);
        color: #fff;
        box-shadow: var(--shadow-1);
        cursor: pointer;
        z-index: 3;
    }

        .scroll-row .scroll-btn:hover {
            background: rgba(255,255,255,.2);
            transform: translateY(-50%) scale(1.05);
        }

        .scroll-row .scroll-btn.disabled {
            opacity: .4;
            pointer-events: none;
        }

    .scroll-row .prev {
        left: 4px;
    }

    .scroll-row .next {
        right: 4px;
    }

@media (min-width:992px) {
    .scroll-row .scroll-btn {
        display: flex;
    }
}
/* .scroll-row:hover .scroll-btn{display:flex}  // optional hover-only */

/* Subtle edge masks */
.edge-mask::before, .edge-mask::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.edge-mask::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0));
}

.edge-mask::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0,0,0,.28), rgba(0,0,0,0));
}

/* Ensure square tiles in rows and grids */
.webpart-games-collection .game-card-image,
.webpart-games-collection .game-card-video {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

/* Footer (full compliance) */
.site-footer {
    background: linear-gradient(180deg,var(--ink-900),var(--ink-950));
    border-top: 1px solid rgba(255,255,255,.06);
    color: var(--cloud-000);
}

    .site-footer .footer-top-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 24px 0;
    }

    .site-footer .footer-logo {
        height: 36px;
    }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 8px 0 18px;
}

    .footer-links a {
        color: var(--cloud-000);
        opacity: .9;
        padding: .25rem .5rem;
        border-radius: 999px;
    }

        .footer-links a:hover {
            background: rgba(255,255,255,.06);
        }

.responsible-gaming-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
}

    .responsible-gaming-logos img {
        height: 28px;
        opacity: .9;
        filter: grayscale(.15);
    }

.footer-disclaimer-full {
    border-top: 1px dashed rgba(255,255,255,.15);
    margin-top: 12px;
    padding: 18px 0;
    font-size: .9rem;
    opacity: .9;
}

/* Cookie + Age Modal + Game Modal */
#cookie-popup {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: var(--surface);
    color: var(--text);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-1);
}

#cookie-accept-btn {
    margin-left: 8px;
}

.age-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,15,28,.9);
    z-index: 2000;
}

.age-modal-content {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: min(640px,92%);
    text-align: center;
    box-shadow: var(--shadow-2);
}

.age-modal-title {
    font-weight: 900;
}

.age-modal-buttons .cta-button {
    margin: .25rem;
}

.game-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10,15,28,.9);
    z-index: 2100;
}

.game-modal-content {
    width: min(1100px,96%);
    height: min(80vh,820px);
    background: var(--ink-700);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(255,255,255,.06);
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,.04);
}

.game-modal-title {
    margin: 0;
    font-weight: 800;
}

.game-modal-close {
    color: var(--cloud-000);
    font-size: 1.8rem;
    text-decoration: none;
}

.game-modal-body {
    height: 100%;
}

    .game-modal-body iframe {
        width: 100%;
        height: calc(100% - 56px);
    }

.modal-open {
    overflow: hidden;
}

/* Forms */
.form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--cloud-000);
    border-radius: 12px;
    padding: .75rem .9rem;
}

    .form-control:focus {
        outline: none;
        border-color: var(--brand-600);
        box-shadow: 0 0 0 2px rgba(20,241,225,.25);
    }

/* ===== FAQ (accordion) contrast & polish ===== */
.webpart-faq-section .accordion-item {
    background: transparent;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
}

.webpart-faq-section .accordion-button {
    background: rgba(255,255,255,.06);
    color: var(--cloud-000);
    font-weight: 700;
    padding: 14px 16px;
}

    .webpart-faq-section .accordion-button:hover {
        background: rgba(255,255,255,.08);
    }

    .webpart-faq-section .accordion-button:focus {
        box-shadow: 0 0 0 2px rgba(20,241,225,.25);
        border-color: transparent;
    }

    .webpart-faq-section .accordion-button:not(.collapsed) {
        background: rgba(255,255,255,.12);
        color: var(--cloud-000);
        box-shadow: none;
    }

.webpart-faq-section .accordion-body {
    background: rgba(255,255,255,.03);
    color: var(--cloud-000);
    padding: 16px 18px;
    line-height: 1.6;
}

.webpart-faq-section .accordion-item .accordion-body p,
.webpart-faq-section .accordion-item .accordion-body li {
    color: var(--cloud-000);
}

.webpart-faq-section .accordion-item .accordion-body a {
    color: var(--brand-500);
}

    .webpart-faq-section .accordion-item .accordion-body a:hover {
        color: var(--brand-600);
    }

/* === FAQ: readable answers even if wrapper class differs === */
section.faq-section, section[id*="faq"], section[class*="faq"] {
    --faq-border: 1px solid rgba(255,255,255,.12);
}

    section.faq-section .accordion, section[id*="faq"] .accordion, section[class*="faq"] .accordion {
        border: 0;
    }

    section.faq-section .accordion-item, section[id*="faq"] .accordion-item, section[class*="faq"] .accordion-item {
        background: transparent;
        border: var(--faq-border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin-bottom: 10px;
    }

    section.faq-section .accordion-button, section[id*="faq"] .accordion-button, section[class*="faq"] .accordion-button {
        background: rgba(255,255,255,.06) !important;
        color: var(--cloud-000) !important;
        font-weight: 700;
        padding: 14px 16px;
        box-shadow: none !important;
    }

        section.faq-section .accordion-button:hover, section[id*="faq"] .accordion-button:hover, section[class*="faq"] .accordion-button:hover {
            background: rgba(255,255,255,.08) !important;
        }

        section.faq-section .accordion-button:not(.collapsed), section[id*="faq"] .accordion-button:not(.collapsed), section[class*="faq"] .accordion-button:not(.collapsed) {
            background: rgba(255,255,255,.12) !important;
            color: var(--cloud-000) !important;
            box-shadow: none !important;
        }

    section.faq-section .accordion-body, section[id*="faq"] .accordion-body, section[class*="faq"] .accordion-body {
        background: rgba(255,255,255,.03);
        color: var(--cloud-000);
        padding: 16px 18px;
        line-height: 1.6;
    }

        section.faq-section .accordion-body p, section[id*="faq"] .accordion-body p, section[class*="faq"] .accordion-body p,
        section.faq-section .accordion-body li, section[id*="faq"] .accordion-body li, section[class*="faq"] .accordion-body li {
            color: var(--cloud-000);
        }

/* ===== Reviews: shared bits ===== */
.reviews-collection-title {
    font-weight: 900;
}

.reviews-collection-description {
    color: #666;
}

.reviews-collection .rating, .webpart-reviews-collection .rating {
    color: var(--gold-600);
}

/* === Layout: grid_2col_initials — show name only (hide initials) === */
.review-card-initials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

    .review-card-initials .review-initial-box {
        display: none !important;
    }
    /* remove initials bubble */
    .review-card-initials .review-name {
        margin: 0 0 6px 0;
        font-weight: 800;
    }

    .review-card-initials .review-quote {
        margin: 0;
    }

    .review-card-initials .rating {
        margin-top: 8px;
        font-size: 18px;
        color: var(--gold-600);
    }

/* === Layout: grid_3col_bubble === */
.review-card-bubble {
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

    .review-card-bubble .review-quote {
        margin: 0 0 10px 0;
    }

    .review-card-bubble .review-author {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .review-card-bubble .review-avatar {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        object-fit: cover;
    }

    .review-card-bubble .review-name {
        font-weight: 800;
    }

    .review-card-bubble .rating {
        margin-top: 6px;
    }

/* === Layout: grid_3col_dark === */
.review-card-dark {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-lg);
    padding: 18px;
    color: #fff;
}

    .review-card-dark .review-quote {
        margin: 0 0 10px 0;
    }

    .review-card-dark .review-author {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .review-card-dark .review-avatar {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        object-fit: cover;
    }

    .review-card-dark .review-name {
        font-weight: 800;
    }

/* Section spacing so it doesn't feel cramped above the footer */
section[class*="reviews"] .container {
    padding-bottom: 24px;
}
