/* 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: transparent; /* Body background is handled by shared.css */
}

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

/* Sections */
.page-casino__hero-section,
.page-casino__video-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__dark-bg {
    background-color: #000000; /* Ensure sections have explicit background */
    color: #ffffff;
}

.page-casino__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #ffffff;
}

.page-casino__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-casino__dark-text {
    color: #333333;
}

.page-casino__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-casino__light-bg .page-casino__section-description {
    color: #666666;
}

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

.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;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    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: #1a8cc4;
    border-color: #1a8cc4;
}

.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;
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 10px 20px;
    font-size: 1em;
}

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

.page-casino__large-btn {
    padding: 20px 40px;
    font-size: 1.3em;
}

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

/* Video Section */
.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.page-casino__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

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

/* Game Grid / Feature Grid */
.page-casino__game-grid,
.page-casino__feature-grid,
.page-casino__promo-grid,
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-casino__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    color: #ffffff;
}

.page-casino__light-bg .page-casino__card {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-casino__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-casino__light-bg .page-casino__card-title {
    color: #26A9E0;
}

.page-casino__card-text {
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-casino__light-bg .page-casino__card-text {
    color: #666666;
}

.page-casino__card .page-casino__btn-tertiary {
    align-self: flex-start;
    margin-top: auto;
}

/* How to Play Steps */
.page-casino__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    color: #333333;
}

.page-casino__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-casino__step-text {
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
    color: #666666;
}

.page-casino__step-btn {
    margin-top: auto;
}

/* FAQ Section */
.page-casino__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.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, padding 0.3s ease;
    color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

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

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

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

    .page-casino__hero-section,
    .page-casino__video-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__how-to-play-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 60px 0;
    }
}

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

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

    .page-casino__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .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: 12px 20px;
        font-size: 1em;
    }

    .page-casino__large-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }

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

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

    /* Image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino__card-image {
        height: auto;
    }

    /* 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__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-casino__games-section,
    .page-casino__features-section,
    .page-casino__promotions-section,
    .page-casino__how-to-play-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 40px 0;
    }

    .page-casino__game-grid,
    .page-casino__feature-grid,
    .page-casino__promo-grid,
    .page-casino__steps-grid {
        gap: 20px;
    }

    .page-casino__card {
        padding: 20px;
    }

    .page-casino__card-title {
        font-size: 1.3em;
    }

    .page-casino__step-item {
        padding: 25px;
    }

    .page-casino__step-title {
        font-size: 1.2em;
    }

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

    .page-casino__faq-heading {
        font-size: 1em;
    }

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

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

    .page-casino__faq-answer p {
        font-size: 0.95em;
    }
}