/* style/slot-games.css */

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

/* Reset & Base Styles */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-slot-games-text-main); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--page-slot-games-background); /* Nền tối từ shared.css */
}

.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(--page-slot-games-text-main);
    margin-bottom: 0.8em;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.page-slot-games h1 {
    /* font-size: clamp(2.5rem, 5vw, 3.5rem); */ /* Sử dụng clamp để tránh font-size cứng */
    font-weight: 900;
    line-height: 1.1;
    max-width: 900px;
}

.page-slot-games__section-title {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--page-slot-games-gold);
}

.page-slot-games__description {
    font-size: 1.15rem;
    margin-bottom: 1.5em;
    color: var(--page-slot-games-text-secondary);
    max-width: 800px;
}

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

.page-slot-games__text-block {
    margin-bottom: 1em;
    color: var(--page-slot-games-text-secondary);
}

.page-slot-games__list {
    list-style: disc inside;
    margin-bottom: 1.5em;
    padding-left: 20px;
    color: var(--page-slot-games-text-secondary);
}

.page-slot-games__list li {
    margin-bottom: 0.5em;
    color: var(--page-slot-games-text-secondary);
}

.page-slot-games__list li strong {
    color: var(--page-slot-games-text-main);
}

/* Section Styles */
.page-slot-games__section {
    padding: 60px 0;
}

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

.page-slot-games__light-bg {
    background-color: var(--page-slot-games-deep-green);
    color: var(--page-slot-games-text-main);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding: 10px 0 60px 0; /* body đã có padding-top, đây chỉ là khoảng cách nhỏ */
    text-align: center;
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Giảm độ sáng để chữ dễ đọc */
}

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

.page-slot-games__main-title {
    color: var(--page-slot-games-gold);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5em;
}

.page-slot-games__description {
    color: var(--page-slot-games-text-main);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    margin-bottom: 2em;
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--page-slot-games-gold);
    border: 2px solid var(--page-slot-games-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__card {
    background-color: var(--page-slot-games-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-slot-games-border);
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__card-title {
    font-size: 1.5rem;
    color: var(--page-slot-games-gold);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__card-text {
    color: var(--page-slot-games-text-secondary);
    font-size: 0.95rem;
    padding: 0 15px;
}

/* Feature Cards (Advantages section) */
.page-slot-games__feature-card {
    background-color: var(--page-slot-games-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--page-slot-games-border);
}

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

.page-slot-games__feature-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--page-slot-games-glow));
}

.page-slot-games__feature-title {
    font-size: 1.4rem;
    color: var(--page-slot-games-gold);
    margin-bottom: 10px;
}

.page-slot-games__feature-text {
    color: var(--page-slot-games-text-secondary);
    font-size: 0.9rem;
}

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

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

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

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

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

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

.page-slot-games__faq-answer {
    padding: 20px;
    color: var(--page-slot-games-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: var(--page-slot-games-card-bg);
}

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

/* Override default details marker */
.page-slot-games__faq-item summary {
    list-style: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        padding: 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-slot-games__section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 450px;
        padding-bottom: 40px;
    }

    .page-slot-games__hero-content {
        margin-top: 30px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-slot-games__description {
        font-size: 0.95rem;
    }

    .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;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-slot-games__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-slot-games__video-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }

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

    .page-slot-games__faq-answer {
        font-size: 0.9rem;
        padding: 15px;
    }
}