/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

/* Container for content sections */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-casino__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

/* General Text Blocks */
.page-casino__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    text-align: justify;
}

/* Cards */
.page-casino__card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #F2FFF6; /* Text Main */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__card-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-casino__card-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-casino__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Deep Green */
    border: 2px solid #2AD16F; /* Deep Green */
}

.page-casino__btn-secondary:hover {
    background: #2AD16F;
    color: #ffffff;
}

.page-casino__btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Image styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #08160F; /* Ensure dark background for the section */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.page-casino__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for consistency, adjusts with object-fit */
    border-radius: 8px;
}

.page-casino__hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.page-casino__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #F2C14E; /* Gold */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-casino__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

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

/* Advantages Section */
.page-casino__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Games Section */
.page-casino__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino__game-card {
    text-align: center;
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game cards */
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-casino__game-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
}

.page-casino__game-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures text block takes available space */
}

/* How-to-play Section */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino__step-card {
    text-align: center;
}

.page-casino__step-number {
    background: #2E7A4E; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

.page-casino__step-title {
    font-size: 1.3rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-casino__step-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Mobile Section */
.page-casino__mobile-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.page-casino__image-content {
    width: 100%;
    height: auto;
    max-width: 600px; /* Limit image size for content */
    border-radius: 8px;
}

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

.page-casino__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    color: #F2FFF6; /* Text Main */
    font-weight: 600;
    font-size: 1.1rem;
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-casino__faq-item summary::marker {
    display: none;
}

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

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    padding: 0 20px 20px;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Call to Action Section */
.page-casino__text-center {
    text-align: center;
}

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

    .page-casino__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-casino__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-casino__hero-image {
        height: auto;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-casino__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

    .page-casino__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-casino__text-block {
        font-size: 0.95rem;
    }

    .page-casino__card {
        padding: 20px;
    }

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

    .page-casino__card-text {
        font-size: 0.9rem;
    }

    .page-casino__advantages-grid,
    .page-casino__games-grid,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-image {
        height: 180px;
    }

    .page-casino__mobile-cta-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-casino__image-content {
        min-height: 200px; /* Ensure minimum size */
    }

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

    .page-casino__faq-answer {
        font-size: 0.9rem;
        padding: 0 15px 15px;
    }

    /* Mobile specific image, video, and button adaptations */
    .page-casino img,
    .page-casino video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Enforce minimum size for all images */
    }

    .page-casino__hero-image {
        min-height: 250px !important;
    }

    .page-casino__game-image {
        min-height: 150px !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__advantages-section,
    .page-casino__games-section,
    .page-casino__how-to-play-section,
    .page-casino__mobile-section,
    .page-casino__faq-section,
    .page-casino__cta-section,
    .page-casino__hero-image-wrapper,
    .page-casino__mobile-cta-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

    .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;
    }
}