/* style/slot-games.css */

/* Base Styles */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* #FFFFFF */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #333333;
}

.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

/* Primary Button - Đăng Ký, Chơi Ngay */
.page-slot-games__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-slot-games__btn-primary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

/* Secondary Button - Chơi Thử Miễn Phí */
.page-slot-games__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* Special Login/Register Button Colors */
.page-slot-games__hero-cta-buttons .page-slot-games__btn-primary,
.page-slot-games__final-cta-section .page-slot-games__btn-primary {
    background-color: #C30808; /* Register button color */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login font color */
}

.page-slot-games__hero-cta-buttons .page-slot-games__btn-primary:hover,
.page-slot-games__final-cta-section .page-slot-games__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-slot-games__final-cta-section .page-slot-games__btn-secondary {
    background-color: #C30808; /* Login button color */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login font color */
}

.page-slot-games__final-cta-section .page-slot-games__btn-secondary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

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

.page-slot-games__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Darken image for text readability */
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Additional overlay for contrast */
    z-index: 2;
}

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

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Sections */
.page-slot-games__introduction-section,
.page-slot-games__advantages-section,
.page-slot-games__promotions-section,
.page-slot-games__final-cta-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
}

.page-slot-games__game-types-section .page-slot-games__section-title,
.page-slot-games__how-to-play-section .page-slot-games__section-title,
.page-slot-games__faq-section .page-slot-games__section-title {
    color: #FFFFFF;
}

.page-slot-games__game-types-section .page-slot-games__text-block,
.page-slot-games__how-to-play-section .page-slot-games__text-block,
.page-slot-games__faq-section .page-slot-games__text-block {
    color: #f0f0f0;
}

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

.page-slot-games__game-type-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #FFFFFF;
}

.page-slot-games__game-type-card:hover {
    transform: translateY(-10px);
}

.page-slot-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__card-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFFFF;
}

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

/* Advantages Section */
.page-slot-games__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__advantage-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-slot-games__advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.page-slot-games__advantage-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__advantage-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #017439;
}

.page-slot-games__advantage-description {
    font-size: 1em;
    color: #555555;
}

/* How to Play Section */
.page-slot-games__how-to-play-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-slot-games__how-to-play-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #FFFFFF;
    border-left: 5px solid #FFFF00; /* Highlight step */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-slot-games__how-to-play-list li strong {
    color: #FFFF00;
}

/* Promotions Section */
.page-slot-games__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__promotion-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-slot-games__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.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;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

/* Final CTA Section */
.page-slot-games__final-cta-section {
    text-align: center;
}

.page-slot-games__cta-content {
    padding: 40px 20px;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__hero-description {
        font-size: 1.2em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-slot-games__hero-title {
        font-size: 2.5em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__text-block {
        font-size: 1em;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image/video responsiveness */
    .page-slot-games img,
    .page-slot-games video {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__container,
    .page-slot-games__hero-content,
    .page-slot-games__game-type-card,
    .page-slot-games__advantage-item,
    .page-slot-games__promotion-card,
    .page-slot-games__faq-item,
    .page-slot-games__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games__game-types-grid,
    .page-slot-games__advantages-grid,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__how-to-play-list li {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-slot-games__faq-question,
    .page-slot-games__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
}

/* Ensure content area images maintain minimum size where applicable */
.page-slot-games__image-content,
.page-slot-games__card-image,
.page-slot-games__advantage-image {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filter on images */
.page-slot-games img {
    filter: none; /* Ensure no unwanted filters */
}

/* Special styles for dark background sections */
.page-slot-games__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-slot-games__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}