/* ==========================================================================
   1. VARIABLES & GLOBALS
   ========================================================================== */
:root {
    --bg-dark: #0a0a0c;
    --card-bg: #141418;
    --card-bg-elevated: #1e1e24;
    --accent: #ff3366;
    --accent-hover: #ff5588;
    --accent-glow: rgba(255, 51, 102, 0.3);
    --ca-red: #d80621;
    --ca-red-glow: rgba(216, 6, 33, 0.15);
    --gold: #e5b842;
    --green-success: #00ff7a;
    --text-main: #ffffff;
    --text-dim: #a0a0b0;
    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);
    --glass: rgba(255, 255, 255, 0.02);
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Ambient Background Lights */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 20%, var(--accent-glow) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 122, 255, 0.12) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Section Containers */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.alt-bg {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}
.alt-bg > * {
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}

/* Utility Section Titles */
.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.section-title p {
    margin-top: 15px;
    font-size: 1.1rem;
}

.section-title-left {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: rgba(10, 10, 12, 0.75);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 15px 5%;
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    padding: 200px 5% 100px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-content h1 span {
    display: block;
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent), #ff66aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-btns {
    margin-top: 35px;
}

/* Figures & Captions */
figure {
    width: 100%;
    position: relative;
}

.hero-image img, .editorial-img img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--border-bright);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.caption {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 15px;
    font-style: italic;
}

/* ==========================================================================
   4. STATS GRID & INFRASTRUCTURE
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: -40px auto 60px;
}

.stat-card {
    background: linear-gradient(145deg, var(--card-bg), rgba(20, 20, 24, 0.6));
    border: 1px solid var(--border);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.stat-label {
    display: block;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-value {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   5. EDITORIAL TEXT/IMAGE BLOCKS
   ========================================================================== */
.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.editorial-block.reverse {
    grid-template-columns: 1fr 1fr;
}

.editorial-block.reverse .editorial-text {
    order: 2;
}
.editorial-block.reverse .editorial-img {
    order: 1;
}

.text-content-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.inner-subsection {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.bg-glass-card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 45px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

/* ==========================================================================
   6. PREMIUM TABLES STYLING
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

thead {
    background: linear-gradient(90deg, #1a1a22, #15151a);
    border-bottom: 2px solid var(--border-bright);
}

th {
    padding: 22px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

td {
    padding: 20px 25px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

tbody tr:hover td {
    color: var(--text-main);
    background: rgba(255, 51, 102, 0.02);
}

/* ==========================================================================
   7. LISTS (BULLETS, STEPS, GRIDS)
   ========================================================================== */
/* Vertical Icon Lists */
.feature-list-vertical {
    list-style: none;
    margin: 25px 0;
}

.feature-list-vertical li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.feature-list-vertical li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Standard Premium Bullets */
.bullet-list {
    list-style: none;
    margin-left: 5px;
}

.bullet-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-dim);
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

/* Step/Numbered Ordered Lists */
.step-list {
    list-style: none;
    counter-reset: step-counter;
    margin: 25px 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--accent);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Advanced Grid Bullet Lists */
.grid-bullet-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.grid-bullet-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.grid-bullet-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-bright);
    color: var(--text-main);
}

.grid-bullet-list li i {
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   8. CARDS & COLUMN WRAPPERS
   ========================================================================== */
.sub-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.sub-column-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
}

.sub-column-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.checklist-box {
    background: linear-gradient(90deg, rgba(255, 51, 102, 0.04), transparent);
    padding: 25px 30px;
    border-radius: 20px;
    border-left: 4px solid var(--accent);
    margin-top: 30px;
}

.checklist-box p {
    margin-bottom: 0;
    color: var(--text-main);
}

.suitability-card {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(20,20,24,0.4) 100%);
}

/* ==========================================================================
   9. INTERACTIVE RATING BARS
   ========================================================================== */
.rating-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--card-bg);
    padding: 45px;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.rating-item {
    display: grid;
    gap: 12px;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.rating-header span:last-child {
    color: var(--gold);
}

.bar-bg {
    height: 8px;
    background: #22222a;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    width: 0; /* Animated via JS */
    border-radius: 4px;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   10. PROS & CONS GRID
   ========================================================================== */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.compare-box {
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.compare-box.pros {
    background: rgba(0, 255, 122, 0.02);
    border: 1px solid rgba(0, 255, 122, 0.12);
}

.compare-box.cons {
    background: rgba(255, 51, 102, 0.02);
    border: 1px solid rgba(255, 51, 102, 0.12);
}

.compare-box h4 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
}

.compare-box.pros h4 { color: var(--green-success); }
.compare-box.cons h4 { color: var(--accent); }

.compare-box ul {
    list-style: none;
}

.compare-box li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.compare-box li::before {
    margin-top: 2px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    flex-shrink: 0;
}

.compare-box.pros li::before {
    content: "\f00c";
    color: var(--green-success);
}

.compare-box.cons li::before {
    content: "\f00d";
    color: var(--accent);
}

/* ==========================================================================
   11. RESPONSIBLE GAMBLING BANNER
   ========================================================================== */
#responsible-gambling {
    background: rgba(216, 6, 33, 0.03);
    border: 1px solid rgba(216, 6, 33, 0.15);
    padding: 45px;
    border-radius: 24px;
    box-shadow: inset 0 0 30px rgba(216, 6, 33, 0.05);
}

#responsible-gambling h3 i {
    margin-right: 10px;
}

#responsible-gambling p {
    color: #e0d0d0;
}

/* ==========================================================================
   12. FAQ ACCORDION
   ========================================================================== */
.faq-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-bright);
}

.faq-trigger {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    user-select: none;
}

.faq-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-dim);
}

.faq-item.active .faq-content {
    padding-bottom: 25px;
    max-height: 300px; /* Secure high value for text */
}

.faq-item i {
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.faq-item.active i {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-item.active {
    background: rgba(255,255,255,0.01);
    border-color: rgba(255, 51, 102, 0.3);
}

/* ==========================================================================
   13. PREMIUM BUTTONS & CTA
   ========================================================================== */
.btn-premium {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(90deg, var(--accent), #ff5588);
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 10px 35px var(--accent-glow);
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 45px rgba(255, 51, 102, 0.5);
}

.final-cta {
    text-align: center;
    padding: 120px 5%;
    background: linear-gradient(180deg, transparent, rgba(255, 51, 102, 0.06));
    border-bottom: 1px solid var(--border);
    max-width: 100%;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
footer {
    padding: 100px 5% 40px;
    background: #050507;
    border-top: 1px solid var(--border);
    max-width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
    max-width: 1260px;
    margin: 0 auto;
}

.footer-about p {
    color: var(--text-dim);
    margin-top: 25px;
    font-size: 0.95rem;
    max-width: 450px;
}

.footer-links h5 {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 80px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: #666677;
    font-size: 0.85rem;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}

.warning {
    margin-top: 12px;
    color: #444450;
    font-weight: 600;
}

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES (DESKTOP-FIRST TO MOBILE)
   ========================================================================== */
@media (max-width: 1200px) {
    .editorial-block, .editorial-block.reverse {
        gap: 40px;
    }
}

@media (max-width: 968px) {
    header {
        padding: 20px 5%;
    }
    
    .nav-links, .nav-btn {
        display: none; /* Can be paired with mobile dynamic menu toggler if needed */
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 150px;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        margin: 0 auto 25px auto;
    }
    
    .hero-image {
        order: -1;
    }
    
    .editorial-block, .editorial-block.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .editorial-block.reverse .editorial-text {
        order: unset;
    }
    .editorial-block.reverse .editorial-img {
        order: unset;
    }
    
    .section-title-left {
        text-align: center;
    }
    
    .sub-columns, .compare-grid, .rating-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-about p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .final-cta h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 60px 5%;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .bg-glass-card, .rating-container, .compare-box, #responsible-gambling {
        padding: 25px;
    }
    
    .faq-trigger {
        padding: 18px 20px;
    }
    
    .faq-item.active .faq-content {
        padding: 0 20px 20px 20px;
    }
}