/* style/slot-games-popular.css */

/* Custom Color Variables - from custom palette */
:root {
    --page-slot-games-popular-primary-color: #11A84E; /* Main color */
    --page-slot-games-popular-secondary-color: #22C768; /* Auxiliary color */
    --page-slot-games-popular-btn-gradient-start: #2AD16F;
    --page-slot-games-popular-btn-gradient-end: #13994A;
    --page-slot-games-popular-card-bg: #11271B;
    --page-slot-games-popular-background: #08160F;
    --page-slot-games-popular-text-main: #F2FFF6;
    --page-slot-games-popular-text-secondary: #A7D9B8;
    --page-slot-games-popular-border: #2E7A4E;
    --page-slot-games-popular-glow: #57E38D;
    --page-slot-games-popular-gold: #F2C14E;
    --page-slot-games-popular-divider: #1E3A2A;
    --page-slot-games-popular-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-slot-games-popular {
    background-color: var(--page-slot-games-popular-background); /* Dark background */
    color: var(--page-slot-games-popular-text-main); /* Light text for contrast */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

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

.page-slot-games-popular__section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games-popular__dark-section {
    background-color: var(--page-slot-games-popular-deep-green); /* Darker section background */
    color: var(--page-slot-games-popular-text-main); /* Light text */
}

.page-slot-games-popular__section-title {
    font-size: 2.8em;
    color: var(--page-slot-games-popular-gold); /* Gold for titles */
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-slot-games-popular__text-block {
    font-size: 1.1em;
    color: var(--page-slot-games-popular-text-secondary); /* Secondary light text */
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Hero Section */
.page-slot-games-popular__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--page-slot-games-popular-deep-green);
}

.page-slot-games-popular__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1920px; /* Max width for image */
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games-popular__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-slot-games-popular__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive H1 font size */
    color: var(--page-slot-games-popular-gold);
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-slot-games-popular__hero-description {
    font-size: 1.2em;
    color: var(--page-slot-games-popular-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games-popular__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-slot-games-popular__btn-primary,
.page-slot-games-popular__btn-secondary,
.page-slot-games-popular__btn-play {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games-popular__btn-primary {
    background: linear-gradient(180deg, var(--page-slot-games-popular-btn-gradient-start) 0%, var(--page-slot-games-popular-btn-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid var(--page-slot-games-popular-btn-gradient-start);
}

.page-slot-games-popular__btn-primary:hover {
    background: linear-gradient(180deg, var(--page-slot-games-popular-btn-gradient-end) 0%, var(--page-slot-games-popular-btn-gradient-start) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games-popular__btn-secondary {
    background-color: transparent;
    color: var(--page-slot-games-popular-gold);
    border: 2px solid var(--page-slot-games-popular-gold);
}

.page-slot-games-popular__btn-secondary:hover {
    background-color: var(--page-slot-games-popular-gold);
    color: var(--page-slot-games-popular-deep-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games-popular__btn-play {
    background: linear-gradient(180deg, var(--page-slot-games-popular-btn-gradient-start) 0%, var(--page-slot-games-popular-btn-gradient-end) 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-slot-games-popular__btn-play:hover {
    background: linear-gradient(180deg, var(--page-slot-games-popular-btn-gradient-end) 0%, var(--page-slot-games-popular-btn-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular__cta-full-width {
    margin-top: 40px;
}

/* Feature Grid */
.page-slot-games-popular__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games-popular__feature-card {
    background-color: var(--page-slot-games-popular-card-bg); /* Card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__feature-title {
    font-size: 1.6em;
    color: var(--page-slot-games-popular-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games-popular__feature-card p {
    color: var(--page-slot-games-popular-text-secondary);
    font-size: 1em;
}

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

.page-slot-games-popular__game-card {
    background-color: var(--page-slot-games-popular-card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-slot-games-popular-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games-popular__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure it behaves as a block element */
}

.page-slot-games-popular__game-title {
    font-size: 1.4em;
    color: var(--page-slot-games-popular-text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games-popular__game-card p {
    color: var(--page-slot-games-popular-text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* Tips List */
.page-slot-games-popular__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games-popular__list-item {
    background-color: var(--page-slot-games-popular-card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__list-title {
    font-size: 1.5em;
    color: var(--page-slot-games-popular-gold);
    margin-bottom: 10px;
}

.page-slot-games-popular__list-item p {
    color: var(--page-slot-games-popular-text-secondary);
    font-size: 1em;
}

/* FAQ Section */
.page-slot-games-popular__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games-popular__faq-item {
    background-color: var(--page-slot-games-popular-card-bg);
    border: 1px solid var(--page-slot-games-popular-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For details tag */
}

.page-slot-games-popular__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.3em;
    color: var(--page-slot-games-popular-text-main);
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-slot-games-popular-deep-green); /* Slightly darker for question header */
    border-bottom: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__faq-item[open] .page-slot-games-popular__faq-question {
    border-bottom: 1px solid var(--page-slot-games-popular-border);
}

.page-slot-games-popular__faq-item summary {
    list-style: none; /* Remove default marker */
}

.page-slot-games-popular__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for WebKit */
}

.page-slot-games-popular__faq-qtext {
    flex-grow: 1;
}

.page-slot-games-popular__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--page-slot-games-popular-gold);
}

.page-slot-games-popular__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--page-slot-games-popular-text-secondary);
    background-color: var(--page-slot-games-popular-card-bg);
}

.page-slot-games-popular__faq-answer a {
    color: var(--page-slot-games-popular-gold);
    text-decoration: underline;
}

.page-slot-games-popular__faq-answer a:hover {
    color: var(--page-slot-games-popular-glow);
}

/* Call to Action Section */
.page-slot-games-popular__cta-section {
    background-color: var(--page-slot-games-popular-deep-green);
    padding: 80px 0;
    text-align: center;
}

.page-slot-games-popular__cta-section .page-slot-games-popular__section-title {
    margin-bottom: 20px;
}

.page-slot-games-popular__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games-popular__section-title {
        font-size: 2.2em;
    }
    .page-slot-games-popular__hero-section {
        padding-bottom: 40px;
    }
    .page-slot-games-popular__hero-image {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-slot-games-popular {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Prioritizing no horizontal scroll and max-width: 100% for images/containers on mobile. */
    /* This means content images will scale down below 200px if the viewport is smaller, */
    /* which is necessary to prevent horizontal scroll, prioritizing "移动端内容区防溢出". */
    .page-slot-games-popular img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games-popular__container,
    .page-slot-games-popular__section,
    .page-slot-games-popular__card,
    .page-slot-games-popular__game-card,
    .page-slot-games-popular__feature-card,
    .page-slot-games-popular__list-item,
    .page-slot-games-popular__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Override padding for specific sections that have their own padding */
    .page-slot-games-popular__hero-section,
    .page-slot-games-popular__cta-section,
    .page-slot-games-popular__why-choose,
    .page-slot-games-popular__intro-slots,
    .page-slot-games-popular__slot-showcase,
    .page-slot-games-popular__slot-tips,
    .page-slot-games-popular__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

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

    .page-slot-games-popular__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-slot-games-popular__text-block {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Hero Section */
    .page-slot-games-popular__hero-section {
        padding-top: 10px !important; /* body handles header offset, small top padding for this section */
        padding-bottom: 30px;
    }

    .page-slot-games-popular__hero-image {
        margin-bottom: 15px;
    }

    .page-slot-games-popular__main-title {
        font-size: 2em; /* Adjusted H1 for mobile */
        margin-bottom: 10px;
    }

    .page-slot-games-popular__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-slot-games-popular__hero-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Buttons */
    .page-slot-games-popular__btn-primary,
    .page-slot-games-popular__btn-secondary,
    .page-slot-games-popular__btn-play,
    .page-slot-games-popular a[class*="button"],
    .page-slot-games-popular a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Full width buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games-popular__cta-buttons,
    .page-slot-games-popular__button-group,
    .page-slot-games-popular__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; /* Stack buttons vertically */
    }

    .page-slot-games-popular__game-card img {
        height: auto; /* Let height adjust based on aspect ratio */
        object-fit: cover; /* Maintain aspect ratio and cover area */
    }

    /* FAQ */
    .page-slot-games-popular__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games-popular__faq-toggle {
        font-size: 1.2em;
    }
    .page-slot-games-popular__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-slot-games-popular__section-title {
        font-size: 1.6em;
    }
    .page-slot-games-popular__main-title {
        font-size: 1.8em;
    }
    .page-slot-games-popular__btn-primary,
    .page-slot-games-popular__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}