/* style/index-hot-games.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-index-hot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-color);
}

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

.page-index-hot-games__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Soft glow */
}

.page-index-hot-games__text-block {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-index-hot-games__btn-primary,
.page-index-hot-games__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-index-hot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-index-hot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-index-hot-games__btn-secondary {
    background-color: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: none;
}

.page-index-hot-games__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(87, 227, 141, 0.3);
}

.page-index-hot-games__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: fit-content;
}

/* Hero Section */
.page-index-hot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles header offset, this is for internal spacing */
    min-height: 600px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.page-index-hot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index-hot-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-index-hot-games__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    margin-top: -100px; /* Overlap slightly with image for visual flow, but not on text */
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.0) 0%, var(--bg-color) 30%);
    width: 100%;
    box-sizing: border-box;
}

.page-index-hot-games__main-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(242, 193, 78, 0.7);
}

.page-index-hot-games__description {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-hot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Intro Section */
.page-index-hot-games__intro-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

/* Games Section */
.page-index-hot-games__games-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-index-hot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-hot-games__game-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.page-index-hot-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-index-hot-games__game-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid var(--glow-color);
}

.page-index-hot-games__game-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-index-hot-games__game-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-index-hot-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-hot-games__guide-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index-hot-games__guide-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-hot-games__guide-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Promotions Section */
.page-index-hot-games__promotions-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.page-index-hot-games__promo-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.page-index-hot-games__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-index-hot-games__promo-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid var(--deep-green-color);
}

.page-index-hot-games__promo-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-index-hot-games__promo-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-index-hot-games__view-all-promos {
    margin-top: 50px;
    text-align: center;
}

/* App Download Section */
.page-index-hot-games__app-download-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-index-hot-games__app-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-index-hot-games__app-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-index-hot-games__app-content .page-index-hot-games__section-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index-hot-games__app-content .page-index-hot-games__text-block {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index-hot-games__app-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-index-hot-games__app-features li {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-index-hot-games__app-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--glow-color);
    font-size: 20px;
}

.page-index-hot-games__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index-hot-games__app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--glow-color);
}

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

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

.page-index-hot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-index-hot-games__faq-item[open] {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index-hot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker for summary */
    transition: background-color 0.3s ease;
}

.page-index-hot-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-index-hot-games__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-index-hot-games__faq-qtext {
    flex-grow: 1;
}

.page-index-hot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--glow-color);
    margin-left: 20px;
}

.page-index-hot-games__faq-answer {
    padding: 0 30px 20px 30px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-index-hot-games__faq-answer p {
    margin-bottom: 10px;
}

/* Conclusion Section */
.page-index-hot-games__conclusion-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-hot-games__hero-content {
        margin-top: -50px;
        padding: 30px 20px;
    }

    .page-index-hot-games__main-title {
        font-size: clamp(32px, 4.5vw, 50px);
    }

    .page-index-hot-games__description {
        font-size: 18px;
    }

    .page-index-hot-games__app-layout {
        flex-direction: column;
        text-align: center;
    }

    .page-index-hot-games__app-content {
        text-align: center;
        max-width: 100%;
    }

    .page-index-hot-games__app-content .page-index-hot-games__section-title,
    .page-index-hot-games__app-content .page-index-hot-games__text-block {
        text-align: center;
    }

    .page-index-hot-games__app-features {
        text-align: left;
        margin: 30px auto;
        max-width: 400px;
    }
}

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

    .page-index-hot-games__hero-section {
        padding-bottom: 40px;
    }

    .page-index-hot-games__hero-content {
        margin-top: -30px;
        padding: 20px 15px;
    }

    .page-index-hot-games__main-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .page-index-hot-games__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-index-hot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-hot-games__btn-primary,
    .page-index-hot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-hot-games__cta-buttons,
    .page-index-hot-games__button-group,
    .page-index-hot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-index-hot-games__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 20px;
    }

    .page-index-hot-games__text-block {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-index-hot-games__game-grid,
    .page-index-hot-games__guide-steps,
    .page-index-hot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-hot-games__game-card,
    .page-index-hot-games__guide-card,
    .page-index-hot-games__promo-card {
        padding: 25px;
    }

    .page-index-hot-games__game-thumbnail,
    .page-index-hot-games__promo-thumbnail {
        height: 200px;
        margin-bottom: 20px;
    }

    .page-index-hot-games__game-title,
    .page-index-hot-games__promo-title,
    .page-index-hot-games__guide-title {
        font-size: 20px;
    }

    .page-index-hot-games__app-download-section {
        padding: 60px 0;
    }

    .page-index-hot-games__app-image {
        max-width: 80%;
    }

    .page-index-hot-games__faq-question {
        font-size: 18px;
        padding: 15px 20px;
    }

    .page-index-hot-games__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }

    /* Mobile image responsiveness */
    .page-index-hot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-hot-games__section,
    .page-index-hot-games__card,
    .page-index-hot-games__container,
    .page-index-hot-games__hero-image-wrapper,
    .page-index-hot-games__app-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-index-hot-games__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-index-hot-games__app-features {
        padding-left: 0;
        text-align: center;
    }

    .page-index-hot-games__app-features li {
        padding-left: 0;
    }

    .page-index-hot-games__app-features li::before {
        position: static;
        display: inline-block;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .page-index-hot-games__hero-content {
        margin-top: -20px;
        padding: 15px 10px;
    }

    .page-index-hot-games__main-title {
        font-size: clamp(24px, 8vw, 32px);
    }

    .page-index-hot-games__description {
        font-size: 15px;
    }

    .page-index-hot-games__section-title {
        font-size: clamp(20px, 7vw, 28px);
    }

    .page-index-hot-games__text-block {
        font-size: 15px;
    }

    .page-index-hot-games__game-card,
    .page-index-hot-games__guide-card,
    .page-index-hot-games__promo-card {
        padding: 20px;
    }

    .page-index-hot-games__game-title,
    .page-index-hot-games__promo-title,
    .page-index-hot-games__guide-title {
        font-size: 18px;
    }

    .page-index-hot-games__faq-question {
        font-size: 16px;
        padding: 12px 15px;
    }

    .page-index-hot-games__faq-answer {
        padding: 0 15px 12px 15px;
        font-size: 14px;
    }
}