/*
    Theme: Midnight Gold (v3.0)
    Author: Gemini
    Date: August 26, 2025
*/

/* === Root Variables & Global Styles === */
:root {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-primary: #D4AF37;
    --color-primary-dark: #B8860B;
    --color-text-light: #FFFFFF;
    --color-text-base: #CCCCCC;
    --color-border: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden;
} 

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-base);
    line-height: 1.7;
    overflow-x: hidden;
}

.wrapper { width: 90%; max-width: 1100px; margin: 0 auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-primary-dark); }

/* === Body & Headings Luxury Fonts === */
body {
    font-family: 'Roboto', sans-serif; /* clean, modern body */
    color: var(--color-text-base);
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* Headings */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif; /* elegant luxury serif */
    color: var(--color-text-light);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Hero / H1 */
h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 900; /* maximum weight */
    background: linear-gradient(120deg, var(--color-primary-dark), var(--color-text-light) 50%, var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px; /* makes it feel bigger and bolder */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* subtle depth for weight */
    transform: scale(1.05); /* slightly larger for extra emphasis */
}


/* Section Titles / H2 */
h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-light); /* neutral, elegant */
}

/* Subtitles / H3 */
h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    text-align: center;
}

/* Minor headings */
h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-light);
}

h5 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-base);
}

/* === Header & Navigation === */
.header-main {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

/* NEW: Text Logo Style */
.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), #FFF, var(--color-primary-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s ease;
}
.logo-text:hover {
    background-position: -100% center;
}
.logo-text span {
    font-weight: 400; /* Lighter weight for the second part */
    opacity: 0.8;
}

.menu-toggle { display: none; background: none; border: none; color: var(--color-text-light); font-size: 2rem; cursor: pointer; z-index: 1001; }
.header-nav .nav-items { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-item a { color: var(--color-text-base); font-weight: 600; font-size: 1rem; position: relative; padding-bottom: 0.5rem; }
.nav-item a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-primary); transition: width var(--transition-speed) ease; }
.nav-item a:hover::after { width: 100%; }
.nav-item a:hover { color: var(--color-text-light); }
.nav-item--responsible { border: 1px solid var(--color-primary); padding: 0.4rem 0.8rem; border-radius: 50px; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }



/* === Upgraded Animated Hero Section === */
.sub-header_container {
    text-align: center;
    padding: 14rem 1rem; /* Extra space for impact */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E1E1E, #2C2C2C, #121212);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

/* Animated gradient background */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optional subtle particles using pseudo-elements */
.sub-header_container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particles-move 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particles-move {
    0% { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Heading animation */
.sub-header_container h1 {
    position: relative;
    font-size: 4.2rem;
    background: linear-gradient(120deg, var(--color-primary-dark), var(--color-text-light) 50%, var(--color-primary-dark));
    background-size: 200% 100%;
    background-position: 150% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-sweep 4s ease-in-out infinite, text-glow 2s ease-in-out infinite alternate, heading-move 2s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heading-move {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Paragraph spacing */
.sub-header_container p { 
    max-width: 700px; 
    margin: 3rem auto 0;
    font-size: 1.25rem; 
    z-index: 1;
    position: relative;
    color: var(--color-text-base);
}



/* === Operator Review Section (Vertical Layout) === */
.operators-section { padding: 4rem 0; }
.operators-list { display: flex; flex-direction: column; gap: 2rem; }
.operator-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.operator-item::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1; margin: -1px; border-radius: inherit;
    background: conic-gradient(from 180deg at 50% 50%, var(--color-primary), var(--color-primary-dark), var(--color-surface), var(--color-primary-dark), var(--color-primary));
    opacity: 0;
    transition: opacity 0.5s ease;
}
.operator-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1); }
.operator-item:hover::before { opacity: 1; animation: spin 3s linear infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.operator-item__logo { flex-shrink: 0; text-align: center; width: 150px; }
.operator-item__logo img { max-width: 100%; }
.rating { font-size: 1.2rem; font-weight: 700; color: var(--color-text-light); margin-top: 0.5rem;}
.stars { color: var(--color-primary); font-size: 1rem; }
.operator-item__details { flex-grow: 1; }
/* Bonus details placed below the card */
.bonus-details {
    font-size: 0.85rem; /* Slightly smaller */
    color: var(--color-text-base);
    margin: -2rem 0 2rem 0; /* Very small top margin, larger bottom margin for spacing between cards */
    text-align: center; /* Center under the card */
}

.operator-item__cta { flex-shrink: 0; }
.get-bonus-btn {
    background: linear-gradient(145deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-background);
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: inline-block;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}
.get-bonus-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4); color: #000; }

/* === Content & FAQ Sections === */
.content-section, .faq, .play-safely { background: var(--color-surface); padding: 3rem; border-radius: var(--border-radius); margin: 3rem auto; }
.content-section strong { color: var(--color-primary); }
.faq-tab { border-bottom: 1px solid var(--color-border); }
.question { width: 100%; background: none; border: none; color: var(--color-text-light); font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; padding: 1.5rem 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color var(--transition-speed) ease; }
.question:hover { color: var(--color-primary); }
.question .icon { font-size: 1.5rem; transition: transform var(--transition-speed) ease; }
.question.is-open { color: var(--color-primary); }
.question.is-open .icon { transform: rotate(45deg); }
.content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out; padding-bottom: 0; }
.play-safely { text-align: center; }
.regulations-icons { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.regulations-icons img { height: 40px; opacity: 0.7; transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease; }
.regulations-icons a:hover img { transform: scale(1.1); opacity: 1; }

/* === Footer === */
.page-footer { background-color: var(--color-surface); color: var(--color-text-base); padding: 4rem 1rem; margin-top: 4rem; border-top: 2px solid var(--color-primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 3rem; text-align: left; }
.footer-heading { color: var(--color-primary); margin-bottom: 1rem; }
.footer-col p { font-size: 0.9rem; }
.copyright { margin-top: 2rem; font-size: 0.8rem; opacity: 0.6; }
.footer-nav-items { list-style: none; }
.footer-nav-items li a { color: var(--color-text-base); }
.footer-nav-items li a:hover { color: var(--color-text-light); }

/* === Cookie Popup === */
.cookie-popup { position: fixed; bottom: -100%; left: 0; width: 100%; background: var(--color-surface); padding: 1.5rem; display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5); transition: bottom 0.5s ease-in-out; border-top: 1px solid var(--color-border); }
.cookie-popup.show { bottom: 0; }
.btn-accept { background: var(--color-primary); color: var(--color-background); border: none; padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 700; cursor: pointer; transition: background-color var(--transition-speed) ease; }
.btn-accept:hover { background-color: var(--color-primary-dark); }

/* === Media Queries for Responsiveness === */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col--about { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .logo-text { font-size: 1.5rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .sub-header_container { padding: 5rem 1rem; }
    .sub-header_container h1 { font-size: 2.8rem; line-height: 1.3; }

    .menu-toggle { display: block; }
    .header-nav .nav-items { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: var(--color-background); flex-direction: column; justify-content: center; transform: translateX(100%); transition: transform var(--transition-speed) ease-in-out; z-index: 1000; }
    .nav-items.show { transform: translateX(0); }
    .nav-item { margin: 1.5rem 0; }
    .nav-item a { font-size: 1.5rem; }
    .nav-item a::after { display: none; }
    .nav-item--responsible { border: none; font-size: 1rem; opacity: 0.7;}

    .operator-item { flex-direction: column; text-align: center; gap: 1.5rem; }
    .bonus-title {
    font-size: 1.8rem; /* Larger for emphasis */
    font-weight: 800;
    color: var(--color-primary); /* Make it stand out */
    margin-bottom: 1rem;
    text-align: center; /* Optional: center inside card */
}
    .content-section, .faq, .play-safely { padding: 2rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* === Age Verification Popup (Mobile First) === */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease; /* Mobile-friendly speed */
    padding: 1rem; /* Ensure some space on small screens */
}

.age-popup.show {
    visibility: visible;
    opacity: 1;
}

.age-popup-content {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #ccc);
    border-radius: 1rem;
    width: 100%; /* Full width on mobile */
    max-width: 400px; /* Limit max width */
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    animation: popup-scale 0.4s ease;
}

@keyframes popup-scale {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.age-popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary, #333);
}

.age-popup-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-base, #555);
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light, #777);
}

.age-popup-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons on mobile */
    gap: 0.8rem;
    align-items: center;
}

.btn-decline,
.btn-accept {
    width: 100%; /* Full width on mobile */
    max-width: 200px;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-decline {
    background: none;
    border: 1px solid var(--color-primary, #007bff);
    color: var(--color-primary, #007bff);
}

.btn-decline:hover {
    background: var(--color-primary, #007bff);
    color: var(--color-background, #fff);
}

.btn-accept {
    background: var(--color-primary, #007bff);
    color: var(--color-background, #fff);
    border: 1px solid var(--color-primary, #007bff);
}

.btn-accept:hover {
    opacity: 0.9;
}

/* === Larger screens (tablet/desktop) === */
@media (min-width: 768px) {
    .age-popup-buttons {
        flex-direction: row; /* Side by side on larger screens */
    }

    .age-popup-content {
        padding: 2rem;
    }

    .age-popup-content h2 {
        font-size: 2rem;
    }

    .age-popup-content p {
        font-size: 1rem;
    }
}
