/* style/casino.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --background-color: #F4F7FB;
    --card-background-color: #FFFFFF;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.page-casino__section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-casino__section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-casino__section-description {
    font-size: 18px;
    color: var(--text-main-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-casino__card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
}

.page-casino__btn-secondary {
    background: var(--card-background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* HERO Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, main offset handled by body in shared.css */
    background-color: var(--background-color);
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-casino__main-title {
    font-size: clamp(32px, 4vw, 52px);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 20px;
    color: var(--text-main-color);
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Why Choose Section */
.page-casino__why-choose .page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__why-choose .page-casino__feature-item {
    text-align: center;
}

.page-casino__why-choose .page-casino__feature-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-casino__why-choose .page-casino__feature-item p {
    font-size: 16px;
    color: var(--text-main-color);
}

/* Games Overview Section */
.page-casino__games-overview .page-casino__game-category {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.page-casino__games-overview .page-casino__game-category:last-child {
    margin-bottom: 0;
}

.page-casino__games-overview .page-casino__game-category--reversed {
    flex-direction: row-reverse;
}

.page-casino__games-overview .page-casino__game-image {
    flex: 1;
    min-width: 300px;
}

.page-casino__games-overview .page-casino__game-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__games-overview .page-casino__game-content {
    flex: 1;
    min-width: 300px;
}

.page-casino__games-overview .page-casino__game-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-casino__games-overview .page-casino__game-content p {
    font-size: 17px;
    color: var(--text-main-color);
    margin-bottom: 25px;
}

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

.page-casino__promotions .page-casino__promo-card {
    text-align: center;
    padding: 20px;
}

.page-casino__promotions .page-casino__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__promotions .page-casino__promo-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-casino__promotions .page-casino__promo-card p {
    font-size: 16px;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

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

/* Get Started Section */
.page-casino__get-started .page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__get-started .page-casino__step-item {
    text-align: center;
}

.page-casino__get-started .page-casino__step-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-casino__get-started .page-casino__step-item p {
    font-size: 16px;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

/* Security & Support Section */
.page-casino__security-support .page-casino__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__security-support .page-casino__security-item {
    text-align: center;
}

.page-casino__security-support .page-casino__security-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__security-support .page-casino__security-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-casino__security-support .page-casino__security-item p {
    font-size: 16px;
    color: var(--text-main-color);
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: var(--card-background-color);
}

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

details.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-background-color);
}

details.page-casino__faq-item summary.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

details.page-casino__faq-item summary.page-casino__faq-question:hover {
    background: #f5f5f5;
}

.page-casino__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-casino__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    color: var(--text-main-color);
}

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

/* Final CTA Section */
.page-casino__final-cta {
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-casino__final-cta .page-casino__section-title,
.page-casino__final-cta .page-casino__section-description {
    color: #ffffff;
}

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

/* Dark section specific */
.page-casino__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-casino__dark-section .page-casino__section-title {
    color: #ffffff;
}

.page-casino__dark-section .page-casino__section-description {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__games-overview .page-casino__game-category {
        flex-direction: column;
        text-align: center;
    }

    .page-casino__games-overview .page-casino__game-category--reversed {
        flex-direction: column;
    }

    .page-casino__games-overview .page-casino__game-content {
        order: 2;
    }

    .page-casino__games-overview .page-casino__game-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-casino__section {
        padding: 40px 15px;
    }

    .page-casino__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__hero-image img,
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-container,
    .page-casino__game-category,
    .page-casino__promos-grid,
    .page-casino__steps-grid,
    .page-casino__security-grid,
    .page-casino__faq-list,
    .page-casino__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__main-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .page-casino__hero-description {
        font-size: 16px;
    }

    .page-casino__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }

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

    .page-casino__cta-button,
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
    }

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

    .page-casino__games-overview .page-casino__game-image,
    .page-casino__games-overview .page-casino__game-content {
        min-width: unset;
        width: 100%;
    }

    details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
    .page-casino__faq-qtext { font-size: 15px; }
    .page-casino__faq-answer { padding: 0 15px 15px; }

    .page-casino__final-cta {
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-image img {
        border-radius: 4px;
    }

    .page-casino__card {
        padding: 20px;
    }

    .page-casino__promotions .page-casino__promo-card img {
        
    }
}