/* style/slot-games.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --login-button-color: #EA7C07;
    --body-bg-color: #0a0a0a; /* Defined in shared.css, used for contrast logic */
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.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: var(--text-on-dark);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

/* Color Contrast Specifics */
.page-slot-games__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body for sections, but still dark */
    color: var(--text-on-dark);
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__text-block,
.page-slot-games__light-bg .page-slot-games__guide-step-title,
.page-slot-games__light-bg .page-slot-games__strategy-item-title,
.page-slot-games__light-bg .page-slot-games__faq-question span:first-child,
.page-slot-games__light-bg .page-slot-games__faq-answer p {
    color: var(--text-on-light);
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1.1em;
}

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

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    box-sizing: border-box;
}

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

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

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

.page-slot-games__hero-title {
    font-size: 3.8em;
    color: var(--text-on-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.4em;
    color: var(--text-on-dark);
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Intro Section */
.page-slot-games__intro-section {
    padding: 80px 0;
}

/* Benefits Section */
.page-slot-games__benefits-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-slot-games__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-on-dark);
}

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

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

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

.page-slot-games__benefit-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-on-dark);
}

/* Game Types Section */
.page-slot-games__game-types-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-slot-games__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-on-light);
}

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

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

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

.page-slot-games__game-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-on-light);
}

/* Guide Section */
.page-slot-games__guide-section {
    padding: 80px 0;
}

.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
}

.page-slot-games__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 20px;
    padding: 25px 30px;
    border-radius: 8px;
    position: relative;
    color: var(--text-on-dark);
}

.page-slot-games__guide-item::before {
    counter-increment: guide-step;
    content: "Bước " counter(guide-step);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.page-slot-games__guide-step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Strategy Section */
.page-slot-games__strategy-section {
    padding: 80px 0;
}

.page-slot-games__strategy-list {
    list-style: none;
    padding: 0;
}

.page-slot-games__strategy-item {
    background-color: var(--secondary-color);
    margin-bottom: 20px;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-on-light);
}

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

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__promotion-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
}

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

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

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

.page-slot-games__faq-question:hover {
    background-color: #f0f0f0;
}

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes 'X' or similar */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-light);
}

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

.page-slot-games__faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-on-light);
}

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

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

/* 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 {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-section {
        height: auto;
        min-height: 600px;
        padding: 100px 0 60px; /* Adjust padding for mobile header */
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        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__hero-cta-buttons,
    .page-slot-games__final-cta-section .page-slot-games__cta-buttons {
      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__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__benefits-grid,
    .page-slot-games__game-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__benefit-card,
    .page-slot-games__game-card {
        padding: 20px;
    }
    .page-slot-games__guide-item {
        padding: 20px 25px;
    }
    .page-slot-games__guide-item::before {
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }
    .page-slot-games__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__faq-question,
    .page-slot-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__benefits-section,
    .page-slot-games__game-types-section,
    .page-slot-games__guide-section,
    .page-slot-games__strategy-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__final-cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Prevent horizontal scroll */
    }
}