/* style/casino.css */

/* Custom Colors */
:root {
    --page-casino-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-casino-card-bg: #11271B;
    --page-casino-background: #08160F;
    --page-casino-text-main: #F2FFF6;
    --page-casino-text-secondary: #A7D9B8;
    --page-casino-border: #2E7A4E;
    --page-casino-glow: #57E38D;
    --page-casino-gold: #F2C14E;
    --page-casino-divider: #1E3A2A;
    --page-casino-deep-green: #0A4B2C;
}

/* Base styles for the page-casino scope */
.page-casino {
    font-family: Arial, sans-serif;
    color: var(--page-casino-text-main); /* Default text color for dark backgrounds */
    background-color: var(--page-casino-background); /* Default background */
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-casino__section-title {
    font-size: clamp(2em, 5vw, 2.8em); /* H1 constraint applied to section titles too for consistency */
    font-weight: 700;
    color: var(--page-casino-text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-casino__main-title {
    font-size: clamp(2.5em, 6vw, 3.5em);
    font-weight: 800;
    color: var(--page-casino-text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-casino__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--page-casino-text-secondary);
    text-align: justify;
}

.page-casino__list-item {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--page-casino-text-secondary);
    list-style: disc inside;
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px;
    min-height: 500px;
    overflow: hidden;
    text-align: center;
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--page-casino-text-main);
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--page-casino-text-main);
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-casino__cta-buttons--center {
    margin-top: 30px;
    justify-content: center;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__btn-primary {
    background: var(--page-casino-button-gradient);
    color: #ffffff; /* Always white for primary button */
    border: none;
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--page-casino-text-main);
    border: 2px solid var(--page-casino-border);
}

.page-casino__btn-secondary:hover {
    background: var(--page-casino-deep-green);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Intro Section --- */
.page-casino__intro-section {
    padding: 60px 0;
    background-color: #ffffff; /* Use white background for light text */
    color: #333333; /* Dark text for light background */
}

.page-casino__intro-section .page-casino__section-title,
.page-casino__intro-section .page-casino__text-block {
    color: #333333; /* Override text color for light background */
}

/* --- Features Section --- */
.page-casino__features-section {
    padding: 60px 0;
    background-color: var(--page-casino-background);
}

.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino__feature-card {
    background-color: var(--page-casino-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--page-casino-border);
}

.page-casino__feature-card:hover {
    transform: translateY(-5px);
}

.page-casino__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-casino__card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--page-casino-text-main);
    margin-bottom: 15px;
}

.page-casino__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-casino-text-secondary);
}

/* --- Games Section --- */
.page-casino__games-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__text-block,
.page-casino__games-section .page-casino__card-title,
.page-casino__games-section .page-casino__card-text {
    color: #333333; /* Dark text for light background */
}

.page-casino__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card {
    background-color: #f9f9f9; /* Lighter card background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- Promotions Section --- */
.page-casino__promotions-section {
    padding: 60px 0;
    background-color: var(--page-casino-background);
}

.page-casino__promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__promo-item {
    background-color: var(--page-casino-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-casino-border);
}

/* --- Security Section --- */
.page-casino__security-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
}

.page-casino__security-section .page-casino__section-title,
.page-casino__security-section .page-casino__text-block {
    color: #333333; /* Dark text for light background */
}

/* --- Registration Section --- */
.page-casino__registration-section {
    padding: 60px 0;
    background-color: var(--page-casino-background);
}

.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-card {
    background-color: var(--page-casino-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-casino-border);
}

/* --- Mobile Section --- */
.page-casino__mobile-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
}

.page-casino__mobile-section .page-casino__section-title,
.page-casino__mobile-section .page-casino__text-block,
.page-casino__mobile-section .page-casino__list-item {
    color: #333333; /* Dark text for light background */
}

.page-casino__mobile-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-casino__mobile-content {
    flex: 1;
    min-width: 300px;
}

.page-casino__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-casino__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-casino__mobile-benefits {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-casino__mobile-benefits .page-casino__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #333333;
}

.page-casino__mobile-benefits .page-casino__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
}

/* --- Support Section --- */
.page-casino__support-section {
    padding: 60px 0;
    background-color: var(--page-casino-background);
}

/* --- FAQ Section --- */
.page-casino__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
}

.page-casino__faq-section .page-casino__section-title,
.page-casino__faq-section .page-casino__text-block {
    color: #333333; /* Dark text for light background */
}

.page-casino__faq-list {
    margin-top: 40px;
}

.page-casino__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

.page-casino__faq-item summary {
    list-style: none;
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-casino__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--page-casino-deep-green);
    transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
}

/* --- Conclusion Section --- */
.page-casino__conclusion-section {
    padding: 60px 0;
    background-color: var(--page-casino-background);
}

/* --- Global Image/Video/Button Responsive Rules --- */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-casino video,
.page-casino__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-casino__video-section,
.page-casino__video-container,
.page-casino__video-wrapper,
.page-casino__section,
.page-casino__card,
.page-casino__container,
.page-casino__cta-buttons,
.page-casino__button-group,
.page-casino__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-casino {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-casino__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-casino__main-title {
        font-size: 2.5em;
    }

    .page-casino__hero-section {
        padding: 10px 15px 40px;
        min-height: 400px;
    }

    .page-casino__hero-description {
        font-size: 1.1em;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-casino__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-casino__video-section {
        padding-top: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__game-categories,
    .page-casino__features-grid,
    .page-casino__promo-list,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-casino__mobile-flex {
        flex-direction: column;
        gap: 30px;
    }
}