/* style/slot-games.css */

/* Biến CSS */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-light: #e0e0e0;
}

/* Reset & Base Styles */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark); /* Inherited from shared, but for clarity */
}

/* Sections */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    min-height: 70vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #330000 100%);
    overflow: hidden;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.7);
}

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

.page-slot-games__section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__section-description {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

/* Feature Section */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-slot-games__feature-card {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px; /* Ensure images are not too wide */
    min-width: 200px; /* Minimum size */
    min-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-slot-games__feature-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__feature-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Video Section */
.page-slot-games__video-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    text-align: center;
    position: relative;
}

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 40px auto 0;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-slot-games__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Games Showcase Section */
.page-slot-games__games-showcase {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-slot-games__game-card {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size */
    min-height: 200px;
}

.page-slot-games__game-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__game-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__game-title a:hover {
    color: var(--primary-color);
}

.page-slot-games__game-provider {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-slot-games__btn-play {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-slot-games__btn-play:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Guide Section */
.page-slot-games__guide-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-slot-games__guide-step {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__step-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__step-text {
    font-size: 1em;
}

.page-slot-games__guide-cta {
    text-align: center;
    margin-top: 50px;
}

/* Tips Section */
.page-slot-games__tips-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto 0;
}

.page-slot-games__tips-list li {
    background-color: var(--card-bg-dark);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    color: var(--text-light);
    border-left: 5px solid var(--primary-color);
}

.page-slot-games__tips-list li strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-question h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.2em;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 20px;
    padding-top: 0;
}

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

/* Call to Action Section */
.page-slot-games__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color) 0%, #e6c200 100%);
    color: var(--text-dark);
}

.page-slot-games__cta-section .page-slot-games__section-title {
    color: var(--secondary-color);
}

.page-slot-games__cta-section .page-slot-games__section-description {
    color: var(--text-dark);
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

.page-slot-games__btn-primary:hover {
    background-color: #6a0000;
    border-color: #6a0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-slot-games__hero-title {
        font-size: 2.5em;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
    }

    .page-slot-games__hero-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 25px;
        font-size: 1em;
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-slot-games__container {
        padding: 0 15px;
    }

    .page-slot-games__features-section,
    .page-slot-games__video-section,
    .page-slot-games__games-showcase,
    .page-slot-games__guide-section,
    .page-slot-games__tips-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        padding: 60px 0;
    }

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

    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__guide-step {
        padding: 25px;
    }

    .page-slot-games__feature-icon,
    .page-slot-games__game-image {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-slot-games__video-wrapper {
        margin: 30px auto 0;
    }

    .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__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-buttons {
        flex-direction: column;
    }

    .page-slot-games__tips-list,
    .page-slot-games__faq-list {
        margin-top: 30px;
    }

    .page-slot-games__tips-list li,
    .page-slot-games__faq-question,
    .page-slot-games__faq-answer {
        padding: 15px;
        font-size: 1em;
    }
    .page-slot-games__faq-question h3 {
        font-size: 1em;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}