

/* --- Root Variables for Easy Theme Management --- */
:root {
    --color-background-start: #0F0417; /* Deep Plum/Dark Purple */
    --color-background-end: #1B0F2A;   /* Darker Purple */
    --color-surface-dark: #2A1A3D;     /* Darker surface for cards/header */
    --color-surface-light: #3D2952;    /* Lighter surface for hover/active */
    --color-primary-accent: #FF577F;   /* Vibrant Pink */
    --color-secondary-accent: #FFC107; /* Bright Orange/Gold */
    --color-text-light: #F9FAFB;       /* Off-white for main text */
    --color-text-muted: #D1C4E9;       /* Light purple for secondary text */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

/* --- General Body & Typography Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--color-background-start), var(--color-background-end));
    color: var(--color-text-light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    line-height: 1.3;
    color: var(--color-text-light);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

p {
    color: var(--color-text-muted);
}

/* --- Header Bar - REVISED --- */
.site-header {
    background: var(--color-surface-dark);
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-size: 2.2em;
    color: var(--color-secondary-accent);
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 10px var(--color-secondary-accent), 0 0 20px rgba(255,193,7,0.4);
    transition: all 0.3s ease;
}
.brand:hover {
    color: var(--color-text-light);
    text-shadow: 0 0 15px var(--color-primary-accent), 0 0 25px rgba(255,87,127,0.4);
}


/* --- Re-styled Section Headers --- */
.section-header {
    text-align: center;
    font-size: 3em;
    margin: 80px 0 40px;
    color: var(--color-text-light);
    position: relative;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #FFD700, #FF577F); /* Gold to Pink Gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.section-header::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary-accent), var(--color-secondary-accent));
    margin: 20px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(255,87,127,0.6);
}

/* --- Top Casinos Section - Vertical List --- */
.top-casinos {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Increased gap for better separation */
    padding: 40px 20px;
    max-width: 1000px; /* Slightly narrower for focus */
    margin: 0 auto;
}

.casino-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the card and its terms */
}


/* --- NEW Casino Card Design - Horizontal Layout with Animation --- */
.casino-card {
    background: var(--color-surface-dark);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-surface-light);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 30px;
    gap: 25px;
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(20px);
}

.casino-card.active {
    opacity: 1;
    transform: translateY(0);
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255,87,127,0.3);
    background-color: var(--color-surface-light);
}

.casino-number {
    color: var(--color-secondary-accent);
    font-size: 2em;
    font-weight: bold;
    flex-shrink: 0;
    text-shadow: 0 0 10px var(--color-secondary-accent);
    padding-right: 15px;
    border-right: 2px solid rgba(255, 193, 7, 0.3);
}

.casino-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 20px; /* Gap between info elements */
}

.casino-card img {
    max-width: 150px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
    flex-shrink: 0;
}


.casino-rating {
    font-size: 1.1em;
    color: var(--color-text-light);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.casino-rating i {
    color: var(--color-secondary-accent); /* Stars in orange/gold */
    text-shadow: 0 0 5px rgba(255,193,7,0.5);
}

.bonus-text {
    font-size: 1em;
    color: var(--color-text-muted);
    font-weight: 400;
    text-align: left;
    flex-grow: 1;
    line-height: 1.4;
}

.bonus-title {
    font-weight: 700;
    font-size: 1.2em;
    background: linear-gradient(90deg, var(--color-secondary-accent), var(--color-primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(255,87,127,0.5);
    display: inline-block; /* Essential for gradient text */
}

.get-bonus-btn {
    background: linear-gradient(90deg, var(--color-primary-accent), #FF8A00); /* Pink to Orange Gradient */
    color: var(--color-background-start);
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 50px; /* More rounded */
    transition: background-size 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255,87,127,0.4);
    background-size: 200% auto; /* For gradient animation */
}

.get-bonus-btn:hover {
    background-position: right center; /* Move gradient on hover */
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(255,87,127,0.6);
}

.card-terms {
    text-align: center;
    font-size: 0.8em;
    color: var(--color-text-muted);
    margin: 5px 0 20px 0;
    padding: 0;
    opacity: 0.8;
}


/* --- Intro & Selection Process Sections --- */
.intro, .selection-process {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}
.selection-process {
    text-align: left;
}

.criteria {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--color-surface-dark);
    border-radius: 15px;
    border-left: 5px solid var(--color-primary-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.criteria:hover {
    transform: translateX(5px);
    background-color: var(--color-surface-light);
}

.criteria h3 {
    color: var(--color-primary-accent);
    font-size: 1.6em;
    margin-top: 0;
    text-shadow: none;
}
.criteria p {
    color: var(--color-text-muted);
}


/* --- FAQ Section --- */
.faq {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.faq-item {
    background: var(--color-surface-dark);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-surface-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.faq-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    background-color: var(--color-surface-dark);
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: var(--color-surface-light);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--color-primary-accent);
}
.faq-item.active .faq-question span {
    transform: rotate(45deg); /* Plus to X effect */
}
.faq-question span {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: var(--color-secondary-accent);
}


/* --- Responsible Gaming --- */
.responsible-gaming {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, var(--color-surface-dark), var(--color-background-end));
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}
.responsible-gaming p {
    color: var(--color-text-muted);
}


.gaming-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 25px;
}

.gaming-logos img {
    max-width: 120px;
    filter: grayscale(80%) brightness(1.2)
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.35))
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}


.gaming-logos img:hover {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.1) drop-shadow(0 0 10px rgba(255,255,255,0.3));
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background: #000;
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-top: 80px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.7);
}

footer a {
    color: var(--color-primary-accent);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
    text-shadow: 0 0 8px var(--color-primary-accent);
}


/* --- Age Verification Popup --- */
#age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease-out;
}

.popup-content {
    background: linear-gradient(160deg, var(--color-surface-dark), var(--color-background-end));
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255,87,127,0.4), 0 0 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-primary-accent);
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.popup-content h2 {
    color: var(--color-text-light);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    font-size: 2em;
}

.popup-btn {
    padding: 15px 35px;
    margin: 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yes-btn {
    background: linear-gradient(90deg, var(--color-secondary-accent), var(--color-primary-accent));
    color: var(--color-background-start);
    box-shadow: 0 4px 15px rgba(255,193,7,0.4);
    background-size: 200% auto;
}
.yes-btn:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(255,193,7,0.6);
}

.no-btn {
    background: var(--color-surface-light);
    color: var(--color-text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.no-btn:hover {
    background: #5A3A74;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/*
================================================================================
MOBILE RESPONSIVENESS
================================================================================
*/

/* --- Tablet & Mobile Styles for Casino Card --- */
@media (max-width: 992px) {
    .casino-card {
        flex-direction: column; /* Stacks items vertically inside the card */
        padding: 25px;
        gap: 20px;
        text-align: center;
    }
    .casino-info {
        flex-direction: column;
        gap: 15px;
    }
    .casino-number {
        padding-right: 0;
        border-right: none;
        margin-bottom: 10px;
    }
    .bonus-text {
        text-align: center;
    }
}

/* --- General Tablet Styles --- */
@media (max-width: 768px) {
   .section-header {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .section-header {
        font-size: 1.5rem;   /* scale down for smaller screens */
        padding: 0 1rem;     /* add breathing room on the sides */
        line-height: 1.4;    /* better readability */
    }
}
    .section-header::after {
        width: 90px;
    }

    .site-header {
        padding: 15px 20px;
    }
    .brand {
        font-size: 1.6em;
    }

    .intro, .selection-process, .faq, .responsible-gaming {
        padding: 20px 15px;
    }
    .criteria {
        padding: 20px;
    }
    .gaming-logos {
        gap: 20px;
    }
    .gaming-logos img {
        max-width: 100px;
    }
}

/* --- General Mobile Styles --- */
@media (max-width: 480px) {
    body {
        line-height: 1.5;
    }
    
    .section-header {
        font-size: 1.8em;
        margin: 40px 0 20px;
    }
    .section-header::after {
        width: 70px;
    }

    .top-casinos {
        padding: 20px 10px;
    }

    .casino-card {
        padding: 20px 15px;
        gap: 15px;
    }
    .casino-number {
        font-size: 1.8em;
    }
    .casino-card img {
        max-width: 120px;
        height: 60px;
    }
    .bonus-title {
        font-size: 1.1em;
    }
    .bonus-text {
        font-size: 0.95em;
    }
    .get-bonus-btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    .popup-content h2 {
        font-size: 1.6em;
    }
    .popup-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        font-size: 1.1em;
    }

    footer a {
        display: block;
        margin: 8px 0;
    }
}