/* style/slot-games.css */

/* Custom Colors */
:root {
    --page-slot-games-primary-color: #11A84E;
    --page-slot-games-secondary-color: #22C768;
    --page-slot-games-card-bg: #11271B;
    --page-slot-games-background: #08160F;
    --page-slot-games-text-main: #F2FFF6;
    --page-slot-games-text-secondary: #A7D9B8;
    --page-slot-games-border: #2E7A4E;
    --page-slot-games-glow: #57E38D;
    --page-slot-games-gold: #F2C14E;
    --page-slot-games-divider: #1E3A2A;
    --page-slot-games-deep-green: #0A4B2C;
    --page-slot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    /* Assuming shared.css defines --background-color and it's dark */
    --page-slot-games-body-text-color: var(--page-slot-games-text-main); /* Light text for dark body background */
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--page-slot-games-body-text-color); /* General text color for dark body */
    background-color: var(--page-slot-games-background);
}

/* Fixed Header Spacing - Handled by body in shared.css, so only small top padding here */
.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__features-section,
.page-slot-games__how-to-use-code,
.page-slot-games__game-types-section,
.page-slot-games__tips-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__faq-section,
.page-slot-games__cta-bottom-section {
    padding-top: 60px; /* Default section padding */
    padding-bottom: 60px;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background layers */
}

/* Specific top padding for first section */
.page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1920px; /* Max width for hero image */
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2; /* Ensure text is above if there's a background effect */
}

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

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

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px; /* Max width for button group */
    margin: 0 auto;
}

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

.page-slot-games__btn-primary {
    background: var(--page-slot-games-btn-gradient);
    color: var(--page-slot-games-text-main); /* White text for dark button */
    border: 2px solid transparent;
}

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

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--page-slot-games-secondary-color);
    border: 2px solid var(--page-slot-games-secondary-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--page-slot-games-secondary-color);
    color: var(--page-slot-games-background); /* Dark text for light button */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.2);
}

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

.page-slot-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: var(--page-slot-games-gold);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-slot-games__dark-section {
    background-color: var(--page-slot-games-deep-green); /* Darker green for sections */
    color: var(--page-slot-games-text-main);
}

.page-slot-games__light-bg {
    background-color: var(--page-slot-games-background); /* Use the main dark background */
    color: var(--page-slot-games-text-main);
}

.page-slot-games__features-grid,
.page-slot-games__game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__feature-card,
.page-slot-games__game-type-card {
    background-color: var(--page-slot-games-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-slot-games-border);
}

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

.page-slot-games__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    object-fit: cover;
}

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

.page-slot-games__guide-list,
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__guide-list li,
.page-slot-games__tips-list li {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--page-slot-games-text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--page-slot-games-gold);
    cursor: pointer;
    background-color: var(--page-slot-games-deep-green); /* Slightly darker for question */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 become cross */
}

.page-slot-games__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-slot-games-text-secondary);
    max-height: 0; /* For JS-controlled expansion */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Sufficient height for most answers */
    padding-top: 15px;
}

/* For JS controlled FAQ if not using <details> */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 500px !important;
    padding-top: 15px;
}
.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}


/* General image sizing to meet minimums */
.page-slot-games img:not(.page-slot-games__hero-image) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-slot-games__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-slot-games__hero-content {
        padding: 0 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em) !important;
    }

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Adjust max-width for column layout */
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* General image responsive styles */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Image containers */
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__introduction-section,
    .page-slot-games__features-section,
    .page-slot-games__how-to-use-code,
    .page-slot-games__game-types-section,
    .page-slot-games__tips-section,
    .page-slot-games__responsible-gaming-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom-section,
    .page-slot-games__feature-card,
    .page-slot-games__game-type-card,
    .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; /* Ensure no overflow */
    }

    .page-slot-games__features-grid,
    .page-slot-games__game-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__guide-list li,
    .page-slot-games__tips-list li,
    .page-slot-games__faq-question {
        padding: 15px;
        font-size: 1em;
    }

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

    /* Video responsive styles - assuming no video is explicitly requested for this page, but adding for completeness based on general rules */
    .page-slot-games video,
    .page-slot-games__video { /* If a video element were to be added */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}