/* Custom variables for a high-converting professional affiliate platform */
:root {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --brand-dark: #0b132b;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: #e2e8f0;
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Affiliate Disclosure Bar */
.affiliate-disclosure {
    background-color: #1e293b;
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 8px 0;
    text-align: center;
}

/* Header & Navigation */
.main-header {
    background-color: var(--brand-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-menu a {
    color: #f1f5f9;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
}

/* Content Layout elements */
.hero-section {
    padding: 40px 0 20px 0;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: var(--brand-dark);
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-top: 20px; }

p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* --- Core Web Vitals Image Handler --- */
.image-container {
    width: 100%;
    position: relative;
    background-color: #e2e8f0; /* Static background, no shimmer */
    border-radius: 8px;
    margin: 20px 0 25px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    
    /* Flex box to ensure centering */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* REMOVED: .image-container::before and @keyframes loadShadow to kill the running glow */

.image-container img {
    /* Responsive behavior */
    width: 100%; 
    height: auto;
    max-width: 100%; /* Ensures it doesn't overflow container */
    
    display: block;
    object-fit: cover;
    
    /* Explicitly centering within flex container (redundant but safe) */
    margin: 0 auto; 
}

/* Explicit aspect ratios to prevent CLS layout shifts */
.hero-img-wrap {
    aspect-ratio: 1160 / 420;
}

.section-banner-wrap {
    aspect-ratio: 1160 / 320;
}

.responsible-banner-wrap {
    aspect-ratio: 1160 / 260;
}

/* Filters UI */
.filter-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--brand-dark);
    color: white;
    border-color: var(--brand-dark);
}

/* Casino Data Table Grid */
.table-section {
    margin-bottom: 40px;
}

.responsive-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: var(--bg-surface);
}

.casino-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.casino-table th, .casino-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.casino-table th {
    background-color: #f1f5f9;
    font-weight: 600;
}

.td-brand { font-size: 1.1rem; color: var(--brand-dark); }
.td-bonus { color: var(--text-main); font-weight: 600; }

.badge-deposit {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.rating-val { color: var(--accent-gold); font-weight: 700; }

/* Conversion CTAs */
.btn-cta {
    background-color: var(--accent-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cta:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-cta-large {
    display: block;
    text-align: center;
    background-color: var(--accent-gold);
    color: var(--brand-dark);
    padding: 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Reviews Systems Elements */
.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros-block {
    background-color: #f0fdf4;
    border-left: 4px solid var(--accent-green);
    padding: 15px;
    border-radius: 0 6px 6px 0;
}

.cons-block {
    background-color: #fef2f2;
    border-left: 4px solid var(--accent-red);
    padding: 15px;
    border-radius: 0 6px 6px 0;
}

.pros-block ul, .cons-block ul {
    list-style-position: inside;
    margin-top: 10px;
    color: var(--text-muted);
}

/* Text Content blocks layout */
.info-section {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.grid-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
}

.step-list, .bonus-type {
    margin-top: 15px;
}

.step-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
    list-style-position: inside;
}

/* Dynamic FAQ Accordions Layout */
.faq-section { margin-bottom: 40px; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--text-muted); }
.faq-item.active .faq-question::after { content: '−'; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 18px 18px 18px; margin: 0; }

/* Footer Area elements */
.main-footer {
    background-color: var(--brand-dark);
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer .eighteen-plus {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.main-footer .disclaimer {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 0.8rem;
}

/* Responsive Optimization (Mobile-First Overrides) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--brand-dark);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { display: flex; }
    .nav-menu a { margin: 10px 20px; }
    .menu-toggle { display: flex; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }

    /* Change ratios on smartphones to maximize view quality */
    .hero-img-wrap { aspect-ratio: 4 / 3; }
    .section-banner-wrap { aspect-ratio: 16 / 9; }
    .responsible-banner-wrap { aspect-ratio: 16 / 9; }
}