/* style/casino.css */

/* --- Base Styles --- */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Main text color */
    background-color: var(--background, #08160F); /* Main background color */
}

/* --- Section Styling --- */
.page-casino__section {
    padding: 60px 20px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.page-casino__dark-section {
    background-color: var(--background, #08160F);
    color: var(--text-main, #F2FFF6);
}

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

.page-casino__section-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--gold, #F2C14E); /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-casino__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-casino__content-area p {
    margin-bottom: 15px;
    color: var(--text-secondary, #A7D9B8); /* Secondary text color for paragraphs */
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 600px;
    background-color: var(--background, #08160F);
}

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

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

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay to darken image */
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-main, #F2FFF6);
    max-width: 900px;
    padding-top: 40px;
}

.page-casino__main-title {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--gold, #F2C14E);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-casino__subtitle {
    font-size: 1.25em;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--gold, #F2C14E);
    border: 2px solid var(--gold, #F2C14E);
}

.page-casino__btn-secondary:hover {
    background: var(--gold, #F2C14E);
    color: var(--background, #08160F);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Games Section --- */
.page-casino__games-section {
    background-color: var(--card-bg, #11271B);
}

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

.page-casino__game-card {
    background-color: var(--background, #08160F);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border: 1px solid var(--border, #2E7A4E);
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-casino__game-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    margin: 0 20px 10px;
}

.page-casino__game-description {
    color: var(--text-secondary, #A7D9B8);
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
    margin: 0 20px;
    width: calc(100% - 40px);
}

/* --- FAQ Section --- */
.page-casino__faq-list {
    margin-top: 30px;
}

.page-casino__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-casino__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--text-main, #F2FFF6);
    background-color: var(--deep-green, #0A4B2C);
}

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

.page-casino__faq-qtext {
    flex-grow: 1;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

.page-casino__faq-answer {
    padding: 20px;
    padding-top: 0;
    color: var(--text-secondary, #A7D9B8);
    border-top: 1px solid var(--divider, #1E3A2A);
}

.page-casino__faq-item[open] .page-casino__faq-answer {
    padding-top: 20px;
}

/* --- General Content Area Styling --- */
.page-casino__content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    .page-casino__section {
        padding: 40px 15px;
    }

    .page-casino__hero-section {
        padding-bottom: 40px;
        min-height: 400px;
    }

    .page-casino__main-title {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        margin-bottom: 15px;
    }

    .page-casino__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-casino__sub-title {
        font-size: 1.4em;
    }

    /* Images responsiveness */
    .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,
    .page-casino__game-card {
        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: 10px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-casino__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

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