/* style/index-popular-games.css */
.page-index-popular-games {
    font-family: 'Arial', sans-serif;
    color: #FFFFFF; /* Default text color on dark backgrounds */
    background-color: #1A202C;
}

.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--dark {
    background-color: #1A202C;
    color: #FFFFFF;
}

.page-index-popular-games__section--light {
    background-color: #f8f8f8;
    color: #1A202C;
}

.page-index-popular-games__hero {
    background: linear-gradient(135deg, #1A202C, #333d4e);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index-popular-games__hero h1 {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-popular-games__hero p {
    font-size: 1.3em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-index-popular-games__hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
}

.page-index-popular-games__btn--primary {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
}

.page-index-popular-games__btn--primary:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
}

.page-index-popular-games__btn--hero {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-index-popular-games__btn--hero:hover {
    background-color: #e0b800;
    transform: translateY(-3px) scale(1.02);
}

.page-index-popular-games__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-index-popular-games h2 {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games h3 {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-index-popular-games p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-index-popular-games__section--light p {
    color: #333;
}

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

.page-index-popular-games__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-index-popular-games__feature-item h3 {
    color: #FFD700;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-index-popular-games__feature-item p {
    color: #cccccc;
    font-size: 1em;
}

.page-index-popular-games__game-category {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.page-index-popular-games__game-category--reverse {
    flex-direction: row-reverse;
}

.page-index-popular-games__game-info {
    flex: 1;
}

.page-index-popular-games__game-info h3 {
    color: #FFD700;
    font-size: 2em;
    margin-bottom: 20px;
}

.page-index-popular-games__game-info p {
    color: #e0e0e0;
    margin-bottom: 30px;
}

.page-index-popular-games__game-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-index-popular-games__game-image:hover {
    transform: scale(1.02);
}

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

.page-index-popular-games__steps li {
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    position: relative;
    padding-left: 60px;
}

.page-index-popular-games__steps li strong {
    color: #FFD700;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.page-index-popular-games__steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: #FFD700;
    color: #1A202C;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 15px;
    top: 25px;
}

.page-index-popular-games__app-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFD700, #e0b800);
    color: #1A202C;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-popular-games__hero h1 {
        font-size: 2.8em;
    }
    .page-index-popular-games h2 {
        font-size: 2em;
    }
    .page-index-popular-games__game-category {
        flex-direction: column;
        gap: 30px;
    }
    .page-index-popular-games__game-category--reverse {
        flex-direction: column;
    }
    .page-index-popular-games__game-image {
        max-width: 80%;
    }
    .page-index-popular-games__steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-index-popular-games__hero {
        padding: 80px 0 40px;
    }
    .page-index-popular-games__hero h1 {
        font-size: 2.2em;
    }
    .page-index-popular-games__hero p {
        font-size: 1.1em;
    }
    .page-index-popular-games h2 {
        font-size: 1.8em;
    }
    .page-index-popular-games h3 {
        font-size: 1.4em;
    }
    .page-index-popular-games p {
        font-size: 1em;
    }
    .page-index-popular-games__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index-popular-games__game-category {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-index-popular-games__hero h1 {
        font-size: 1.8em;
    }
    .page-index-popular-games__btn--hero {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-index-popular-games__features {
        grid-template-columns: 1fr;
    }
    .page-index-popular-games__game-image {
        max-width: 100%;
    }
    .page-index-popular-games__steps li {
        padding-left: 15px;
        padding-top: 50px;
    }
    .page-index-popular-games__steps li::before {
        left: 50%;
        transform: translateX(-50%);
        top: 15px;
    }
    .page-index-popular-games__cta-final h2 {
        font-size: 2em;
    }
    .page-index-popular-games__cta-final p {
        font-size: 1.1em;
    }
}