/* * style.css for domain.com (France 18+)
 * Mobile-First (320px) -> Desktop
 * GBN-8 Dark Theme + User "Fun" Palette Override
 */

/* 1. ROOT VARIABLES & RESET */
:root {
    /* User-Requested "Fun" Palette */
    --accent-purple: #62109F;
    --accent-red: #DC0E0E;
    --accent-orange: #FE6244;
    --text-headline: #FFDEB9; /* Light Peach */
    
    /* GBN-8 Base */
    --bg-dark: #0b0b0c;
    --surface: rgba(40, 40, 45, 0.3); /* Slightly darker frosted glass */
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-light: #e6eef8;
    --text-secondary: #9aa6b2;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 60%, var(--accent-purple) 100%);
    --gradient-glow: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);

    /* Fonts */
    --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Sizing */
    --radius-md: 12px;
    --radius-lg: 20px;
    --container-width: 1200px;
    --container-padding: 1rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Visible Focus */
:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 3px;
    border-radius: 4px;
}
/* Disable for mouse-users, keeps it for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-headline);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; } /* 36px */
h2 { font-size: 1.75rem; } /* 28px */
h3 { font-size: 1.25rem; } /* 20px */

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover, a:focus {
    color: var(--text-headline);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 2. LAYOUT & BUTTONS */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 3rem 0;
}

/* General Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-size 0.3s ease;
    -webkit-backface-visibility: hidden; /* Smooth transforms */
}

/* Primary CTA Button (Fun Gradient) */
.btn-primary {
    color: #ffffff;
    background: var(--gradient-main);
    background-size: 150% 150%;
    position: relative;
    z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 14, 14, 0.2);
    background-position: right center;
    color: #ffffff;
    text-decoration: none;
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--surface);
    color: var(--text-light);
    border: 1px solid var(--surface-border);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    text-decoration: none;
}

/* 3. AGE VERIFICATION MODAL */
#age-gate-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; /* Remove default dialog margin */
    border: 1px solid var(--accent-purple);
    background: rgba(11, 11, 12, 0.9);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: calc(100% - 2rem);
    padding: 0;
    box-shadow: 0 0 50px rgba(98, 16, 159, 0.5);
    overflow: hidden;
}
#age-gate-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}
.modal-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-18-badge {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}
#modal-title {
    color: var(--text-headline);
    margin-bottom: 0.5rem;
}
#modal-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.modal-buttons {
    display: flex;
    flex-wrap: wrap; /* For small screens */
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
}
.modal-buttons button {
    flex: 1;
    min-width: 120px;
}
#age-gate-enter {
    background: var(--accent-red); /* Strong entry */
}
.modal-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 400px;
}

/* 4. COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: -200px; /* Start hidden */
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--surface-border);
    padding: 1rem;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: bottom 0.5s ease-in-out;
}
#cookie-banner.visible {
    bottom: 0;
}
#cookie-banner p {
    margin: 0;
    text-align: center;
    color: var(--text-light);
}
#cookie-banner a {
    color: var(--text-headline);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}
.cookie-buttons button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 5. HEADER */
.site-header {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 900;
}
.header-top-bar {
    background: var(--accent-purple);
    color: var(--text-headline);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
}
.header-top-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-headline);
    text-decoration: none;
}
.header-disclaimer {
    background: var(--surface);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-secondary);
    border-top: 1px solid var(--surface-border);
}
.header-disclaimer p { margin: 0; }

/* 6. HERO */
.hero {
    min-height: 80vh;
    display: grid;
    place-content: center;
    text-align: center;
 background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), /* black overlay with 50% transparency */
        var(--bg-dark) url('src/casino.jpg') no-repeat center center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(98, 16, 159, 0.2) 0%, rgba(98, 16, 159, 0) 60%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 2.5rem;
    color: var(--text-headline);
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 7. FEATURED CASINOS */
.featured-casinos h2 {
    text-align: center;
    font-size: 2rem;
}
.highlight-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 0.25rem;
}
/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: none;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn:focus {
    color: var(--text-light);
    border-color: var(--accent-orange);
}
.filter-btn.active {
    background: var(--accent-orange);
    color: var(--bg-dark);
    font-weight: 700;
    border-color: var(--accent-orange);
}

/* Casino Grid */
.casino-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1-column */
    gap: 1.5rem;
}

/* Casino Card */
/* Casino Grid */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* More breathing room between cards */
}

/* Casino Card */
.casino-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 440px; /* Makes cards look more premium */
}

.casino-card:hover,
.casino-card:focus-within {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 40px rgba(220, 14, 14, 0.35);
    border-color: var(--accent-red);
}

/* Rank badge */
.card-rank-badge {
    position: absolute;
    top: -1px;
    left: 1.5rem;
    background: var(--gradient-main);
    color: white;
    font-weight: 800;
    width: 40px;
    height: 44px;
    display: grid;
    place-content: center;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Header & logo */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1rem;
}

.card-logo-container {
    width: 160px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: grid;
    place-content: center;
    padding: 0.75rem;
}

.card-logo {
    max-width: 140px;
    max-height: 60px;
}

/* Bonus section */
.card-bonus {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bonus-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem; /* Bigger font for bonus offer */
    color: var(--text-headline);
    line-height: 1.3;
    white-space: pre-wrap;
}

/* Body section */
.card-body {
    flex-grow: 1;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1rem;
}

.card-disclaimer,
.card-licence,
.card-affiliate-note {
    font-size: 0.85rem; /* Slightly larger text */
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-licence strong {
    color: var(--text-light);
}

/* Call-to-action button */
.card-cta {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    margin-top: auto;
}


/* 8. TRUSTED LOGOS */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2-column */
    gap: 1rem;
}
.logo-panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    display: grid;
    place-content: center;
    min-height: 100px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.logo-panel:hover, .logo-panel:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-orange);
    text-decoration: none;
}
.logo-panel img {
    max-height: 50px;
    width: auto;
    max-width: 150px;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.2s ease;
}
.logo-panel:hover img, .logo-panel:focus img {
    filter: none;
}

/* 9. WHY CHOOSE US */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.feature-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    border-left: 5px solid var(--accent-purple);
}
.feature-item h3 {
    color: var(--text-headline);
}

/* 10. RESPONSIBLE GAMBLING */
.responsible-gambling {
    background: rgba(220, 14, 14, 0.1); /* Red glow bg */
    border-top: 2px solid var(--accent-red);
    border-bottom: 2px solid var(--accent-red);
}
.rg-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.rg-container img {
    width: 50px;
    height: 50px;
}
.rg-container h3 {
    color: var(--text-headline);
    margin: 0;
}
.rg-container p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}
.rg-container a {
    color: var(--text-headline);
    font-weight: 700;
    text-decoration: underline;
}

/* 11. FAQ */
.faq-accordion details {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.faq-accordion summary {
    padding: 1.25rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-light);
    position: relative;
    list-style: none; /* Remove default marker */
}
.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-orange);
    transition: transform 0.2s ease;
}
.faq-accordion details[open] summary {
    color: var(--text-headline);
}
.faq-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

/* 12. FOOTER */
.site-footer {
    background: var(--surface);
    padding: 3rem 0 1rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--surface-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1-column */
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 {
    color: var(--text-headline);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--text-secondary);
}
.footer-links a:hover, .footer-links a:focus {
    color: var(--text-light);
    text-decoration: underline;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--surface-border);
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
}
.newsletter-form button {
    padding: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--surface-border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.footer-addiction-warning {
    color: var(--text-headline);
    font-weight: 500;
    margin-bottom: 1rem;
}
.footer-disclaimer, .footer-copyright {
    margin-bottom: 0.5rem;
}

/* 13. LEGAL PAGE STYLES */
.legal-page {
    padding: 2rem 0;
}
.legal-page .container {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
}
.legal-page h1 {
    color: var(--text-headline);
    border-bottom: 2px solid var(--accent-purple);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.legal-page h2 {
    color: var(--text-headline);
    font-size: 1.5rem;
    margin-top: 2rem;
}
.legal-page p, .legal-page li {
    color: var(--text-light);
}
.legal-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* 14. ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 15. MEDIA QUERIES (Mobile-First) */

/* Small tablets */
@media (min-width: 600px) {
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }
    #cookie-banner p { text-align: left; }
}

/* Tablets and small desktops */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    .hero-title { font-size: 3.5rem; }
    
    .card-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .card-bonus {
        text-align: right;
    }
}

/* Large desktops */
@media (min-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    section {
        padding: 5rem 0;
    }
    .casino-grid {
        grid-template-columns: repeat(2, 1fr); /* Stays 2-col for focus */
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr; /* 4-col footer */
    }
}