/* style/casino.css */

/* Base styles and variables */
:root {
    --page-casino-primary-color: #017439;
    --page-casino-secondary-color: #FFFFFF;
    --page-casino-register-color: #C30808;
    --page-casino-login-color: #C30808;
    --page-casino-text-light: #FFFFFF;
    --page-casino-text-dark: #333333;
    --page-casino-text-yellow: #FFFF00;
    --page-casino-background-dark: #0a0a0a; /* Inherited from body */
    --page-casino-background-light: #FFFFFF;
}

.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-casino-text-light); /* Default text color for dark body background */
    background-color: var(--page-casino-background-dark);
}

.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: var(--page-casino-text-light);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-casino__section-description {
    text-align: center;
    font-size: 1.1em;
    color: var(--page-casino-text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-casino__hero-section .page-casino__container {
    z-index: 2;
    color: var(--page-casino-text-light);
}

.page-casino__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-casino-secondary-color);
}

.page-casino__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-casino-secondary-color);
}

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

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

.page-casino__btn-primary {
    background-color: var(--page-casino-register-color);
    color: var(--page-casino-text-yellow);
    border: 2px solid var(--page-casino-register-color);
}

.page-casino__btn-primary:hover {
    background-color: darken(var(--page-casino-register-color), 10%);
    border-color: darken(var(--page-casino-register-color), 10%);
}

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

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

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: var(--page-casino-background-light);
    color: var(--page-casino-text-dark);
}

.page-casino__about-section .page-casino__section-title {
    color: var(--page-casino-text-dark);
}

.page-casino__about-section .page-casino__section-title::after {
    background-color: var(--page-casino-primary-color);
}

.page-casino__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-casino__text-block {
    flex: 1;
    font-size: 1.1em;
}

.page-casino__text-block p {
    margin-bottom: 15px;
    color: var(--page-casino-text-dark);
}

.page-casino__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: var(--page-casino-background-dark);
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__section-description {
    color: var(--page-casino-text-light);
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-casino__card-title a {
    color: var(--page-casino-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
    color: var(--page-casino-secondary-color);
}

.page-casino__card-text {
    font-size: 1em;
    color: var(--page-casino-text-light);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: var(--page-casino-background-light);
    color: var(--page-casino-text-dark);
}

.page-casino__promotions-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-description {
    color: var(--page-casino-text-dark);
}

.page-casino__promotions-section .page-casino__section-title::after {
    background-color: var(--page-casino-primary-color);
}

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

.page-casino__promo-card {
    background-color: var(--page-casino-background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-card .page-casino__card-image {
    height: 250px;
}

.page-casino__promo-card .page-casino__card-title a {
    color: var(--page-casino-primary-color);
}

.page-casino__promo-card .page-casino__card-text {
    color: var(--page-casino-text-dark);
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
    background-color: var(--page-casino-primary-color);
    color: var(--page-casino-secondary-color);
    border-color: var(--page-casino-primary-color);
}

.page-casino__promo-card .page-casino__btn-primary:hover {
    background-color: darken(var(--page-casino-primary-color), 10%);
    border-color: darken(var(--page-casino-primary-color), 10%);
}

/* Security Section */
.page-casino__security-section {
    padding: 80px 0;
    background-color: var(--page-casino-primary-color);
    color: var(--page-casino-text-light);
}

.page-casino__security-section .page-casino__section-title,
.page-casino__security-section .page-casino__section-description {
    color: var(--page-casino-text-light);
}

.page-casino__security-section .page-casino__section-title::after {
    background-color: var(--page-casino-secondary-color);
}

.page-casino__feature-list {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.page-casino__feature-item {
    flex-basis: calc(33% - 20px);
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Ensures icon is white on dark background */
}

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

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

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: var(--page-casino-background-light);
    color: var(--page-casino-text-dark);
}

.page-casino__faq-section .page-casino__section-title {
    color: var(--page-casino-text-dark);
}

.page-casino__faq-section .page-casino__section-title::after {
    background-color: var(--page-casino-primary-color);
}

.page-casino__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.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(--page-casino-text-dark);
    cursor: pointer;
    background-color: #eee;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--page-casino-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-answer p {
    margin: 0;
    color: var(--page-casino-text-dark);
}

/* Bottom CTA Section */
.page-casino__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--page-casino-background-dark);
    text-align: center;
}

.page-casino__cta-bottom-section .page-casino__section-title,
.page-casino__cta-bottom-section .page-casino__section-description {
    color: var(--page-casino-text-light);
}

.page-casino__cta-bottom-section .page-casino__section-title::after {
    background-color: var(--page-casino-primary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__content-grid {
        flex-direction: column;
    }
    .page-casino__feature-item {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .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;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-description {
        font-size: 0.95em;
    }
    .page-casino__content-grid {
        gap: 20px;
    }
    .page-casino__game-grid,
    .page-casino__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__feature-item {
        flex-basis: 100%;
    }
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__faq-section,
    .page-casino__cta-bottom-section {
        padding: 40px 0 !important;
    }
    .page-casino__container {
        padding: 0 15px !important;
    }
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    /* Ensure content area images are not smaller than 200px (though max-width:100% will handle it) */
    .page-casino__about-section img, .page-casino__games-section img, .page-casino__promotions-section img, .page-casino__security-section img {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Ensure all images maintain aspect ratio and don't get tiny */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-casino__feature-icon {
    /* Re-evaluate if filter is needed for icons or if they are already white */
    filter: none; /* Remove filter for general images, if icons are meant to be white, they should be provided white */
}

/* Color contrast fixes for specific elements if needed */
.page-casino__about-section p, .page-casino__about-section h2, .page-casino__about-section h3,
.page-casino__promotions-section p, .page-casino__promotions-section h2, .page-casino__promotions-section h3,
.page-casino__faq-section p, .page-casino__faq-section h2, .page-casino__faq-section h3,
.page-casino__faq-question span {
    color: var(--page-casino-text-dark);
}

.page-casino__faq-item {
    background-color: var(--page-casino-background-light);
    border-color: #e0e0e0;
}

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

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