/* style/slot-games.css */

/* Biến màu từ palette */
:root {
    --vp88-primary-color: #11A84E;
    --vp88-secondary-color: #22C768;
    --vp88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --vp88-card-bg: #11271B;
    --vp88-background: #08160F;
    --vp88-text-main: #F2FFF6;
    --vp88-text-secondary: #A7D9B8;
    --vp88-border: #2E7A4E;
    --vp88-glow: #57E38D;
    --vp88-gold: #F2C14E;
    --vp88-divider: #1E3A2A;
    --vp88-deep-green: #0A4B2C;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--vp88-text-main); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--vp88-background);
}

.page-slot-games__dark-bg {
    background-color: var(--vp88-background);
    color: var(--vp88-text-main);
}

.page-slot-games__light-bg {
    background-color: var(--vp88-text-main);
    color: #333333; /* Chữ tối trên nền sáng */
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Nhỏ gọn để body đã có padding-top */
    text-align: center;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Giới hạn chiều cao của ảnh hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--vp88-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

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

.page-slot-games__highlight {
    color: var(--vp88-gold);
    font-weight: bold;
}

.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 {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--vp88-button-gradient);
    color: var(--vp88-text-main);
    border: 2px solid var(--vp88-glow);
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--vp88-glow);
    color: var(--vp88-background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

/* General Content Sections */
.page-slot-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--vp88-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-slot-games__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--vp88-text-secondary);
    text-align: justify;
}

.page-slot-games__content-section,
.page-slot-games__features-section,
.page-slot-games__popular-games,
.page-slot-games__guide-section,
.page-slot-games__promotions-section,
.page-slot-games__mobile-app-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
    padding: 60px 0;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

.page-slot-games__card {
    background-color: var(--vp88-card-bg);
    border: 1px solid var(--vp88-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 200px; /* Đảm bảo chiều cao tối thiểu cho card */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Kích thước cố định cho ảnh trong card */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__card-title {
    font-size: 1.5rem;
    color: var(--vp88-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__card-text {
    font-size: 0.95rem;
    color: var(--vp88-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.page-slot-games__btn-small {
    background: var(--vp88-button-gradient);
    color: var(--vp88-text-main);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.page-slot-games__btn-small:hover {
    opacity: 0.9;
}

/* Guide List */
.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-slot-games__guide-list li {
    background-color: var(--vp88-card-bg);
    border: 1px solid var(--vp88-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-slot-games__list-title {
    font-size: 1.4rem;
    color: var(--vp88-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__list-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vp88-text-secondary);
    margin-bottom: 15px;
    text-align: justify;
}

/* Promotions */
.page-slot-games__promotion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-slot-games__promotion-item {
    text-align: left;
}

/* Mobile App Section */
.page-slot-games__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-slot-games__mobile-text {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-slot-games__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__faq-item {
    margin-bottom: 15px;
    background-color: var(--vp88-card-bg);
    border: 1px solid var(--vp88-border);
    border-radius: 10px;
    overflow: hidden;
    color: var(--vp88-text-main);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--vp88-deep-green);
    color: var(--vp88-text-main);
    border-bottom: 1px solid var(--vp88-border);
}

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

.page-slot-games__faq-qtext {
    flex-grow: 1;
    color: var(--vp88-text-main);
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--vp88-gold);
    transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vp88-text-secondary);
    background-color: var(--vp88-card-bg);
    border-top: 1px solid var(--vp88-divider);
}

/* CSS for details/summary compatibility */
.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-slot-games__faq-item summary {
    list-style: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }
    .page-slot-games__description {
        font-size: 1.05rem;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .page-slot-games__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-slot-games__mobile-image-wrapper {
        order: -1; /* Ảnh lên trên */
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section,
    .page-slot-games__content-section,
    .page-slot-games__features-section,
    .page-slot-games__popular-games,
    .page-slot-games__guide-section,
    .page-slot-games__promotions-section,
    .page-slot-games__mobile-app-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 40px 0;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
    .page-slot-games__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .page-slot-games__description {
        font-size: 1rem;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
    }
    .page-slot-games__text-block,
    .page-slot-games__card-text,
    .page-slot-games__list-text,
    .page-slot-games__faq-answer p {
        font-size: 0.95rem;
    }
    .page-slot-games__card-title,
    .page-slot-games__list-title {
        font-size: 1.3rem;
    }
    .page-slot-games__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile responsive images */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__mobile-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-slot-games__card-image {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px;
    }
    
    /* Mobile responsive buttons */
    .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;
        word-wrap: break-word !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;
        flex-direction: column;
    }
    
    /* Ensure content containers also adapt */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__mobile-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-section {
      padding-top: 10px !important;
    }
}