/* 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 */
}

/* Section common styles */
.page-casino__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for mobile content safety */
    box-sizing: border-box;
}

.page-casino__section-title {
    font-size: 2.8em;
    margin-bottom: 30px;
    color: #FFD700; /* Gold for titles */
    font-weight: bold;
    text-transform: uppercase;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-casino__hero-content {
    max-width: 900px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text */
    padding: 40px;
    border-radius: 10px;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-casino__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-casino__btn-primary {
    background-color: #FFD700;
    color: #121212; /* Dark text on gold button for contrast */
    border: 2px solid #FFD700;
}

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

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

.page-casino__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212;
}

.page-casino__btn-tertiary {
    background-color: #8B0000; /* Dark red button */
    color: #ffffff;
    border: 2px solid #8B0000;
}

.page-casino__btn-tertiary:hover {
    background-color: #a00000;
    border-color: #a00000;
}

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

/* Introduction Section */
.page-casino__introduction-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* Games Section */
.page-casino__games-section {
    background-color: #8B0000; /* Dark red background */
    color: #ffffff;
}

.page-casino__games-section .page-casino__section-title {
    color: #FFD700; /* Gold title on dark red background */
}

.page-casino__games-section .page-casino__text-block {
    color: #f0f0f0;
}

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

.page-casino__game-card {
    background-color: #2a2a2a; /* Dark card background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__game-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-casino__game-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Live Casino Section */
.page-casino__live-casino-section {
    background-color: #1a1a1a;
}

.page-casino__live-casino-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-casino__live-casino-text {
    flex: 1;
}

.page-casino__live-casino-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__live-casino-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #8B0000;
    color: #ffffff;
}

.page-casino__promotions-section .page-casino__section-title {
    color: #FFD700;
}

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

.page-casino__promo-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__promo-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-casino__promo-description {
    font-size: 0.95em;
    color: #cccccc;
}

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

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

.page-casino__feature-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-casino__feature-description {
    font-size: 1em;
    color: #cccccc;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #8B0000;
    color: #ffffff;
}

.page-casino__faq-section .page-casino__section-title {
    color: #FFD700;
}

.page-casino__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-casino__faq-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #333333; /* Slightly darker for question */
    border-bottom: 1px solid #444444;
}

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

.page-casino__faq-heading {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
}

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

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    color: #cccccc;
    background-color: #2a2a2a;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 2.2em;
    }
    .page-casino__live-casino-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__live-casino-text {
        order: 2; /* Text below image on smaller screens */
    }
    .page-casino__live-casino-image-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-casino__hero-content {
        padding: 25px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__section {
        padding: 40px 15px;
    }
    .page-casino__container {
        padding: 0 10px; /* Adjust container padding for smaller screens */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-casino__text-block {
        font-size: 0.95em;
    }

    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-image,
    .page-casino__promo-image,
    .page-casino__live-casino-image,
    .page-casino__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Ensure image containers are also responsive */
    .page-casino__hero-image-wrapper,
    .page-casino__live-casino-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* FAQ specific adjustments */
    .page-casino__faq-list {
        margin-top: 20px;
    }
    .page-casino__faq-question {
        padding: 15px 20px;
    }
    .page-casino__faq-heading {
        font-size: 1.1em;
    }
    .page-casino__faq-toggle {
        font-size: 1.5em;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 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;
    }
}