/* style/casino.css */
:root {
    --bon68-primary: #11A84E;
    --bon68-secondary: #22C768;
    --bon68-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bon68-card-bg: #11271B;
    --bon68-background: #08160F;
    --bon68-text-main: #F2FFF6;
    --bon68-text-secondary: #A7D9B8;
    --bon68-border: #2E7A4E;
    --bon68-glow: #57E38D;
    --bon68-gold: #F2C14E;
    --bon68-divider: #1E3A2A;
    --bon68-deep-green: #0A4B2C;
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--bon68-text-main); /* Default text color for dark background */
    background-color: var(--bon68-background);
}

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

.page-casino__dark-bg {
    background-color: var(--bon68-background);
    padding: 60px 0;
}

.page-casino__card-bg {
    background-color: var(--bon68-card-bg);
    border: 1px solid var(--bon68-border);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__text-main {
    color: var(--bon68-text-main);
}

.page-casino__text-secondary {
    color: var(--bon68-text-secondary);
}

.page-casino__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background: var(--bon68-btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bon68-glow), 0.4);
}

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

.page-casino__btn-secondary:hover {
    background-color: rgba(var(--bon68-primary), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bon68-primary), 0.2);
}

.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;
    justify-content: center;
    padding: 10px 0 80px;
    overflow: hidden;
    background-color: var(--bon68-background);
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

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

.page-casino__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-casino__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
    font-weight: 800;
    color: var(--bon68-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(var(--bon68-glow), 0.5);
}

.page-casino__hero-description {
    font-size: 1.2em;
    color: var(--bon68-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* Video Section */
.page-casino__video-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--bon68-deep-green);
}

.page-casino__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-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-casino__video-link {
    display: block;
    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;
    border-radius: 10px;
    cursor: pointer;
}

.page-casino__video-cta {
    margin-top: 30px;
}

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

.page-casino__feature-card {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--bon68-glow), 0.3);
}

.page-casino__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-casino__card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-casino__card-text {
    font-size: 0.95em;
    line-height: 1.7;
}

/* Games Section */
.page-casino__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card {
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--bon68-gold), 0.3);
}

.page-casino__game-thumbnail {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-casino__game-card .page-casino__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
    max-width: 200px;
}

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

.page-casino__promo-card {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--bon68-glow), 0.3);
}

.page-casino__promo-thumbnail {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-casino__step-card {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__step-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-casino__step-card .page-casino__btn-secondary {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--bon68-deep-green);
}

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

.page-casino__faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

.page-casino__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--bon68-text-main);
    background-color: var(--bon68-card-bg);
    border-bottom: 1px solid var(--bon68-divider);
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-item summary:hover {
    background-color: var(--bon68-deep-green);
}

.page-casino__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
}

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

.page-casino__faq-answer {
    padding: 20px 25px;
    background-color: rgba(var(--bon68-card-bg), 0.5);
    font-size: 1em;
    line-height: 1.6;
    color: var(--bon68-text-secondary);
}

.page-casino__faq-answer p {
    margin: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__hero-image-wrapper {
        max-height: 500px;
    }
}

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

    .page-casino__content-container {
        padding: 0 15px;
    }

    .page-casino__dark-bg {
        padding: 40px 0;
    }

    .page-casino__hero-section {
        padding-top: 10px;
        padding-bottom: 60px;
    }

    .page-casino__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 30px;
    }

    .page-casino__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        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;
    }

    /* Images responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__hero-image-wrapper,
    .page-casino__feature-card,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__step-card,
    .page-casino__content-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-casino__feature-icon,
    .page-casino__game-thumbnail,
    .page-casino__promo-thumbnail,
    .page-casino__step-icon {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Videos responsive */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-casino__video-section {
        padding-top: 10px !important;
    }

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

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

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

    .page-casino__card-title {
        font-size: 1.2em;
    }

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

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