/* style/casino.css */

/* --- General Page Styles --- */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Use shared background variable */
}

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

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

.page-casino__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from parent section to ensure contrast */
}

/* --- Color Contrast Classes --- */
.page-casino__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
    padding: 60px 0;
}

.page-casino__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

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

.page-casino__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

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

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

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

.page-casino__hero-buttons,
.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 30px;
    gap: 10px; /* Space between buttons */
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

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

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

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    display: block;
}

/* --- About Section --- */
.page-casino__about-section .page-casino__section-title {
    color: #26A9E0;
}

.page-casino__about-section .page-casino__text-block {
    color: #333333;
}

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

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

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

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

.page-casino__feature-item p {
    color: #555555;
}

/* --- Games Overview Section --- */
.page-casino__games-overview .page-casino__section-title,
.page-casino__games-overview .page-casino__text-block {
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-casino__game-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #ffffff;
}

.page-casino__game-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-link:hover {
    color: #EA7C07; /* Login color for hover */
}

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

/* --- Promotions Section --- */
.page-casino__promotions-section .page-casino__section-title {
    color: #26A9E0;
}

.page-casino__promotions-section .page-casino__text-block {
    color: #333333;
}

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

.page-casino__promo-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-casino__promo-title {
    font-size: 1.3em;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

.page-casino__promo-link {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__promo-link:hover {
    color: #EA7C07;
}

.page-casino__promo-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* --- Security Section --- */
.page-casino__security-section .page-casino__section-title,
.page-casino__security-section .page-casino__text-block {
    color: #ffffff;
}

.page-casino__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-casino__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
}

.page-casino__security-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-casino__security-item p {
    color: #f0f0f0;
}

/* --- Mobile Section --- */
.page-casino__mobile-section .page-casino__section-title {
    color: #26A9E0;
}

.page-casino__mobile-section .page-casino__text-block {
    color: #333333;
}

.page-casino__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-casino__mobile-text {
    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: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Payment Section --- */
.page-casino__payment-section .page-casino__section-title,
.page-casino__payment-section .page-casino__text-block {
    color: #ffffff;
}

.page-casino__payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.page-casino__payment-item {
    text-align: center;
    color: #ffffff;
    width: 200px; /* Fixed width for icons */
}

.page-casino__payment-icon {
    width: 200px; /* Enforce min size 200x200 */
    height: 200px; /* Enforce min size 200x200 */
    object-fit: contain;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- FAQ Section --- */
.page-casino__faq-section .page-casino__section-title {
    color: #26A9E0;
}

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

.page-casino__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    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: #f0f0f0;
}

.page-casino__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-casino__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

/* --- Final CTA Section --- */
.page-casino__cta-final .page-casino__section-title,
.page-casino__cta-final .page-casino__text-block {
    color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__text-block {
        font-size: 1em;
    }
    .page-casino__hero-buttons,
    .page-casino__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
    }

    /* Mobile image responsive adaptation */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__section,
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__games-overview,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__mobile-section,
    .page-casino__payment-section,
    .page-casino__faq-section,
    .page-casino__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-casino__mobile-content {
        flex-direction: column;
    }

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

    /* Buttons specific mobile */
    .page-casino__cta-button,
    .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__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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure buttons stack vertically */
    }

    /* Video specific mobile (if any videos were present) */
    .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 !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
}

/* Ensure content area images are at least 200x200px */
.page-casino__feature-icon,
.page-casino__game-image,
.page-casino__promo-image,
.page-casino__mobile-image,
.page-casino__payment-icon {
    min-width: 200px;
    min-height: 200px;
}