/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接）；HERO 主图须用 img 显示，禁止用 background-image */

/* 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); /* Fixed header offset for desktop and mobile */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-casino__content-paragraph {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: left;
    color: #444444;
}

/* Buttons */
.page-casino__button {
    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;
    text-align: center;
    font-size: 1em;
    border: 2px solid transparent;
}

.page-casino__button--primary {
    background-color: #007bff; /* Primary brand color */
    color: #ffffff;
}

.page-casino__button--primary:hover {
    background-color: #0056b3; /* Darker shade of primary */
}

.page-casino__button--secondary {
    background-color: #ffc107; /* Auxiliary brand color */
    color: #333333;
}

.page-casino__button--secondary:hover {
    background-color: #e0a800; /* Darker shade of auxiliary */
}

.page-casino__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-casino__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-casino__button--outline {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.page-casino__button--outline:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.page-casino__hero-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Minimum height for hero */
    color: #ffffff;
    text-align: center;
}

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

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

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

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

.page-casino__hero-actions .page-casino__button {
    margin: 0 10px;
}

/* Games Overview Section */
.page-casino__games-overview-section {
    margin-bottom: 60px;
}

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

.page-casino__game-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be object-fit */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-casino__game-card-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-casino__game-card-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #f8f9fa; /* Light background for contrast */
    padding: 60px 0;
    margin-bottom: 60px;
}

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

.page-casino__promo-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__promo-card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-casino__promo-card-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-casino__promo-card-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    margin-bottom: 60px;
}

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

.page-casino__feature-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
    width: 200px; /* Explicitly set to meet minimum requirement */
    height: 200px; /* Explicitly set to meet minimum requirement */
    object-fit: contain; /* Use contain for icons to prevent cropping */
    margin: 0 auto 20px auto;
    display: block;
}

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

.page-casino__feature-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

/* Getting Started Section */
.page-casino__getting-started-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 60px;
}

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

.page-casino__step-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-casino__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffc107; /* Auxiliary color for step numbers */
    margin-bottom: 10px;
}

.page-casino__step-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-casino__step-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    text-align: center;
    margin-bottom: 60px;
}

.page-casino__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 700px;
    text-align: left;
}

.page-casino__responsible-gaming-list li {
    background-color: #f0f0f0;
    border-left: 5px solid #007bff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.05em;
    color: #444444;
}

.page-casino__responsible-gaming-list li strong {
    color: #007bff;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 60px;
}

.page-casino__faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.page-casino__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-casino__faq-question {
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__faq-answer {
    font-size: 0.95em;
    color: #666666;
}

/* Call to Action Section */
.page-casino__cta-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(45deg, #007bff, #0056b3); /* Gradient background */
    color: #ffffff;
    border-radius: 10px;
    margin-bottom: 60px;
}

.page-casino__cta-section .page-casino__section-title {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-casino__cta-section .page-casino__section-description {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-section .page-casino__button--large {
    background-color: #ffc107;
    color: #333333;
    border: none;
}

.page-casino__cta-section .page-casino__button--large:hover {
    background-color: #e0a800;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
}

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

    .page-casino__hero-container {
        min-height: 400px;
    }

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

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

    .page-casino__hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__hero-actions .page-casino__button {
        margin: 0;
        width: 100%;
    }

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

    .page-casino__section-description {
        font-size: 0.95em;
    }

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

    /* Ensure content images are responsive and not smaller than 200px */
    .page-casino img {
        max-width: 100%;
        height: auto; /* Important for preventing overflow and maintaining aspect ratio */
        min-width: 200px; /* Enforce minimum width for content images */
        min-height: 200px; /* Enforce minimum height for content images */
    }

    /* Specific overrides for smaller images that are still "content" but might be styled differently */
    .page-casino__feature-icon {
        width: 200px; /* Explicitly set to meet minimum requirement */
        height: 200px; /* Explicitly set to meet minimum requirement */
        margin-left: auto;
        margin-right: auto;
    }
    .page-casino__game-card-image,
    .page-casino__promo-card-image {
        height: auto; /* Let height adjust with max-width: 100% */
        min-height: 200px; /* Ensure minimum height */
    }
    
    .page-casino__responsible-gaming-list {
        padding: 0 10px;
    }
}

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