/* style/casino.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #0d0d0d; /* Assuming a dark background from shared.css for contrast */
    --login-button-color: #EA7C07;
}

/* Base styles for the page-casino scope */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default to dark text on light backgrounds */
    background-color: var(--background-light);
}

.page-casino__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-casino__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.page-casino__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
    line-height: 1.2;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.page-casino__section-description--small {
    font-size: 0.95em;
    margin-top: 20px;
    margin-bottom: 0;
}

.page-casino__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
    color: inherit;
}

.page-casino__card-text {
    font-size: 1em;
    line-height: 1.5;
    color: inherit;
}

.page-casino__list-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: inherit;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-casino__btn-text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-casino__btn-text-link:hover {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* body handles top padding, add small for aesthetic */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-casino__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px; /* Space between image and text */
    color: var(--text-light);
}

.page-casino__main-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    /* Using clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-casino__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Introduction Section */
.page-casino__introduction-section {
    padding: 60px 0;
}

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

.page-casino__feature-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
    min-height: 400px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__feature-card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-casino__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__game-card .page-casino__card-title,
.page-casino__game-card .page-casino__card-text,
.page-casino__game-card .page-casino__btn-text-link {
    padding: 0 20px;
}

.page-casino__game-card .page-casino__card-title {
    margin-top: 20px;
}

.page-casino__game-card .page-casino__card-text {
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-casino__game-card .page-casino__btn-text-link {
    margin-bottom: 20px;
}

/* Live Casino Section */
.page-casino__live-casino-section {
    padding: 60px 0;
}

.page-casino__live-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-casino__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__promo-card .page-casino__card-title,
.page-casino__promo-card .page-casino__card-text,
.page-casino__promo-card .page-casino__btn-primary {
    padding: 0 20px;
}

.page-casino__promo-card .page-casino__card-title {
    margin-top: 20px;
}

.page-casino__promo-card .page-casino__card-text {
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-casino__promo-card .page-casino__btn-primary {
    margin-bottom: 20px;
}

/* Security Section */
.page-casino__security-section {
    padding: 60px 0;
}

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

.page-casino__security-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    color: var(--text-dark);
}

/* Guide Section */
.page-casino__guide-section {
    padding: 60px 0;
}

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

.page-casino__guide-step {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 2em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.page-casino__step-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-casino__step-text {
    flex-grow: 1;
    margin-bottom: 15px;
}

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

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

.page-casino__faq-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    color: var(--text-dark);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

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

.page-casino__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

.page-casino__faq-answer p {
    margin-bottom: 10px;
}

.page-casino__faq-answer .page-casino__btn-text-link {
    margin-top: 5px;
}

/* Conclusion Section */
.page-casino__conclusion-section {
    padding: 60px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__hero-image-wrapper {
        max-height: 500px;
    }
    .page-casino__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-casino__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-casino__hero-image-wrapper {
        max-height: 400px;
    }
    .page-casino__hero-content {
        margin-top: 20px;
        padding: 20px 15px;
    }
    .page-casino__main-title {
        font-size: clamp(1.8em, 6vw, 2.8em);
    }
    .page-casino__hero-description {
        font-size: 1em;
    }

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

    .page-casino__feature-grid, .page-casino__game-grid, .page-casino__promo-grid, .page-casino__security-list, .page-casino__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__feature-card, .page-casino__game-card, .page-casino__promo-card, .page-casino__security-item, .page-casino__guide-step {
        padding: 20px;
    }
    
    .page-casino__feature-image {
        height: 180px;
    }
    .page-casino__game-image, .page-casino__promo-image {
        height: 180px;
    }

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

    .page-casino__btn-primary, .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-casino__live-video-wrapper {
        padding-bottom: 75%; /* 4:3 Aspect Ratio or adjust as needed for mobile */
    }

    /* Ensure all images are responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers for images/videos/buttons */
    .page-casino__section, .page-casino__card, .page-casino__container,
    .page-casino__hero-section, .page-casino__introduction-section, .page-casino__games-section,
    .page-casino__live-casino-section, .page-casino__promotions-section, .page-casino__security-section,
    .page-casino__guide-section, .page-casino__faq-section, .page-casino__conclusion-section,
    .page-casino__hero-image-wrapper, .page-casino__live-video-wrapper, .page-casino__cta-buttons,
    .page-casino__button-group, .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-casino__video-section {
        padding-top: 10px !important;
    }

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