/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Deep red for primary titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    border-radius: 2px;
}

.page-casino__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-casino__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    white-space: nowrap;
    min-width: 150px; /* Ensure buttons are not too small */
}

.page-casino__btn--primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Deep red text for contrast */
    border: 2px solid #FFD700;
}

.page-casino__btn--primary:hover {
    background-color: #e6c200; /* Darker gold */
    color: #6a0000; /* Darker red */
}

.page-casino__btn--secondary {
    background-color: transparent;
    color: #8B0000; /* Deep red */
    border: 2px solid #8B0000;
}

.page-casino__btn--secondary:hover {
    background-color: #8B0000; /* Deep red */
    color: #FFD700; /* Gold */
}

.page-casino__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
    min-width: 100px;
}

.page-casino__btn--lg {
    padding: 15px 30px;
    font-size: 1.2em;
    min-width: 200px;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    text-align: center;
    color: #ffffff; /* White text on hero for better readability over image */
    padding: 80px 20px 40px; /* Adjust padding as needed, initial padding-top handled by main */
    overflow: hidden; /* Ensure image doesn't overflow */
    min-height: 500px; /* Ensure hero section has a minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.page-casino__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Light grey for description */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

/* Image styles for content sections */
.page-casino__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* About Section */
.page-casino__about-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

/* Game Categories Section */
.page-casino__game-categories-section {
    padding: 60px 0;
    background-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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__card-title a {
    color: #8B0000;
    text-decoration: none;
}

.page-casino__card-title a:hover {
    text-decoration: underline;
    color: #FFD700;
}

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

/* Promotions Section */
.page-casino__promotions-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

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

.page-casino__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__promo-title {
    font-size: 1.6em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-casino__promo-title a {
    color: #8B0000;
    text-decoration: none;
}

.page-casino__promo-title a:hover {
    text-decoration: underline;
    color: #FFD700;
}

.page-casino__promo-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

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

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

.page-casino__feature-title {
    font-size: 1.4em;
    color: #8B0000;
    margin-bottom: 10px;
}

.page-casino__feature-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

/* Getting Started Guide Section */
.page-casino__guide-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.page-casino__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__guide-item {
    background-color: #ffffff;
    border-left: 5px solid #FFD700; /* Gold accent */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.page-casino__guide-step-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 10px;
}

.page-casino__guide-step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    padding: 60px 0;
    background-color: #f0f0f0;
    text-align: center;
}

/* Call to Action Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #8B0000; /* Deep red background */
    color: #ffffff;
    text-align: center;
}

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

.page-casino__cta-section .page-casino__paragraph {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Detail Pages List Section */
.page-casino__detail-pages-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

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

.page-casino__detail-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    padding: 30px;
    text-align: center;
}

.page-casino__detail-card-title {
    font-size: 1.6em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-casino__detail-card-title a {
    color: #8B0000;
    text-decoration: none;
}

.page-casino__detail-card-title a:hover {
    text-decoration: underline;
    color: #FFD700;
}

.page-casino__detail-card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Responsive Design */
@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;
    }
}

@media (max-width: 768px) {
    .page-casino {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-casino__hero-section {
        padding: 60px 15px 30px;
        min-height: 400px;
    }

    .page-casino__hero-title {
        font-size: 2.5em;
    }

    .page-casino__hero-description {
        font-size: 1em;
    }

    .page-casino__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn {
        width: 100%;
        max-width: 300px;
    }

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

    .page-casino__paragraph {
        font-size: 1em;
    }

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

    /* Content area images must not be smaller than 200px. */
    .page-casino img {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px; /* Enforce min width */
        min-height: 200px; /* Enforce min height */
    }

    .page-casino__card-image {
        height: auto; /* Allow height to adjust for responsiveness */
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
}

/* Ensure no filter is used on images that fundamentally changes color */
.page-casino img {
    /* filter: none; - brightness is allowed for contrast */
    -webkit-filter: brightness(0.7); /* For hero image specifically */
    filter: brightness(0.7); /* For hero image specifically */
}

.page-casino__image-full, .page-casino__card-image {
    filter: none; /* Other content images should not have brightness filter */
}