/* style/casino.css */

/* Base Styles for .page-casino - ensure light text on assumed dark body background */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-casino__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.page-casino__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-casino__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
    padding: 20px;
    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: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    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;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    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;
    box-sizing: border-box;
    max-width: 100%;
    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: #1a7fb4;
    border-color: #1a7fb4;
}

.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__btn-tertiary {
    background-color: #EA7C07; /* Login color for specific CTAs */
    color: #ffffff;
    border: 2px solid #EA7C07;
    font-size: 0.9em;
    padding: 10px 20px;
    margin-top: 20px;
}

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

/* Features Section */
.page-casino__why-choose-us {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-10px);
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px; /* Ensure images are not tiny icons */
}

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

/* Popular Games Section */
.page-casino__popular-games {
    background-color: transparent;
}

.page-casino__games-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.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

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

.page-casino__game-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin: 20px 0 10px;
}

.page-casino__game-card p {
    padding: 0 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Live Casino Experience */
.page-casino__live-casino-experience {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

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

.page-casino__promotion-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.2);
    transition: transform 0.3s ease;
}

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

.page-casino__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-casino__promotion-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin: 20px 0 10px;
    padding: 0 20px;
}

.page-casino__promotion-card p {
    padding: 0 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Security Section */
.page-casino__security-section {
    background-color: transparent;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: #f0f0f0;
}

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

.page-casino__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-casino__final-cta {
    background-color: #26A9E0; /* Brand color background for strong CTA */
    color: #ffffff;
    padding: 80px 20px;
}

.page-casino__final-cta .page-casino__section-title {
    color: #ffffff;
    text-shadow: none;
}

.page-casino__final-cta .page-casino__description {
    color: #f0f0f0;
    font-size: 1.2em;
}

.page-casino__final-cta .page-casino__btn-primary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

.page-casino__final-cta .page-casino__btn-primary:hover {
    background-color: #f0f0f0;
    color: #1a7fb4;
    border-color: #f0f0f0;
}

.page-casino__final-cta .page-casino__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

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


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

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-casino__hero-section {
        height: 60vh;
    }

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

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

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

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    
    .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,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__feature-item,
    .page-casino__game-card,
    .page-casino__promotion-card {
        padding: 20px;
    }

    .page-casino__game-image,
    .page-casino__promotion-image {
        height: auto; /* Allow height to adjust naturally */
    }

    .page-casino__final-cta {
        padding: 60px 15px;
    }

    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

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

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

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