/* style/slot-games.css */

/* Custom CSS Variables for the page */
:root {
    --page-bg-color: #08160F; /* Background */
    --card-bg-color: #11271B; /* Card BG */
    --text-main-color: #F2FFF6; /* Text Main */
    --text-secondary-color: #A7D9B8; /* Text Secondary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content, ensuring contrast with body background */
.page-slot-games {
    background-color: var(--page-bg-color); /* Matches custom background color */
    color: var(--text-main-color); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Sections */
.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__game-types-section,
.page-slot-games__promotions-section,
.page-slot-games__how-to-play-section,
.page-slot-games__features-section,
.page-slot-games__tips-section,
.page-slot-games__faq-section,
.page-slot-games__call-to-action-section {
    padding: 60px 20px;
    text-align: center;
}

.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-slot-games__hero-image {
    width: 100%;
    max-height: 700px; /* Limit height of hero image */
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
}

.page-slot-games__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above image if z-index is used, though we use flex-direction: column */
    z-index: 1;
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Flexible font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    color: var(--gold-color); /* Gold color for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Soft glow for title */
}

.page-slot-games__description {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color); /* Light text on green gradient */
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--glow-color); /* Glow color for secondary button text */
    border: 2px solid var(--glow-color); /* Border in glow color */
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--page-bg-color); /* Dark text on hover */
    transform: translateY(-3px);
}

/* Section specific backgrounds */
.page-slot-games__dark-bg {
    background-color: var(--page-bg-color);
    color: var(--text-main-color);
}

.page-slot-games__card-bg {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding to containers */
    box-sizing: border-box;
}

.page-slot-games__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold-color); /* Gold color for section titles */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-slot-games__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Grid */
.page-slot-games__game-grid,
.page-slot-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-slot-games__game-card,
.page-slot-games__feature-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

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

.page-slot-games__card-title {
    font-size: 1.5rem;
    color: var(--text-main-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__card-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
}

.page-slot-games__cta-buttons--center {
    margin-top: 40px;
}

/* Promotion List */
.page-slot-games__promotion-list,
.page-slot-games__steps-list,
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__promotion-item,
.page-slot-games__step-item,
.page-slot-games__tip-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-slot-games__promotion-title,
.page-slot-games__step-title,
.page-slot-games__tip-title {
    font-size: 1.4rem;
    color: var(--text-main-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__promotion-description,
.page-slot-games__step-description,
.page-slot-games__tip-description {
    font-size: 1rem;
    color: var(--text-secondary-color);
    flex-grow: 1; /* Ensure text takes up available space */
}

.page-slot-games__step-item .page-slot-games__btn-secondary {
    margin-top: 20px;
    align-self: flex-start; /* Align button to the left */
}

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color); /* Slightly different background for question */
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* Remove default marker for summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-slot-games__faq-question:hover {
    background-color: var(--border-color);
}

.page-slot-games__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
    border-top: 1px solid var(--divider-color);
}

/* Specific styles for details tag when open */
.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-slot-games__hero-image {
        max-height: 500px;
    }

    .page-slot-games__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-slot-games__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section,
    .page-slot-games__introduction-section,
    .page-slot-games__game-types-section,
    .page-slot-games__promotions-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__features-section,
    .page-slot-games__tips-section,
    .page-slot-games__faq-section,
    .page-slot-games__call-to-action-section {
        padding: 40px 15px;
    }

    .page-slot-games__hero-image {
        max-height: 350px;
        margin-bottom: 20px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-slot-games__description {
        font-size: 1rem;
    }

    .page-slot-games__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__game-grid,
    .page-slot-games__feature-grid,
    .page-slot-games__promotion-list,
    .page-slot-games__steps-list,
    .page-slot-games__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__card-image {
        height: auto; /* Allow height to adjust */
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }

    /* All images must be responsive */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content must be responsive */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-card,
    .page-slot-games__feature-card,
    .page-slot-games__promotion-item,
    .page-slot-games__step-item,
    .page-slot-games__tip-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Video section top padding for mobile, if video exists */
    .page-slot-games__video-section {
        padding-top: 10px !important; /* body handles --header-offset, this is just for decorative spacing */
    }
}

/* Ensure images don't have filters */
.page-slot-games img {
    filter: none;
}