/* style/slot-games.css */

/* Base styles for the slot-games page */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1);
}

.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: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color Contrast Classes */
.page-slot-games__dark-bg {
    background-color: var(--dark-bg-1);
    color: #ffffff;
}

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

.page-slot-games__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 0;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0;
    overflow: hidden;
}

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

.page-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link,
.page-slot-games__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-slot-games__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
}

.page-slot-games__btn-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-slot-games__btn-small {
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-slot-games__btn-small:hover {
    background-color: #1e87b7;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
    padding: 60px 0;
}

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

.page-slot-games__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-slot-games__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

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

.page-slot-games__feature-text {
    font-size: 1em;
    color: #555555;
}

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

.page-slot-games__game-type-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-type-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__game-type-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__game-type-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding: 60px 0;
}

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

.page-slot-games__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding-bottom: 20px;
    color: #333333;
}

.page-slot-games__game-card-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__game-card-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 5px;
    font-weight: bold;
}

.page-slot-games__game-card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-slot-games__game-card-title a:hover {
    text-decoration: underline;
}

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

/* How To Play Section */
.page-slot-games__how-to-play-section {
    padding: 60px 0;
}

.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__step-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Strategies Section */
.page-slot-games__strategies-section {
    padding: 60px 0;
}

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

.page-slot-games__strategy-list li {
    background-color: #f8f8f8;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    color: #333333;
    line-height: 1.8;
}

.page-slot-games__list-item-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 60px 0;
}

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

.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__promo-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__promo-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-slot-games__promo-title a:hover {
    text-decoration: underline;
}

.page-slot-games__promo-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px;
    margin-bottom: 20px;
}

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

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

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

.page-slot-games__faq-item summary {
    list-style: none;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

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

.page-slot-games__faq-qtext {
    flex-grow: 1;
    padding-right: 10px;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.page-slot-games__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

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

    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }

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

    .page-slot-games__main-title {
        font-size: 2.2em;
    }

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-link,
    .page-slot-games__btn-small {
        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__features-grid,
    .page-slot-games__game-types-grid,
    .page-slot-games__game-cards-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-slot-games__why-choose-section,
    .page-slot-games__dark-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__strategies-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section {
        padding: 40px 0;
    }

    .page-slot-games__feature-item,
    .page-slot-games__game-type-card,
    .page-slot-games__game-card,
    .page-slot-games__step-item,
    .page-slot-games__promo-card,
    .page-slot-games__faq-item {
        padding: 20px;
    }

    .page-slot-games__hero-image,
    .page-slot-games__feature-icon,
    .page-slot-games__game-type-image,
    .page-slot-games__game-card-image,
    .page-slot-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !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__hero-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }
}

/* Ensure content area images are at least 200px wide */
.page-slot-games__hero-image, 
.page-slot-games__feature-icon, 
.page-slot-games__game-type-image, 
.page-slot-games__game-card-image, 
.page-slot-games__promo-image {
    min-width: 200px;
    min-height: 200px;
}

/* Text contrast fix for light backgrounds */
.page-slot-games__light-bg p,
.page-slot-games__light-bg li,
.page-slot-games__light-bg .page-slot-games__feature-text,
.page-slot-games__light-bg .page-slot-games__game-card-provider,
.page-slot-games__light-bg .page-slot-games__faq-answer {
    color: #555555;
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__feature-title,
.page-slot-games__light-bg .page-slot-games__game-card-title,
.page-slot-games__light-bg .page-slot-games__list-item-title,
.page-slot-games__light-bg .page-slot-games__faq-item summary {
    color: #333333;
}

.page-slot-games__light-bg .page-slot-games__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-slot-games__light-bg .page-slot-games__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Ensure all image containers handle overflow */
.page-slot-games__hero-section,
.page-slot-games__features-grid,
.page-slot-games__game-types-grid,
.page-slot-games__game-cards-grid,
.page-slot-games__promo-grid {
    overflow: hidden;
}