/* style/casino.css */

/* --- Base Styles --- */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly setting for clarity, though shared.css might set body */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Color Schemes --- */
.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__card-title,
.page-casino__dark-bg .page-casino__promo-title,
.page-casino__dark-bg .page-casino__faq-qtext {
    color: #ffffff; /* Ensure titles are white on dark background */
}

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary,
.page-casino__card-link,
.page-casino__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* For long button texts */
}

.page-casino__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #C30808; /* Custom color for register/login */
    border: 2px solid #C30808;
}

.page-casino__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}

.page-casino__btn-tertiary {
    background-color: #017439; /* Brand primary */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-casino__btn-tertiary:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

.page-casino__card-link {
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-casino__card-link:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

.page-casino__btn-link {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-casino__btn-link:hover {
    background-color: #ffffff;
    color: #017439;
}


/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height, will be under header if body isn't padded */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
    padding-top: var(--header-offset, 120px); /* Push content down to avoid header overlay */
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* --- About Section --- */
.page-casino__about-section {
    padding: 80px 0;
}

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

.page-casino__image-item {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Games Section --- */
.page-casino__games-section {
    padding: 80px 0;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-casino__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- How To Play Section --- */
.page-casino__how-to-play-section {
    padding: 80px 0;
}

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

.page-casino__step-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__how-to-play-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* --- Promotions Section --- */
.page-casino__promotions-section {
    padding: 80px 0;
}

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

.page-casino__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-casino__promo-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__promotions-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* --- Safety Section --- */
.page-casino__safety-section {
    padding: 80px 0;
}

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

.page-casino__feature-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__feature-description {
    font-size: 1em;
    color: #555555;
}

.page-casino__safety-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* --- FAQ Section --- */
.page-casino__faq-section {
    padding: 80px 0;
}

.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none; /* Hide default marker */
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-casino__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00; /* Custom color for toggle */
}

.page-casino__faq-answer {
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
    font-size: 1em;
    text-align: left;
}

/* --- CTA Section --- */
.page-casino__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}


/* --- Image Responsiveness (General) --- */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-casino__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__hero-section {
        height: 70vh; /* Adjust height for mobile hero */
    }

    .page-casino__hero-content {
        padding-top: var(--header-offset, 120px) !important; /* Ensure correct header offset */
    }

    .page-casino__hero-title {
        font-size: 2em;
    }

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .page-casino__card-link,
    .page-casino__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }

    .page-casino__text-block {
        font-size: 1em;
    }

    .page-casino__game-cards,
    .page-casino__steps,
    .page-casino__promo-grid,
    .page-casino__safety-features,
    .page-casino__image-grid {
        grid-template-columns: 1fr; /* Stack cards/items vertically */
        gap: 20px;
    }

    /* Enforce image responsiveness for all images within .page-casino */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that might hold images/videos/buttons must be responsive */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__game-card,
    .page-casino__step-item,
    .page-casino__promo-card,
    .page-casino__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content inside sections/cards */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* FAQ specific adjustments */
    .page-casino__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-casino__faq-answer {
        padding: 15px 20px;
    }
}