/* style/slot-games.css */

/* Custom colors from requirements */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body background is --color-background from shared.css */
.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Explicitly set page background to ensure consistency */
    line-height: 1.6;
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-deep-green); /* Example background for hero */
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and text */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
}

.page-slot-games__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
    max-width: 900px;
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font-size with clamp */
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

/* General Section Styles */
.page-slot-games__introduction-section,
.page-slot-games__game-types-section,
.page-slot-games__jackpot-explanation-section,
.page-slot-games__how-to-play-section,
.page-slot-games__advantages-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__final-cta-section {
    padding: 80px 0;
}

.page-slot-games__light-bg {
    background-color: var(--color-card-bg); /* Use card background for light sections */
    color: var(--color-text-main); /* Ensure contrast with dark text */
}

.page-slot-games__dark-bg {
    background-color: var(--color-background); /* Use main background for dark sections */
    color: var(--color-text-main); /* Ensure contrast with light text */
}

.page-slot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-slot-games__subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-glow);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-slot-games__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-secondary); /* Use secondary text color for body text */
}

.page-slot-games__link-text {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__link-text:hover {
    text-decoration: underline;
}

.page-slot-games__highlight {
    color: var(--color-glow);
    font-weight: bold;
}

.page-slot-games__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Lists */
.page-slot-games__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-slot-games__list-item {
    background-color: var(--color-deep-green);
    border-left: 5px solid var(--color-gold);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__list-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__list-sub-title {
    font-size: 1.2rem;
    color: var(--color-glow);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 500;
}

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

.page-slot-games__steps-list {
    list-style: decimal;
    padding-left: 25px;
    margin-top: 20px;
}

.page-slot-games__steps-list .page-slot-games__list-item {
    background-color: var(--color-deep-green);
    border-left: none;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-slot-games__steps-list .page-slot-games__list-title {
    color: var(--color-gold);
    font-size: 1.3rem;
}

.page-slot-games__steps-list .page-slot-games__list-description {
    color: var(--color-text-secondary);
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 30px;
}

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

.page-slot-games__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-slot-games__faq-item summary:hover {
    background-color: var(--color-deep-green); /* Slightly darker on hover */
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-slot-games__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.page-slot-games__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Text alignment */
.page-slot-games__text-center {
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual padding */
    }

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

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

    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

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

    .page-slot-games__introduction-section,
    .page-slot-games__game-types-section,
    .page-slot-games__jackpot-explanation-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__advantages-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__final-cta-section {
        padding: 40px 0;
    }

    .page-slot-games__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    .page-slot-games__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-slot-games__subtitle {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
    }

    .page-slot-games__text-block,
    .page-slot-games__list-description,
    .page-slot-games__faq-answer p {
        font-size: 0.95rem;
    }

    .page-slot-games__list-item {
        padding: 15px;
    }

    .page-slot-games__list-title {
        font-size: 1.2rem;
    }

    .page-slot-games__list-sub-title {
        font-size: 1.1rem;
    }

    /* Image and Video responsive rules for mobile */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper,
    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow for containers */
    }
    .page-slot-games__cta-buttons {
      flex-wrap: wrap !important;
      gap: 10px;
    }
}

/* Ensure no image filters */
.page-slot-games img {
    filter: none;
}