/* style/casino.css */

/* Base styles for the casino page */
.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: 20px;
    font-weight: bold;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-casino__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

/* 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 */
    box-sizing: border-box;
}

.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-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

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

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow for register/login font */
    border: 2px solid #C30808;
}

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

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

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

.page-casino__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

/* Intro Section */
.page-casino__intro-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background for this section */
}

.page-casino__intro-section .page-casino__section-title,
.page-casino__intro-section .page-casino__section-description {
    color: #ffffff;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-casino__game-card-title {
    font-size: 1.4em;
    color: #ffffff;
    margin: 0 15px 10px 15px;
    font-weight: bold;
}

.page-casino__game-card-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-casino__game-card-title a:hover {
    text-decoration: underline;
}

.page-casino__game-card-description {
    font-size: 0.95em;
    color: #e0e0e0;
    padding: 0 15px;
    flex-grow: 1;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-casino__advantages-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__advantages-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__advantages-item p {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 0;
}

.page-casino__security-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 60px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Download Guide Section */
.page-casino__download-guide-section {
    padding: 80px 0;
    background-color: #017439;
}

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

.page-casino__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-casino__step-item p {
    color: #e0e0e0;
    font-size: 1em;
}

.page-casino__step-item a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-casino__step-item a:hover {
    color: #ffffff;
}

.page-casino__guide-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 60px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-casino__promotions-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__promotions-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__promotions-item p {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 0;
}

/* Security Gaming Section */
.page-casino__security-gaming-section {
    padding: 80px 0;
    background-color: #017439;
}

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

.page-casino__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__security-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__security-item p {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 0;
}

.page-casino__security-item a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-casino__security-item a:hover {
    color: #ffffff;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-casino__faq-list {
    margin-top: 50px;
}

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-casino__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-casino__faq-answer p {
    color: #e0e0e0;
    font-size: 1em;
    padding-bottom: 15px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg);
    color: #C30808;
}

.page-casino__faq-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 60px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Final CTA Section */
.page-casino__cta-final-section {
    padding: 80px 0;
    background-color: #017439;
    text-align: center;
}

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

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

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

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

    .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: 15px;
    }

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

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

    .page-casino__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-casino__game-grid,
    .page-casino__advantages-list,
    .page-casino__guide-steps,
    .page-casino__promotions-list,
    .page-casino__security-list {
        grid-template-columns: 1fr;
    }

    .page-casino__game-card,
    .page-casino__advantages-item,
    .page-casino__step-item,
    .page-casino__promotions-item,
    .page-casino__security-item,
    .page-casino__faq-item {
        padding: 20px;
    }

    .page-casino__game-card-title,
    .page-casino__advantages-title,
    .page-casino__step-title,
    .page-casino__promotions-title,
    .page-casino__security-title {
        font-size: 1.3em;
    }

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

    .page-casino__faq-question h3 {
        font-size: 1.1em;
    }

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

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

    /* Ensure images/videos/containers don't overflow */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino video,
    .page-casino__video {
        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,
    .page-casino__advantages-item,
    .page-casino__step-item,
    .page-casino__promotions-item,
    .page-casino__security-item,
    .page-casino__faq-item,
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__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;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-casino__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .page-casino__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

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

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        font-size: 0.95em;
    }
}