/* 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 (#121212) */
}

.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;
    line-height: 1.2;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__text-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-casino__text-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    border-radius: 10px;
}

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

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

.page-casino__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Make background image subtle */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

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

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

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

.page-casino__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

.page-casino__btn-tertiary {
    background-color: #EA7C07; /* Login color for strong CTA on cards */
    color: #ffffff;
    border: 2px solid #EA7C07;
    font-size: 0.9em;
    padding: 10px 20px;
    margin-top: 15px;
}

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

.page-casino__center-button {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Introduction Section (dark background from body, so white text) */
.page-casino__introduction-section {
    padding: 60px 0;
    text-align: center;
}

.page-casino__dark-bg {
    background-color: #1a1a1a; /* Darker background for sections to contrast with body #121212 */
    color: #ffffff;
}

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

.page-casino__game-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.05); /* Semi-transparent white for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* White text on card background */
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-casino__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for card titles */
}

.page-casino__card-link {
    color: #26A9E0;
    text-decoration: none;
}

.page-casino__card-link:hover {
    text-decoration: underline;
}

.page-casino__card-description {
    font-size: 0.95em;
    color: #cccccc;
    flex-grow: 1; /* Ensures description takes available space */
}

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

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

.page-casino__list-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for list items */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-casino__list-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 60px 0;
    background-color: #0d0d0d;
}

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

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


/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 60px 0;
}

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

.page-casino__image-wrapper {
    text-align: center;
}

.page-casino__feature-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

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

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-casino__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0; /* Brand color for FAQ questions */
    list-style: none; /* Hide default marker */
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-casino__faq-item[open] .page-casino__faq-question .page-casino__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.page-casino__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #cccccc;
}

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

.page-casino__cta-content {
    background-color: rgba(38, 169, 224, 0.1); /* Light transparent brand color background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}


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

@media (max-width: 768px) {
    .page-casino__container,
    .page-casino__hero-content,
    .page-casino__game-card,
    .page-casino__list-item,
    .page-casino__card,
    .page-casino__faq-item,
    .page-casino__cta-content {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-casino__hero-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;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-casino__text-block {
        font-size: 1em;
    }

    .page-casino__game-grid,
    .page-casino__steps-list,
    .page-casino__promotion-cards,
    .page-casino__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Video responsiveness - No video in current HTML, but kept for compliance */
    .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__video-section {
        padding-top: var(--header-offset, 120px) !important; 
    }

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

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

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

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