/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    background-color: #1a1a2e; /* Fallback, actual background comes from image */
}

.page-slot-games__hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('[GALLERY:hero:1920x1080:slot_games,jackpot,online_betting,99ok_123win,dynamic_background]');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6); /* Darken image for better text contrast */
    z-index: 1;
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: 2;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-slot-games__section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a2e; /* Dark background from body */
    color: #ffffff; /* Light text for dark background */
}

.page-slot-games__light-bg {
    background-color: #f5f5f5; /* Light background for specific sections */
    color: #333333; /* Dark text for light background */
}

.page-slot-games__dark-section {
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff; /* White text for brand primary background */
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: inherit; /* Inherit from section for contrast */
}

.page-slot-games__section-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from section for contrast */
}

/* Buttons */
.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-slot-games__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Special button for login/register in hero, if needed */
.page-slot-games__btn-login {
    background-color: #EA7C07; /* Login specific color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-slot-games__btn-login:hover {
    background-color: #c96806;
    border-color: #c96806;
}

/* Image styles */
.page-slot-games__image-wrapper {
    margin-bottom: 40px;
}

.page-slot-games__section-image,
.page-slot-games__game-image,
.page-slot-games__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Ensure it doesn't get weird spacing */
    margin: 0 auto; /* Center images */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Feature Grid */
.page-slot-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Ensure cards have some height */
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for distinction */
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-title,
.page-slot-games__promo-title {
    font-size: 1.4em;
    margin: 15px 0 10px;
    color: inherit;
}

.page-slot-games__game-description,
.page-slot-games__promo-description {
    font-size: 0.95em;
    color: inherit;
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-slot-games__game-card .page-slot-games__btn-secondary,
.page-slot-games__promo-card .page-slot-games__btn-secondary {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* How to Play / Tips & Strategies Lists */
.page-slot-games__step-list,
.page-slot-games__tip-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games__step-item,
.page-slot-games__tip-item {
    background-color: rgba(0, 0, 0, 0.05); /* Light background section, so dark text, light box */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    color: #333333;
    transition: box-shadow 0.3s ease;
}

.page-slot-games__step-item:hover,
.page-slot-games__tip-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-title,
.page-slot-games__tip-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand color for titles */
}

.page-slot-games__step-item p,
.page-slot-games__tip-item p {
    color: #555555;
    font-size: 1em;
}

.page-slot-games__step-item a,
.page-slot-games__tip-item a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-slot-games__step-item a:hover,
.page-slot-games__tip-item a:hover {
    color: #1e87c0;
}

/* Call to action container */
.page-slot-games__cta-container {
    margin-top: 50px;
    text-align: center;
}

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

.page-slot-games__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text for light background */
    text-align: left;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    color: #26A9E0; /* Brand color for questions */
    position: relative;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
    background-color: #eef;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

/* Fixed Login/Register Buttons */
.page-slot-games__fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-slot-games__fixed-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-slot-games__fixed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__fixed-btn--register {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-slot-games__fixed-btn--login {
    background-color: #EA7C07;
    color: #ffffff;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__feature-grid,
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-slot-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__section {
        padding: 60px 15px;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-slot-games__section-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Mobile image adaptation */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__image-wrapper,
    .page-slot-games__feature-grid,
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__cta-buttons,
    .page-slot-games__faq-list,
    .page-slot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games__feature-grid,
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__promo-card {
        padding: 20px;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
    }
    .page-slot-games__fixed-buttons {
        bottom: 15px;
        right: 15px;
        flex-direction: row; /* Horizontal on mobile to save vertical space */
        width: calc(100% - 30px);
        justify-content: space-around;
    }
    .page-slot-games__fixed-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* Ensure no CSS filter changes image colors */
.page-slot-games img {
    filter: none !important;
}

/* Ensure content area images are not too small */
.page-slot-games__section-image,
.page-slot-games__game-image,
.page-slot-games__promo-image {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .page-slot-games__section img,
    .page-slot-games__feature-card img,
    .page-slot-games__game-card img,
    .page-slot-games__promo-card img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}