/* style/casino.css */

/* --- General Page Styles --- */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for assumed light body background */
    background-color: var(--bg-color); /* Inherit from shared.css */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

.page-casino__text-block {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.7;
}

.page-casino__highlight {
    color: #26A9E0; /* Highlight important keywords */
    font-weight: bold;
}

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    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;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure responsiveness */
}

.page-casino__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

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

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

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

.page-casino__btn-tertiary {
    background-color: #EA7C07; /* Login color for action buttons */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    font-size: 0.9em;
    padding: 8px 15px;
    margin-top: 10px;
}

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

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

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    color: #FFFFFF;
}

.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;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-casino__hero-cta .page-casino__btn-primary,
.page-casino__hero-cta .page-casino__btn-secondary {
    font-size: 1.1em;
    padding: 15px 35px;
}

/* --- About Section --- */
.page-casino__about-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

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

.page-casino__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-casino__game-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1; /* Allows description to take available space */
}

/* --- Video Section --- */
.page-casino__video-section {
    padding: 60px 0;
    background-color: #333333;
    color: #FFFFFF;
    text-align: center;
}

.page-casino__video-section .page-casino__section-title {
    color: #FFFFFF;
}

.page-casino__video-section .page-casino__section-description {
    color: #e0e0e0;
}

.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width for video */
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
}

.page-casino__video {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer; /* Indicate clickable */
}

.page-casino__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Above video */
    cursor: pointer;
}

/* --- Promo Section --- */
.page-casino__promo-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.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: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-casino__promo-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

/* --- Join Section --- */
.page-casino__join-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

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

.page-casino__step-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__step-title {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 10px;
}

.page-casino__step-description {
    font-size: 0.95em;
    color: #666666;
}

/* --- Benefits Section --- */
.page-casino__benefits-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-casino__benefit-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__benefit-icon {
    width: 400px; /* Actual generated image size */
    height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-casino__benefit-description {
    font-size: 0.95em;
    color: #666666;
}

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

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #f5f5f5;
}

.page-casino__faq-heading {
    font-size: 1.1em;
    color: #333333;
    margin: 0;
    font-weight: bold;
}

.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 20px; /* Keep horizontal padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-casino__faq-answer .page-casino__text-block {
    margin-bottom: 15px;
}

/* --- Contact CTA Section --- */
.page-casino__contact-cta-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
    text-align: center;
}

.page-casino__contact-cta-section .page-casino__section-title,
.page-casino__contact-cta-section .page-casino__section-description {
    color: #FFFFFF;
}

.page-casino__contact-cta-section .page-casino__btn-primary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-casino__contact-cta-section .page-casino__btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-casino__contact-cta-section .page-casino__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-casino__contact-cta-section .page-casino__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}


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

    .page-casino__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }

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

    .page-casino__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Hero Section Mobile */
    .page-casino__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
    }

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

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

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

    .page-casino__hero-cta .page-casino__btn-primary,
    .page-casino__hero-cta .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* General Image Responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images scale */
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

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

    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to video wrapper */
    }
    
    .page-casino__video-section {
      padding-top: var(--header-offset, 120px) !important; /* Video section must adjust for header */
    }

    /* General Button Responsiveness */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .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__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;
    }
    
    .page-casino__cta-center {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Ensure cta-center also has padding */
    }
    
    .page-casino__cta-center .page-casino__btn-primary,
    .page-casino__cta-center .page-casino__btn-secondary {
        margin-right: 0; /* Remove right margin for stacked buttons */
    }

    /* Card Layouts Mobile */
    .page-casino__games-grid,
    .page-casino__promo-grid,
    .page-casino__steps-grid,
    .page-casino__benefits-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    
    .page-casino__game-image,
    .page-casino__promo-image {
        height: 180px; /* Slightly smaller images on mobile */
    }

    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important; /* Adjust padding for mobile */
    }
    
    .page-casino__faq-question {
        padding: 15px;
    }
    
    .page-casino__faq-answer {
        padding: 0 15px;
    }
}