/* style/casino.css */

/* Base Styles */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.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: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-casino__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 60px;
}

.page-casino__text-block {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-casino__dark-bg {
    background-color: #1a1a1a; /* Consistent with body background type */
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #2a2a2a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-register {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

.page-casino__btn-register {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register text */
    border: 2px solid #C30808;
}

.page-casino__btn-register:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-casino__hero-section .page-casino__container {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

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

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
}

/* Game Types Section */
.page-casino__game-types {
    padding: 80px 0;
}

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

.page-casino__game-card {
    background-color: #2a2a2a; /* Card background for dark section */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    color: #ffffff;
}

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

.page-casino__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-casino__game-description {
    padding: 0 15px;
    font-size: 0.95em;
    color: #f0f0f0;
}

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

.page-casino__live-casino-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-casino__live-casino-text {
    flex: 1;
}

.page-casino__live-casino-text .page-casino__text-block {
    color: #ffffff;
}

.page-casino__live-casino-video-wrapper {
    flex: 1;
    min-width: 50%;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__video {
    display: block;
    width: 100%;
    height: auto;
}

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

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

.page-casino__promotion-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    color: #ffffff;
}

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

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

.page-casino__promotion-description {
    padding: 0 15px;
    font-size: 0.95em;
    color: #f0f0f0;
}

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

.page-casino__security-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-casino__security-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__security-text {
    flex: 1;
}

.page-casino__security-text .page-casino__text-block {
    color: #ffffff;
}

/* Support Section */
.page-casino__support-section {
    padding: 80px 0;
}

.page-casino__support-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
}

.page-casino__support-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-casino__support-list i {
    color: #017439;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Register Section */
.page-casino__register-section {
    padding: 80px 0;
}

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

.page-casino__step-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-casino__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-casino__step-description {
    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: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-casino__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #017439;
}

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

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    content: '−';
}

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

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

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

    .page-casino__live-casino-content,
    .page-casino__security-content {
        flex-direction: column;
    }

    .page-casino__security-image {
        max-width: 100%;
    }

    .page-casino__live-casino-video-wrapper {
        min-width: 100%;
    }
}

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

    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino__hero-section {
        min-height: 500px;
        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-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-register {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        margin: 5px 0 !important; /* Adjust margin for stacking */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-casino__section-subtitle {
        font-size: 1.1em;
        margin-bottom: 40px;
    }

    .page-casino__game-grid,
    .page-casino__promotions-grid,
    .page-casino__register-steps {
        grid-template-columns: 1fr;
    }

    .page-casino__game-card,
    .page-casino__promotion-card,
    .page-casino__step-card {
        padding: 20px;
    }

    .page-casino__game-image,
    .page-casino__promotion-image,
    .page-casino__security-image,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video and image containers */
    .page-casino__live-casino-video-wrapper,
    .page-casino__security-content,
    .page-casino__game-grid,
    .page-casino__promotions-grid,
    .page-casino__register-steps,
    .page-casino__faq-list,
    .page-casino__hero-section .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

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

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

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