/* style/casino.css */

/* Base styles for the casino page content */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared, but explicit for clarity */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #26A9E0; /* Fallback color, image should cover */
}

.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);
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-casino__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-casino__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* General Section Styles */
.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-casino__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Light text for dark body */
}

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

.page-casino__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for sections */
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #242424; /* Darker than light, but distinct from deep dark */
    color: #ffffff;
}

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

.page-casino__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* About Section */
.page-casino__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-casino__game-grid {
    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.08); /* Slightly transparent white on dark */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-casino__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-casino__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-casino__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-casino__game-title a:hover {
    text-decoration: underline;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
}

/* Promotions Section */
.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.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-casino__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-casino__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-casino__promo-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
}

/* Why Choose Section */
.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-casino__feature-icon {
    width: 200px; /* Min size requirement */
    height: 200px; /* Min size requirement */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-casino__feature-description {
    font-size: 0.9em;
    color: #f0f0f0;
}

/* Video Section */
.page-casino__video-section {
    background-color: #242424;
    color: #ffffff;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 960px; /* Max width for video */
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__video-wrapper .page-casino__video,
.page-casino__video-wrapper .page-casino__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

.page-casino__video-link {
    cursor: pointer;
}

.page-casino__video-cta {
    margin-top: 30px;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-casino__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px 25px;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-casino__cta-final-section {
    background-color: #242424;
    color: #ffffff;
}

.page-casino__cta-content {
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-casino__hero-title {
        font-size: 2em;
    }

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        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__section-title {
        font-size: 1.8em;
    }

    .page-casino__section-text {
        font-size: 0.95em;
        margin: 0 auto 30px auto;
    }

    .page-casino__container {
        padding: 40px 15px;
    }

    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-image,
    .page-casino__promo-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-casino__image-content {
        margin: 30px auto;
    }

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

    /* Video responsiveness */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Ensure all content containers are constrained */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-item,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__faq-question,
    .page-casino__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}