/* style/casino.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a;
    --bg-light: #f5f5f5;
    --btn-login: #EA7C07;
}

.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default to light text on dark body background */
    background-color: var(--bg-dark); /* Inherited from shared.css body */
}

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

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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    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.7);
    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: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styles */
.page-casino__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-casino__intro-section, 
.page-casino__advantages-section, 
.page-casino__promotions-section, 
.page-casino__faq-section {
    padding: 80px 0;
}

.page-casino__games-section, 
.page-casino__guide-section, 
.page-casino__video-section, 
.page-casino__conclusion-section {
    padding: 80px 0;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

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

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

.page-casino__btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

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

.page-casino__btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
    color: var(--btn-login); /* Use login color for hover, for example */
}

/* Games Grid */
.page-casino__games-grid,
.page-casino__advantages-grid,
.page-casino__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card, 
.page-casino__advantage-item, 
.page-casino__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-casino__light-bg .page-casino__game-card,
.page-casino__light-bg .page-casino__advantage-item,
.page-casino__light-bg .page-casino__promo-card {
    background: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-casino__game-card:hover, 
.page-casino__advantage-item:hover, 
.page-casino__promo-card:hover {
    transform: translateY(-10px);
}

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

.page-casino__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 15px;
    color: var(--primary-color);
}

.page-casino__card-link {
    color: inherit;
    text-decoration: none;
}

.page-casino__card-link:hover {
    text-decoration: underline;
}

.page-casino__card-description {
    font-size: 0.95em;
    color: inherit;
    padding: 0 15px;
    margin-bottom: 15px;
}

/* Advantages Section */
.page-casino__advantage-title {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
    padding: 0 15px;
}

.page-casino__advantage-description {
    font-size: 0.95em;
    color: inherit;
    padding: 0 15px;
}

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

.page-casino__step-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-casino__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-casino__step-description {
    font-size: 1em;
    color: var(--text-light);
}

.page-casino__guide-cta {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-casino__promotions-cta {
    text-align: center;
    margin-top: 50px;
}

/* Video Section */
.page-casino__video-section {
    text-align: center;
}

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

.page-casino__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    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;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

.page-casino__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Conclusion Section */
.page-casino__conclusion-section {
    text-align: center;
}

.page-casino__conclusion-cta {
    margin-top: 40px;
}

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

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        height: 60vh;
        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 {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-casino__intro-section, 
    .page-casino__advantages-section, 
    .page-casino__promotions-section, 
    .page-casino__faq-section, 
    .page-casino__games-section, 
    .page-casino__guide-section, 
    .page-casino__video-section, 
    .page-casino__conclusion-section {
        padding: 60px 0;
    }
    .page-casino__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-casino__games-grid, 
    .page-casino__advantages-grid, 
    .page-casino__promotions-grid, 
    .page-casino__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__card-image, 
    .page-casino__hero-image, 
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-casino__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 10px 20px;
    }
}

@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.5em;
    }
    .page-casino__btn-primary, .page-casino__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-casino__faq-question {
        font-size: 1em;
    }
}