/* === CSS Reset & Global Styles === */
:root {
    --bg-dark: #0F0F1B;
    --bg-light: #1B1B2F;
    --primary-neon: #00BFFF; /* Deep Sky Blue */
    --secondary-neon: #FF00FF; /* Magenta */
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0C0;
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
}
html, body {
    overflow-x: hidden;
}

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

html {
    scroll-behavior: smooth;
}

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

.wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

a {
    color: var(--primary-neon);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-neon);
}

h1, h2 {
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 8px var(--primary-neon);
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; text-align: center; }

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

.header-disclaimer {
    background-color: var(--primary-neon);
    color: var(--bg-dark);
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.header-disclaimer span { margin: 0 1rem; }

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

.header-logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.header-nav .nav-items {
    list-style: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-in-out;
    display: flex;
    z-index: 1000; /* above page content */
}

.nav-items.show {
    transform: translateX(0);
}

.nav-item {
    margin: 1.5rem 0;
}

.nav-item a {
    font-size: 1.5rem;
    font-weight: 600;
}

/* === Main Content Sections === */


.sub-header_container {
    text-align: center;
    padding: 12rem 0; /* increased vertical spacing */
    position: relative;
    background: linear-gradient(135deg, rgba(27, 27, 47, 0.5), rgba(15, 15, 27, 0.5)), url('hero-bg.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.sub-header_container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,191,255,0.2), transparent 70%);
    animation: rotateBG 15s linear infinite;
    z-index: 0;
}

@keyframes rotateBG {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sub-header_txt {
    position: relative; /* so content is above the overlay */
    z-index: 1;
}

.sub-header_container h1 {
    font-size: 3.2rem; /* slightly larger */
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-neon), 0 0 20px var(--primary-neon), 0 0 30px var(--secondary-neon);
    margin-bottom: 2.5rem;
}

.sub-header_container p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}





.operators-list {
    display: grid;
    gap: 2rem;
    padding-top: 4rem;
    position: relative;
}

.operators-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}









/* === Modern Neon Casino Cards === */

.operator-item {
    background: linear-gradient(145deg, #1B1B2F, #0F0F1B);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.operator-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.3);
}

.operator-item__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--primary-neon);
    text-align: center;  /* centered text */
}

.stars {
    color: gold;
    margin-left: 0.5rem;
}

.offer-logo {
    text-align: center;  /* center logo */
}

.offer-logo img {
    max-width: 160px;       /* bigger logo */
    margin: 0.5rem auto;
    display: block;         /* ensure block for centering */
    filter: drop-shadow(0 0 12px var(--primary-neon)); /* stronger glow */
    transition: transform 0.3s ease;
}

.offer-logo img:hover {
    transform: scale(1.05); /* slight zoom on hover */
}

.bonus-title {
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

.bonus-details {
    font-size: 0.85rem;  /* smaller font */
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.get-bonus-btn {
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;  /* smaller padding */
    margin: 1rem auto 0;     /* centered button */
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.get-bonus-btn:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 0 20px var(--secondary-neon), 0 0 40px var(--primary-neon);
    filter: brightness(1.2);
}

.terms-text, .bonus-details + a + .terms-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    line-height: 1.2;
}

.bonus-title {
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
    text-align: center; /* center multi-line text */
    line-height: 1.3;   /* optional: adjust spacing between lines */
}









/* Grid layout for desktop */
.operators-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .operators-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .operators-list {
        grid-template-columns: repeat(4, 1fr);
    }
}



/* Content & FAQ Sections */
.content-section, .faq, .play-safely {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}
.content-section p { margin-bottom: 1rem; color: var(--text-secondary); }
.content-section strong { color: var(--text-primary); }

.faq-tab {
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    margin-bottom: 1rem;
}
.question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.question .icon {
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
}
.question.is-open .icon {
    transform: rotate(45deg);
}
.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    color: var(--text-secondary);
    padding-bottom: 0;
}

/* Responsible Gaming */
.play-safely { text-align: center; }
.regulations-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.regulations-icons img {
    transition: transform var(--transition-speed) ease;
}
.regulations-icons a:hover img {
    transform: scale(1.1);
}

/* === Footer === */
.page-footer {
    background-color: #0A0A14;
    color: var(--text-secondary);
    font-family: var(--font-family);
    padding: 3rem 1rem;
    text-align: center;
}

.footer-inner.wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-nav {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.footer-nav .nav-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav .nav-item a {
    color: var(--primary-neon);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-nav .nav-item a:hover {
    color: var(--secondary-neon);
}

.footer-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.footer-text h5 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.footer-text hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 1rem 0;
}

.footer-text .copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 1rem;
}


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

/* === Media Queries for Responsiveness === */
@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .menu-toggle { display: none; }
    .nav-items {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        transform: none;
        gap: 2rem;
    }
    .nav-item { margin: 0; }
    .nav-item a { font-size: 1rem; }
    
    .operator-item__inner {
        grid-template-columns: 50px 1fr 1fr 1fr;
        grid-template-areas: "num logo bonus btn";
        text-align: left;
    }
    .offer-logo, .offer-btn, .offer-bonus { text-align: left; }
    .offer-btn { text-align: right; }
    
    .cookie-popup { flex-direction: row; text-align: left; }
}

@media (min-width: 1024px) {
    .operators-list {
        grid-template-columns: 1fr 1fr;
    }
}


/* Mobile adjustments */
@media (max-width: 767px) {
    .sub-header_container h1 {
        font-size: 2rem; /* smaller heading on mobile */
    }

    .sub-header_container p {
        font-size: 1rem; /* smaller paragraph text */
        line-height: 1.5; /* adjust line spacing */
        max-width: 90%;   /* keep it responsive */
        margin: 0 auto;
    }

    .sub-header_container {
        padding: 5rem 1rem; /* reduce vertical padding for smaller screens */
    }
}
.page-footer {
    position: relative;
    z-index: 100;  /* higher than overlapping elements */
}

.footer-nav .nav-items a {
    pointer-events: auto;
    position: relative;
    z-index: 101;
}

/* Footer nav overrides */
.footer-nav .nav-items {
    position: static;      /* stop being fixed and full screen */
    height: auto;          /* reset full height */
    width: auto;           /* reset full width */
    background: none;      /* remove background */
    flex-direction: row;   /* horizontal layout */
    justify-content: center;
    gap: 1rem;             /* spacing between items */
    z-index: auto;         /* reset z-index */
}

.footer-nav .nav-item a {
    pointer-events: auto;  /* make sure links are clickable */
    position: relative;    /* ensure above background */
    z-index: 1;
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }

    /* Header nav on desktop */
    .header-nav .nav-items {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        transform: none;
        gap: 2rem;
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 5px var(--primary-neon),
        0 0 10px var(--primary-neon),
        0 0 20px var(--secondary-neon);
    transition: color var(--transition-speed) ease, 
                text-shadow var(--transition-speed) ease;
}

.logo-text:hover {
    color: var(--secondary-neon);
    text-shadow: 
        0 0 8px var(--secondary-neon),
        0 0 20px var(--primary-neon),
        0 0 30px var(--secondary-neon);
}

/* === CORRECTED: Age Verification Popup (Mobile First) === */

/* The main full-screen overlay */
.age-popup {
    position: fixed;
    inset: 0; /* This is a shorthand for top: 0; right: 0; bottom: 0; left: 0; */
    background: rgba(15, 15, 27, 0.95);
    display: flex;
    justify-content: center; /* Horizontally center the content */
    align-items: center;     /* Vertically center the content */
    z-index: 9999;
    padding: 1rem; /* Adds space so the popup doesn't touch the screen edges */
    box-sizing: border-box;
}

/* The content box of the popup */
.age-popup-content {
    background: var(--bg-light);
    width: 100%;
    max-width: 350px; /* A good max-width for mobile */
    max-height: 95vh; /* Prevents the popup from being taller than the screen */
    overflow-y: auto; /* Allows scrolling inside the popup if content is too long */
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.4);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Typography and elements inside the popup */
.age-popup-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.age-popup-content p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.terms-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    cursor: pointer;
    gap: 0.5rem; /* Adds space between checkbox and text */
}

.terms-label input {
    transform: scale(1.2);
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Space between the buttons */
}

.btn-age {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    color: #fff;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-age:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px var(--secondary-neon);
}

.btn-age.decline {
    background: #444;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    .age-popup-content {
        max-width: 500px; /* A wider popup for desktops */
        padding: 2.5rem;
    }

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

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

    .popup-buttons {
        flex-direction: row; /* Buttons side-by-side on desktop */
        gap: 1rem;
    }
}
