/* style/casino.css */

/* Base styles for the casino page */
.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 */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Use brand color gradient */
    color: #ffffff;
}

.page-casino__dark-bg {
    background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Darker background for sections */
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #f8f8f8; /* Lighter background for sections */
    color: #333333;
}

.page-casino__hero-content {
    max-width: 800px;
    z-index: 2;
}

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

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

.page-casino__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* General Section Styling */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-casino__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__light-bg .page-casino__section-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-casino__dark-bg .page-casino__section-title {
    color: #ffffff; /* White for titles on dark background */
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* 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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-casino__light-bg .page-casino__btn-secondary {
    color: #26A9E0;
    border-color: #26A9E0;
}

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

.page-casino__btn-text-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-casino__btn-text-link:hover {
    color: #1a7bb0;
    text-decoration: underline;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
}

.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: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    color: #333333; /* Dark text for light card background */
}

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

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

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

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

.page-casino__game-text {
    font-size: 1em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promo-section {
    padding: 80px 0;
}

.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.1); /* Semi-transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-casino__promo-title a {
    color: #ffffff;
    text-decoration: none;
}

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

.page-casino__promo-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* How-To-Play Section */
.page-casino__how-to-play-section {
    padding: 80px 0;
}

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

.page-casino__step-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    color: #333333;
}

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

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

.page-casino__step-text {
    font-size: 1em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Features Section */
.page-casino__features-section {
    padding: 80px 0;
}

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

.page-casino__feature-item {
    text-align: center;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon {
    width: 100px; /* Larger icon size */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-casino__feature-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
}

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

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

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

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

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

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

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus sign */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for collapsed state */
    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: 20px 25px; /* Padding for expanded state */
}

.page-casino__faq-answer p {
    margin: 0;
    color: #555555;
}

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-casino__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* 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 {
        padding: 80px 20px;
    }
    .page-casino__games-grid,
    .page-casino__promo-grid,
    .page-casino__steps-grid,
    .page-casino__features-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        min-height: 500px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        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 {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-casino__games-grid,
    .page-casino__promo-grid,
    .page-casino__steps-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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__faq-question {
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__hero-section {
        min-height: 400px;
    }
}