/* style/index-hot-games.css */

/* Variables */
:root {
    --page-index-hot-games-primary-color: #1A202C;
    --page-index-hot-games-secondary-color: #FFD700;
    --page-index-hot-games-text-light: #F7FAFC; /* Light text for dark backgrounds */
    --page-index-hot-games-text-dark: #2D3748; /* Dark text for light backgrounds */
    --page-index-hot-games-background-light: #F7FAFC;
    --page-index-hot-games-background-dark: #1A202C;
    --page-index-hot-games-accent-color: #0028ff; /* Complementary to auxiliary */
    --page-index-hot-games-border-color: #4A5568;
}

.page-index-hot-games {
    font-family: 'Arial', sans-serif;
    color: var(--page-index-hot-games-text-light); /* Default text color for dark sections */
    background-color: var(--page-index-hot-games-background-dark); /* Default background */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Hero Section */
.page-index-hot-games__hero-section {
    background: linear-gradient(135deg, var(--page-index-hot-games-primary-color), rgba(26, 32, 44, 0.8)); /* Darker gradient for better text visibility */
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

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

.page-index-hot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle background image */
}

.page-index-hot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--page-index-hot-games-text-light);
    padding: 20px;
}

.page-index-hot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-index-hot-games-secondary-color);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-index-hot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-hot-games__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    white-space: nowrap;
}

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

.page-index-hot-games__btn--primary:hover {
    background-color: var(--page-index-hot-games-primary-color);
    color: var(--page-index-hot-games-secondary-color);
    border-color: var(--page-index-hot-games-secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.page-index-hot-games__btn--secondary:hover {
    background-color: var(--page-index-hot-games-secondary-color);
    color: var(--page-index-hot-games-primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* General Section Styling */
.page-index-hot-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-hot-games__section:nth-of-type(even) {
    background-color: #2D3748; /* Slightly lighter dark background for contrast */
}

.page-index-hot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--page-index-hot-games-secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index-hot-games__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--page-index-hot-games-text-light);
}

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

.page-index-hot-games__game-card {
    background-color: var(--page-index-hot-games-primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-index-hot-games__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-index-hot-games__game-card-title {
    font-size: 1.5em;
    padding: 20px 20px 10px;
    color: var(--page-index-hot-games-secondary-color);
}

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

.page-index-hot-games__game-card-title a:hover {
    color: var(--page-index-hot-games-text-light);
}

.page-index-hot-games__game-card-description {
    padding: 0 20px 20px;
    color: var(--page-index-hot-games-text-light);
    flex-grow: 1;
}

.page-index-hot-games__btn--small {
    font-size: 0.9em;
    padding: 10px 20px;
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* Why Choose Section */
.page-index-hot-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-hot-games__feature-item {
    background-color: var(--page-index-hot-games-primary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index-hot-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-index-hot-games__feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--page-index-hot-games-secondary-color));
}

.page-index-hot-games__feature-title {
    font-size: 1.3em;
    color: var(--page-index-hot-games-secondary-color);
    margin-bottom: 15px;
}

.page-index-hot-games__feature-text {
    color: var(--page-index-hot-games-text-light);
}

/* Registration Guide */
.page-index-hot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    counter-reset: step-counter;
}

.page-index-hot-games__step-list li {
    background-color: var(--page-index-hot-games-primary-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: var(--page-index-hot-games-text-light);
    position: relative;
    padding-left: 50px;
}

.page-index-hot-games__step-list li:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--page-index-hot-games-secondary-color);
    color: var(--page-index-hot-games-primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-index-hot-games__step-list strong {
    color: var(--page-index-hot-games-secondary-color);
}

.page-index-hot-games__cta-center {
    margin-top: 40px;
}

.page-index-hot-games__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* App Download Section */
.page-index-hot-games__app-download {
    background-color: var(--page-index-hot-games-primary-color);
    color: var(--page-index-hot-games-text-light);
}

.page-index-hot-games__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 40px;
}

.page-index-hot-games__app-text {
    flex: 1;
    min-width: 300px;
}

.page-index-hot-games__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-index-hot-games__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

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

.page-index-hot-games__app-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-index-hot-games__app-features img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: drop-shadow(0 0 3px var(--page-index-hot-games-secondary-color));
}

/* FAQ Section */
.page-index-hot-games__faq {
    background-color: #2D3748;
}

.page-index-hot-games__faq-item {
    background-color: var(--page-index-hot-games-primary-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-hot-games__faq-question {
    font-size: 1.2em;
    color: var(--page-index-hot-games-secondary-color);
    margin-bottom: 10px;
    cursor: pointer; 
    position: relative;
    padding-right: 30px;
}

.page-index-hot-games__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-index-hot-games__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-index-hot-games__faq-answer {
    color: var(--page-index-hot-games-text-light);
    display: none; /* Hidden by default */
    padding-top: 10px;
    border-top: 1px solid var(--page-index-hot-games-border-color);
    margin-top: 10px;
    line-height: 1.8;
}

.page-index-hot-games__faq-question.active + .page-index-hot-games__faq-answer {
    display: block;
}

/* Final CTA */
.page-index-hot-games__final-cta {
    padding: 80px 0;
    background: var(--page-index-hot-games-secondary-color);
    color: var(--page-index-hot-games-primary-color);
}

.page-index-hot-games__final-cta .page-index-hot-games__section-title {
    color: var(--page-index-hot-games-primary-color);
}

.page-index-hot-games__final-cta .page-index-hot-games__section-description {
    color: var(--page-index-hot-games-primary-color);
}

.page-index-hot-games__btn--hero {
    background-color: var(--page-index-hot-games-primary-color);
    color: var(--page-index-hot-games-secondary-color);
    border: 2px solid var(--page-index-hot-games-primary-color);
}

.page-index-hot-games__btn--hero:hover {
    background-color: transparent;
    color: var(--page-index-hot-games-primary-color);
    border-color: var(--page-index-hot-games-primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 32, 44, 0.4);
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hot-games__hero-title {
        font-size: 2.8em;
    }
    .page-index-hot-games__section-title {
        font-size: 2em;
    }
    .page-index-hot-games__game-grid,
    .page-index-hot-games__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-index-hot-games__app-content {
        flex-direction: column;
    }
    .page-index-hot-games__app-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-index-hot-games__hero-title {
        font-size: 2.2em;
    }
    .page-index-hot-games__hero-description {
        font-size: 1em;
    }
    .page-index-hot-games__hero-cta {
        flex-direction: column;
    }
    .page-index-hot-games__btn {
        width: 80%;
        margin: 0 auto 10px;
    }
    .page-index-hot-games__section-title {
        font-size: 1.8em;
    }
    .page-index-hot-games__game-grid,
    .page-index-hot-games__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-index-hot-games__section-description {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-index-hot-games__hero-section {
        padding: 60px 0;
        min-height: 450px;
    }
    .page-index-hot-games__hero-title {
        font-size: 1.8em;
    }
    .page-index-hot-games__section-title {
        font-size: 1.5em;
    }
    .page-index-hot-games__btn {
        width: 100%;
        padding: 12px 20px;
    }
    .page-index-hot-games__step-list li {
        padding-left: 45px;
    }
    .page-index-hot-games__step-list li:before {
        width: 25px;
        height: 25px;
        font-size: 1em;
    }
    .page-index-hot-games__section {
        padding: 40px 0;
    }
    .page-index-hot-games__game-card-title {
        font-size: 1.3em;
    }
    .page-index-hot-games__feature-title {
        font-size: 1.1em;
    }
}