/* style/slot-games.css */

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

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--k9k9-text-main); /* Default text color for dark background */
    background-color: var(--k9k9-background-color); /* Inherited from body via shared.css */
}

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

/* Sections */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom */
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: var(--k9k9-text-main);
}

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

.page-slot-games__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--k9k9-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--k9k9-button-gradient);
    color: var(--k9k9-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary {
    background: var(--k9k9-card-bg);
    color: var(--k9k9-primary-color);
    border: 2px solid var(--k9k9-primary-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--k9k9-primary-color);
    color: var(--k9k9-text-main);
    transform: translateY(-2px);
}

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--k9k9-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--k9k9-text-main);
}

.page-slot-games__text-link {
    color: var(--k9k9-gold-color);
    text-decoration: underline;
}

.page-slot-games__text-link:hover {
    color: var(--k9k9-primary-color);
}

/* Background variations for sections */
.page-slot-games__dark-bg {
    background-color: var(--k9k9-background-color);
    color: var(--k9k9-text-main);
    padding: 80px 0;
}

.page-slot-games__light-bg {
    background-color: var(--k9k9-card-bg);
    color: var(--k9k9-text-main);
    padding: 80px 0;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
    background: var(--k9k9-card-bg);
    border: 1px solid var(--k9k9-border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    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 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--k9k9-divider-color);
}

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

.page-slot-games__card-text {
    font-size: 1rem;
    color: var(--k9k9-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Benefit List */
.page-slot-games__benefit-list,
.page-slot-games__guide-list,
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__benefit-item,
.page-slot-games__guide-item,
.page-slot-games__tips-item {
    background-color: var(--k9k9-card-bg);
    border: 1px solid var(--k9k9-border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__benefit-title,
.page-slot-games__guide-title,
.page-slot-games__tips-title {
    font-size: 1.3rem;
    color: var(--k9k9-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__benefit-item p,
.page-slot-games__guide-item p,
.page-slot-games__tips-item p {
    font-size: 1rem;
    color: var(--k9k9-text-secondary);
}

.page-slot-games__guide-list {
    counter-reset: guide-counter;
}

.page-slot-games__guide-item {
    position: relative;
    padding-left: 50px;
    text-align: left;
}

.page-slot-games__guide-item::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 15px;
    top: 25px;
    background-color: var(--k9k9-primary-color);
    color: var(--k9k9-text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-slot-games__note-text {
    text-align: center;
    font-style: italic;
    color: var(--k9k9-text-secondary);
    margin-top: 30px;
}

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

.page-slot-games__faq-item {
    background-color: var(--k9k9-card-bg);
    border: 1px solid var(--k9k9-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--k9k9-primary-color);
    cursor: pointer;
    list-style: none; /* For <details> summary */
}

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--k9k9-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 0 25px 20px 25px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-slot-games__container,
    .page-slot-games__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-slot-games__main-title {
        font-size: 2.2rem;
    }

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

    .page-slot-games__cta-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;
        font-size: 0.95rem;
        margin: 0 auto; /* Center buttons */
    }

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

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

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

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

    .page-slot-games__card-text {
        font-size: 0.9rem;
    }

    .page-slot-games__benefit-item,
    .page-slot-games__guide-item,
    .page-slot-games__tips-item {
        padding: 20px;
    }

    .page-slot-games__guide-item {
        padding-left: 45px;
    }

    .page-slot-games__guide-item::before {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
        left: 10px;
        top: 20px;
    }

    .page-slot-games__benefit-title,
    .page-slot-games__guide-title,
    .page-slot-games__tips-title {
        font-size: 1.1rem;
    }

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

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

    /* Mobile image responsiveness */
    .page-slot-games img {
        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__hero-section,
    .page-slot-games__introduction-section,
    .page-slot-games__game-types-section,
    .page-slot-games__benefits-section,
    .page-slot-games__guide-section,
    .page-slot-games__promotions-section,
    .page-slot-games__tips-section,
    .page-slot-games__security-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-slot-games__cta-center {
        flex-direction: column;
    }
}

/* Ensure all content area images are at least 200px wide */
.page-slot-games__game-card .page-slot-games__card-image,
.page-slot-games__promo-card .page-slot-games__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* No filter for images */
.page-slot-games img {
    filter: none; /* Ensure no CSS filter is applied by default */
}

/* Specific darkening for hero image to ensure text contrast */
.page-slot-games__hero-image {
    filter: brightness(0.4); 
}