/* style/slot-games.css */

/* Custom Colors */
:root {
    --j88bet-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --j88bet-card-bg: #11271B;
    --j88bet-background: #08160F;
    --j88bet-text-main: #F2FFF6;
    --j88bet-text-secondary: #A7D9B8;
    --j88bet-border: #2E7A4E;
    --j88bet-glow: #57E38D;
    --j88bet-gold: #F2C14E;
    --j88bet-divider: #1E3A2A;
    --j88bet-deep-green: #0A4B2C;
}

.page-slot-games {
    background-color: var(--j88bet-background); /* Dark background */
    color: var(--j88bet-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

/* Ensure content is not covered by fixed header */
/* body already handles padding-top: var(--header-offset); */

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

.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: var(--j88bet-deep-green); /* A slightly different dark green for hero background */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--j88bet-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Glow effect */
}

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

.page-slot-games__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 180px;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: var(--j88bet-btn-gradient);
    color: var(--j88bet-text-main); /* Light text on green gradient */
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--j88bet-glow);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--j88bet-glow);
    color: var(--j88bet-background); /* Dark text on glow background */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__section {
    padding: 80px 0;
    border-bottom: 1px solid var(--j88bet-divider);
}

.page-slot-games__section:last-of-type {
    border-bottom: none;
}

.page-slot-games__dark-section {
    background-color: var(--j88bet-deep-green);
    color: var(--j88bet-text-main);
}

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--j88bet-gold);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.page-slot-games__section-description {
    font-size: 1.1rem;
    color: var(--j88bet-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-slot-games__text-secondary {
    color: var(--j88bet-text-secondary);
}

.page-slot-games__text-center {
    text-align: center;
}

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

.page-slot-games__card {
    background-color: var(--j88bet-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    color: var(--j88bet-text-main);
    border: 1px solid var(--j88bet-border);
}

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

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

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

.page-slot-games__cta-buttons--center {
    margin-top: 50px;
}

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

.page-slot-games__provider-item {
    background-color: var(--j88bet-card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--j88bet-border);
}

.page-slot-games__provider-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(1.2); /* Slightly brighten logos for dark background, NO COLOR CHANGE FILTER */
    min-width: 200px; /* Minimum size requirement */
    min-height: 120px; /* Minimum size requirement, adjusted for logo aspect ratio */
    object-fit: contain;
}

.page-slot-games__provider-name {
    font-size: 1.2rem;
    color: var(--j88bet-text-main);
    font-weight: 600;
}

.page-slot-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-slot-games__guide-item {
    background-color: var(--j88bet-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--j88bet-border);
    position: relative;
    padding-top: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-slot-games__guide-step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--j88bet-btn-gradient);
    color: var(--j88bet-text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--j88bet-background); /* Border to match background */
}

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

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

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__tip-item {
    background-color: var(--j88bet-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--j88bet-border);
    color: var(--j88bet-text-main);
}

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

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

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--j88bet-text-main);
    cursor: pointer;
    background-color: var(--j88bet-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--j88bet-divider);
}

.page-slot-games__faq-question:hover {
    background-color: rgba(var(--j88bet-deep-green), 0.8);
}

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

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

.page-slot-games__faq-qtext {
    color: var(--j88bet-gold);
}

.page-slot-games__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--j88bet-glow);
    transition: transform 0.3s ease;
}

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

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

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

.page-slot-games__text-link {
    color: var(--j88bet-glow);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-slot-games__text-link:hover {
    color: var(--j88bet-gold);
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-section {
        padding: 40px 15px;
    }
    .page-slot-games__section {
        padding: 60px 0;
    }
    .page-slot-games__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-slot-games__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    }
    .page-slot-games__intro-text,
    .page-slot-games__section-description {
        font-size: 1rem;
    }
}

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

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

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image containers responsiveness */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__provider-item,
    .page-slot-games__guide-item,
    .page-slot-games__tip-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px; /* Add padding to prevent content touching edges */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Buttons responsiveness */
    .page-slot-games__cta-button,
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrapping */
        word-wrap: break-word !important; /* Allow text wrapping */
        padding-left: 15px; /* Ensure button text has internal padding */
        padding-right: 15px; /* Ensure button text has internal padding */
    }
    
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Space between stacked buttons */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-slot-games__card-title,
    .page-slot-games__guide-step-title,
    .page-slot-games__tip-title {
        font-size: 1.2rem;
    }
    .page-slot-games__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 15px 20px;
    }

    .page-slot-games__providers-grid,
    .page-slot-games__guide-steps,
    .page-slot-games__tips-list,
    .page-slot-games__grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* Content area images must be >= 200px. Provider logos are smaller, so they need special min-height for mobile */
    .page-slot-games__provider-logo {
        min-width: 150px;
        min-height: 90px;
    }
    .page-slot-games__card-image {
        min-width: 200px;
        min-height: 150px;
    }
}

/* Ensure content text color is appropriate for the body background */
.page-slot-games p,
.page-slot-games li,
.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3,
.page-slot-games h4,
.page-slot-games h5,
.page-slot-games h6 {
    color: var(--j88bet-text-main); /* Default light text */
}
.page-slot-games__text-secondary,
.page-slot-games__intro-text,
.page-slot-games__section-description,
.page-slot-games__card-text,
.page-slot-games__guide-step-text,
.page-slot-games__tip-text,
.page-slot-games__faq-answer {
    color: var(--j88bet-text-secondary); /* Specific secondary text color */
}
.page-slot-games__main-title,
.page-slot-games__section-title,
.page-slot-games__card-title,
.page-slot-games__provider-name,
.page-slot-games__guide-step-title,
.page-slot-games__tip-title,
.page-slot-games__faq-qtext {
    color: var(--j88bet-gold); /* Gold color for titles */
}
.page-slot-games__btn-primary {
    color: var(--j88bet-text-main);
}
.page-slot-games__btn-secondary {
    color: var(--j88bet-glow);
}
.page-slot-games__btn-secondary:hover {
    color: var(--j88bet-background);
}
.page-slot-games__faq-toggle {
    color: var(--j88bet-glow);
}