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

/* Base styles for the page */
.page-index-popular-games {
    font-family: 'Arial', sans-serif;
    color: #e5dfd3; /* Light text for dark background */
    background-color: #1A202C;
    line-height: 1.6;
}

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

.page-index-popular-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-popular-games__section:nth-child(even) {
    background-color: #2D3748; /* Slightly lighter dark background */
}

.page-index-popular-games__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Secondary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index-popular-games__section-subtitle {
    font-size: 1.2em;
    color: #CBD5E0; /* Lighter grey for subtitles */
    margin-bottom: 40px;
}

.page-index-popular-games__text-block {
    font-size: 1.1em;
    color: #e5dfd3;
    margin: 20px auto;
    max-width: 900px;
}

/* Buttons */
.page-index-popular-games__button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}

.page-index-popular-games__button--primary {
    background-color: #FFD700; /* Gold for primary actions */
    color: #1A202C; /* Dark text on gold */
    border: 2px solid #FFD700;
}

.page-index-popular-games__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-index-popular-games__button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index-popular-games__button--secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-3px);
}

.page-index-popular-games__button--play {
    background-color: #4CAF50; /* Green for play buttons */
    color: #FFFFFF;
    border: 2px solid #4CAF50;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
}

.page-index-popular-games__button--play:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
}

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

/* Hero Section */
.page-index-popular-games__hero {
    background: linear-gradient(135deg, #1A202C 0%, #4A5568 100%);
    padding: 100px 0;
    color: #e5dfd3;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index-popular-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 25px;
    color: #FFD700;
    font-weight: bold;
    line-height: 1.2;
}

.page-index-popular-games__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #CBD5E0;
}

/* Why Choose Us Section */
.page-index-popular-games__why-choose-us {
    background-color: #1A202C;
}

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

.page-index-popular-games__feature-item {
    background-color: #2D3748;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    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;
    justify-content: space-between;
}

.page-index-popular-games__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games__feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.page-index-popular-games__feature-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-popular-games__feature-text {
    font-size: 1em;
    color: #e5dfd3;
    flex-grow: 1;
}

/* Game Categories Section */
.page-index-popular-games__game-categories {
    background-color: #2D3748;
}

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

.page-index-popular-games__game-card {
    background-color: #1A202C;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    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;
}

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

.page-index-popular-games__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #FFD700;
}

.page-index-popular-games__game-card-title {
    font-size: 1.8em;
    color: #FFD700;
    padding: 20px 25px 10px;
    font-weight: bold;
}

.page-index-popular-games__game-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-popular-games__game-card-title a:hover {
    color: #e6c200;
}

.page-index-popular-games__game-card-description {
    font-size: 1em;
    color: #CBD5E0;
    padding: 0 25px 15px;
    flex-grow: 1;
}

.page-index-popular-games__game-features {
    list-style: none;
    padding: 0 25px 15px;
    margin: 0;
    color: #e5dfd3;
}

.page-index-popular-games__game-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95em;
}

.page-index-popular-games__game-features li i {
    color: #FFD700;
    margin-right: 10px;
}

.page-index-popular-games__game-card .page-index-popular-games__button--play {
    margin: 0 25px 25px;
    width: calc(100% - 50px);
    text-align: center;
}

/* How to Start Section */
.page-index-popular-games__how-to-start {
    background-color: #1A202C;
}

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

.page-index-popular-games__step-item {
    background-color: #2D3748;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-index-popular-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FFD700;
    color: #1A202C;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-index-popular-games__step-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-popular-games__step-text {
    font-size: 1em;
    color: #e5dfd3;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Responsibility Section */
.page-index-popular-games__responsibility {
    background-color: #2D3748;
}

/* FAQ Section */
.page-index-popular-games__faq {
    background-color: #1A202C;
}

.page-index-popular-games__faq-list {
    margin-top: 50px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-popular-games__faq-item {
    background-color: #2D3748;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__faq-question {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index-popular-games__faq-answer {
    font-size: 1em;
    color: #e5dfd3;
}

/* Final CTA Section */
.page-index-popular-games__cta-final {
    background: linear-gradient(45deg, #FFD700 0%, #e6c200 100%);
    padding: 80px 0;
    color: #1A202C;
    text-align: center;
}

.page-index-popular-games__cta-title {
    font-size: 3em;
    color: #1A202C;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index-popular-games__cta-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #333;
}

.page-index-popular-games__cta-final .page-index-popular-games__button--primary {
    background-color: #1A202C;
    color: #FFD700;
    border-color: #1A202C;
}

.page-index-popular-games__cta-final .page-index-popular-games__button--primary:hover {
    background-color: #333;
    color: #FFD700;
    border-color: #333;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-popular-games__hero-title {
        font-size: 2.8em;
    }
    .page-index-popular-games__section-title {
        font-size: 2.2em;
    }
    .page-index-popular-games__hero-description,
    .page-index-popular-games__section-subtitle,
    .page-index-popular-games__cta-description {
        font-size: 1.1em;
    }
    .page-index-popular-games__game-card-title {
        font-size: 1.5em;
    }
    .page-index-popular-games__feature-title,
    .page-index-popular-games__step-title {
        font-size: 1.4em;
    }
    .page-index-popular-games__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-index-popular-games__hero {
        padding: 80px 0;
    }
    .page-index-popular-games__hero-title {
        font-size: 2.2em;
    }
    .page-index-popular-games__section {
        padding: 40px 0;
    }
    .page-index-popular-games__section-title {
        font-size: 1.8em;
    }
    .page-index-popular-games__hero-description,
    .page-index-popular-games__section-subtitle,
    .page-index-popular-games__cta-description {
        font-size: 1em;
    }
    .page-index-popular-games__features-grid,
    .page-index-popular-games__game-grid,
    .page-index-popular-games__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-index-popular-games__feature-item,
    .page-index-popular-games__game-card,
    .page-index-popular-games__step-item {
        margin-left: auto;
        margin-right: auto;
        max-width: 450px;
    }
    .page-index-popular-games__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index-popular-games__button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-index-popular-games__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .page-index-popular-games__hero-title {
        font-size: 1.8em;
    }
    .page-index-popular-games__section-title {
        font-size: 1.5em;
    }
    .page-index-popular-games__game-card-title {
        font-size: 1.3em;
    }
    .page-index-popular-games__feature-title,
    .page-index-popular-games__step-title {
        font-size: 1.2em;
    }
    .page-index-popular-games__cta-title {
        font-size: 1.8em;
    }
    .page-index-popular-games__button {
        width: 100%;
        box-sizing: border-box;
    }
}