/* style/slot-games.css */

/* Custom Colors & Body Background Adaptation */
:root {
    --page-slot-games-primary-color: #C61F1F;
    --page-slot-games-secondary-color: #E53030;
    --page-slot-games-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --page-slot-games-card-bg: #2A1212;
    --page-slot-games-background: #140C0C;
    --page-slot-games-text-main: #FFF1E8;
    --page-slot-games-border-color: #6A1E1E;
    --page-slot-games-gold-color: #F3C54D;
    --page-slot-games-deep-red-color: #7E0D0D;
}

/* Default text color for the page, assuming dark body background from shared.css */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--page-slot-games-text-main); /* Light text for dark background */
    background-color: var(--page-slot-games-background); /* Explicitly set for main content area if not covered by body */
    line-height: 1.6;
}

/* Page sections */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text on mobile, adjust for desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--page-slot-games-deep-red-color); /* Dark background for hero */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-slot-games__hero-content {
    position: relative; /* Ensure content is above image if any overlap */
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

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

.page-slot-games__description-text {
    font-size: 1.1em;
    color: var(--page-slot-games-text-main);
    margin-bottom: 30px;
}

.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: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-button-gradient);
    color: #ffffff;
    border: 2px solid var(--page-slot-games-gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
    background-color: var(--page-slot-games-card-bg); /* Dark background for secondary button */
    color: var(--page-slot-games-gold-color); /* Gold text */
    border: 2px solid var(--page-slot-games-gold-color);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--page-slot-games-gold-color);
    color: var(--page-slot-games-card-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-slot-games__about-slots,
.page-slot-games__how-to-play,
.page-slot-games__why-choose {
    background-color: var(--page-slot-games-background); /* Use overall background color */
    color: var(--page-slot-games-text-main);
    padding: 60px 0;
}

.page-slot-games__game-types,
.page-slot-games__promotions,
.page-slot-games__dark-section,
.page-slot-games__faq-section {
    background-color: var(--page-slot-games-deep-red-color); /* Deep red for dark sections */
    color: var(--page-slot-games-text-main);
    padding: 60px 0;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-slot-games-gold-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__list,
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-slot-games__list li,
.page-slot-games__steps-list li {
    background-color: var(--page-slot-games-card-bg);
    border-left: 5px solid var(--page-slot-games-gold-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-slot-games-text-main);
}

.page-slot-games__list li strong,
.page-slot-games__steps-list li strong {
    color: var(--page-slot-games-gold-color);
}

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

.page-slot-games__feature-card {
    background-color: var(--page-slot-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-slot-games-border-color);
    color: var(--page-slot-games-text-main);
}

.page-slot-games__feature-card .page-slot-games__card-title {
    font-size: 1.5em;
    color: var(--page-slot-games-gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-slot-games__faq-item {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-slot-games-text-main);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--page-slot-games-gold-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for question */
}

.page-slot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-slot-games__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: var(--page-slot-games-text-main);
    border-top: 1px solid var(--page-slot-games-border-color);
}

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


/* Responsive Design */
@media (min-width: 769px) {
    .page-slot-games__hero-section {
        flex-direction: row; /* Desktop: content beside image */
        text-align: left;
        padding: 60px 0;
    }
    .page-slot-games__hero-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin-bottom: 0;
    }
    .page-slot-games__hero-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
        opacity: 0.3; /* Slightly dim image for text readability */
    }
    .page-slot-games__hero-content {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 40px;
    }
    .page-slot-games__main-title {
        text-align: left;
    }
    .page-slot-games__description-text {
        text-align: left;
    }
    .page-slot-games__cta-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    /* General responsive for images */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Image containers */
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__image-content,
    .page-slot-games__feature-card,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video section top padding */
    .page-slot-games__hero-section { /* Using hero-section as first section */
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 40px !important;
    }

    /* Buttons responsive */
    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-slot-games__feature-card {
        padding: 25px;
    }

    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-slot-games__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}