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

/* Global styles for the page content, ensuring isolation */
.page-index-popular-games {
    font-family: 'Arial', sans-serif;
    color: #F8F8F8; /* Light text on dark background */
    line-height: 1.6;
    background-color: #0A2463; /* Main background color */
}

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

/* Hero Section */
.page-index-popular-games__hero {
    background: linear-gradient(135deg, #0A2463 0%, #1A3E7B 100%); /* Dark blue gradient */
    color: #F8F8F8;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-index-popular-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

.page-index-popular-games__hero .page-index-popular-games__container {
    position: relative;
    z-index: 1;
}

.page-index-popular-games__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E0B143; /* Auxiliary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

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

.page-index-popular-games__btn--primary {
    background-color: #E0B143; /* Auxiliary color */
    color: #0A2463; /* Dark text for contrast */
}

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

.page-index-popular-games__btn--secondary {
    background-color: #0A2463; /* Main color */
    color: #E0B143; /* Auxiliary color for text */
    border: 2px solid #E0B143;
}

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

/* General Section Styling */
.page-index-popular-games__section {
    padding: 60px 0;
    background-color: #0A2463;
    color: #F8F8F8;
}

.page-index-popular-games__section--dark {
    background-color: #1A3E7B; /* Slightly lighter dark blue for contrast */
}

.page-index-popular-games__section-title {
    font-size: 2.5em;
    color: #E0B143;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__section p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: center;
}

/* Features Section */
.page-index-popular-games__features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-index-popular-games__feature-item {
    background-color: #1A3E7B;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(33% - 40px); /* 3 items per row */
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-index-popular-games__feature-item p {
    font-size: 1em;
    text-align: left;
    margin: 0;
}

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

.page-index-popular-games__game-card {
    background-color: #0A2463;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-index-popular-games__game-title {
    color: #E0B143;
    font-size: 1.5em;
    margin: 20px 15px 10px;
    line-height: 1.3;
}

.page-index-popular-games__game-description {
    font-size: 0.95em;
    color: #D3D3D3;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
    text-align: left;
}

.page-index-popular-games__game-card .page-index-popular-games__btn {
    margin: 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
    align-self: flex-end; /* Stick to bottom */
}

/* Guide Steps Section */
.page-index-popular-games__guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-index-popular-games__step-item {
    background-color: #1A3E7B;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(33% - 40px);
    min-width: 280px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-index-popular-games__step-item p {
    font-size: 1em;
    text-align: left;
    margin-bottom: 20px;
}

.page-index-popular-games__mobile-app-image {
    display: block;
    max-width: 600px;
    width: 100%;
    margin: 60px auto 0 auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Tips List Section */
.page-index-popular-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-popular-games__tips-list li {
    background-color: #0A2463;
    border-left: 5px solid #E0B143;
    padding: 20px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-index-popular-games__tips-list li:hover {
    background-color: #1A3E7B;
}

.page-index-popular-games__tip-title {
    color: #E0B143;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-index-popular-games__tips-list p {
    font-size: 1em;
    color: #D3D3D3;
    text-align: left;
    margin: 0;
}

/* Call to Action Section */
.page-index-popular-games__cta {
    background-color: #E0B143; /* Auxiliary color for a strong CTA */
    color: #0A2463; /* Dark text for contrast */
    padding: 80px 0;
    text-align: center;
}

.page-index-popular-games__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #0A2463;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

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

.page-index-popular-games__cta .page-index-popular-games__btn--primary {
    background-color: #0A2463;
    color: #E0B143;
}

.page-index-popular-games__cta .page-index-popular-games__btn--primary:hover {
    background-color: #1A3E7B;
}

.page-index-popular-games__cta .page-index-popular-games__btn--secondary {
    background-color: transparent;
    color: #0A2463;
    border: 2px solid #0A2463;
}

.page-index-popular-games__cta .page-index-popular-games__btn--secondary:hover {
    background-color: rgba(10, 36, 99, 0.1); /* Light hover for transparent button */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-popular-games__title {
        font-size: 2.8em;
    }
    .page-index-popular-games__section-title {
        font-size: 2em;
    }
    .page-index-popular-games__feature-item,
    .page-index-popular-games__step-item {
        flex: 1 1 calc(50% - 20px); /* 2 items per row */
    }
    .page-index-popular-games__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index-popular-games__hero {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-index-popular-games__title {
        font-size: 2.2em;
    }
    .page-index-popular-games__subtitle {
        font-size: 1em;
    }
    .page-index-popular-games__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index-popular-games__section {
        padding: 40px 0;
    }
    .page-index-popular-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-index-popular-games__section p {
        font-size: 0.95em;
    }
    .page-index-popular-games__feature-item,
    .page-index-popular-games__step-item {
        flex: 1 1 100%; /* 1 item per row */
        max-width: 400px; /* Constrain width for single column */
    }
    .page-index-popular-games__cta-title {
        font-size: 2.2em;
    }
    .page-index-popular-games__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-index-popular-games__title {
        font-size: 1.8em;
    }
    .page-index-popular-games__hero {
        min-height: 350px;
    }
    .page-index-popular-games__section-title {
        font-size: 1.5em;
    }
    .page-index-popular-games__feature-title,
    .page-index-popular-games__step-title,
    .page-index-popular-games__tip-title {
        font-size: 1.3em;
    }
    .page-index-popular-games__cta-title {
        font-size: 1.8em;
    }
}