/* style/slot-games.css */

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

/* Base styles for the page content */
.page-slot-games {
    background-color: var(--color-background-main);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container for content sections */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-slot-games__hero-section,
.page-slot-games__intro-section,
.page-slot-games__features-section,
.page-slot-games__popular-games,
.page-slot-games__jackpot-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__final-cta {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow issues */
}

/* Hero Section */
.page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background-main);
}

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

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

.page-slot-games__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

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

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

/* Buttons */
.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.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;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* White text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

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

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

/* Section Titles */
.page-slot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

/* Text Blocks */
.page-slot-games__text-block {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Dark Section styling */
.page-slot-games__dark-section {
    background-color: var(--color-deep-green); /* A slightly different dark green */
    color: var(--color-text-main);
}

/* Image with content flex layout */
.page-slot-games__image-content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.page-slot-games__image-content-flex .page-slot-games__content-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__image-content-flex .page-slot-games__text-block {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0; /* Reset margin for text block in flex */
}

/* 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(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-slot-games__game-card {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-thumbnail {
    width: 100%;
    height: auto;
    max-height: 200px; /* Constrain thumbnail height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-slot-games__game-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__game-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-slot-games__btn-play {
    width: 80%; /* Make play button a bit narrower */
    margin-top: auto; /* Push to bottom */
}

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

/* Jackpot Section */
.page-slot-games__jackpot-section .page-slot-games__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
    text-align: left;
}

.page-slot-games__jackpot-section .page-slot-games__text-block {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
}

.page-slot-games__jackpot-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games__promo-list li {
    background-color: var(--color-card-bg);
    padding: 15px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__promo-list li strong {
    color: var(--color-gold);
    margin-right: 10px;
    font-size: 1.15rem;
}

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

.page-slot-games__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
    overflow: hidden; /* Hide overflow for smooth toggle */
}

.page-slot-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-glow);
}

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

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

.page-slot-games__faq-answer .page-slot-games__btn-secondary {
    margin-top: 10px;
    display: inline-flex;
    padding: 10px 20px;
    font-size: 1rem;
    min-width: unset;
}

/* Final CTA Section */
.page-slot-games__final-cta {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Global image styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-slot-games__hero-section,
    .page-slot-games__intro-section,
    .page-slot-games__features-section,
    .page-slot-games__popular-games,
    .page-slot-games__jackpot-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__final-cta {
        padding: 40px 0;
    }

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

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

    .page-slot-games__hero-description {
        font-size: 1.05rem;
    }

    .page-slot-games__image-content-flex,
    .page-slot-games__jackpot-section .page-slot-games__image-text-layout {
        flex-direction: column;
        gap: 30px;
    }

    .page-slot-games__jackpot-section .page-slot-games__image-text-layout {
        flex-direction: column-reverse; /* Keep image on top for mobile */
    }

    .page-slot-games__image-content-flex .page-slot-games__text-block,
    .page-slot-games__jackpot-section .page-slot-games__text-block {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides */
    .page-slot-games__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__image-content-flex,
    .page-slot-games__jackpot-section .page-slot-games__image-text-layout,
    .page-slot-games__game-card,
    .page-slot-games__feature-card,
    .page-slot-games__faq-item,
    .page-slot-games__promo-list li,
    .page-slot-games__cta-buttons,
    .page-slot-games__game-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 0; /* Container handles padding */
        padding-right: 0; /* Container handles padding */
    }

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

    /* Button responsiveness */
    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        align-items: center;
    }
    
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add internal padding for text */
        padding-right: 15px;
    }

    .page-slot-games__promo-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .page-slot-games__promo-list li strong {
        margin-bottom: 5px;
    }

    .page-slot-games__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

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