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

:root {
    --page-index-top-games-primary-color: #1A202C;
    --page-index-top-games-accent-color: #FFD700;
    --page-index-top-games-text-light: #F8F8F8;
    --page-index-top-games-text-dark: #333333;
    --page-index-top-games-background-light: #FFFFFF;
    --page-index-top-games-background-dark: #2D3748;
    --page-index-top-games-border-color: #4A5568;
    --page-index-top-games-shadow: rgba(0, 0, 0, 0.1);
}

.page-index-top-games {
    font-family: 'Arial', sans-serif;
    color: var(--page-index-top-games-text-dark);
    line-height: 1.6;
    background-color: var(--page-index-top-games-background-light);
}

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

.page-index-top-games__hero {
    background: linear-gradient(135deg, var(--page-index-top-games-primary-color) 0%, #3a4760 100%);
    color: var(--page-index-top-games-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index-top-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-index-top-games-accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-top-games__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

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

.page-index-top-games__btn--primary {
    background-color: var(--page-index-top-games-accent-color);
    color: var(--page-index-top-games-primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index-top-games__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

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

.page-index-top-games__btn--secondary:hover {
    background-color: var(--page-index-top-games-accent-color);
    color: var(--page-index-top-games-primary-color);
    transform: translateY(-2px);
}

.page-index-top-games__section {
    padding: 60px 0;
    background-color: var(--page-index-top-games-background-light);
}

.page-index-top-games__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.page-index-top-games__section-title {
    font-size: 2.5em;
    color: var(--page-index-top-games-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index-top-games__section-subtitle {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-top-games__feature-item {
    background-color: var(--page-index-top-games-background-dark);
    color: var(--page-index-top-games-text-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 20px var(--page-index-top-games-shadow);
    transition: transform 0.3s ease;
}

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

.page-index-top-games__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--page-index-top-games-accent-color));
}

.page-index-top-games__feature-title {
    font-size: 1.5em;
    color: var(--page-index-top-games-accent-color);
    margin-bottom: 15px;
}

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

.page-index-top-games__game-card {
    background-color: var(--page-index-top-games-background-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--page-index-top-games-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-top-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index-top-games__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--page-index-top-games-accent-color);
}

.page-index-top-games__game-card .page-index-top-games__game-title {
    font-size: 1.6em;
    color: var(--page-index-top-games-primary-color);
    padding: 20px 20px 10px;
    font-weight: bold;
}

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

.page-index-top-games__game-card .page-index-top-games__btn {
    margin: 20px;
    width: calc(100% - 40px);
}

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

.page-index-top-games__step-item {
    background-color: var(--page-index-top-games-background-light);
    border: 1px solid var(--page-index-top-games-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--page-index-top-games-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-top-games__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--page-index-top-games-accent-color);
    color: var(--page-index-top-games-primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--page-index-top-games-primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-top-games__step-title {
    font-size: 1.4em;
    color: var(--page-index-top-games-primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-top-games__step-item p {
    color: var(--page-index-top-games-text-dark);
    margin-bottom: 20px;
}

.page-index-top-games__promotions .page-index-top-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-index-top-games__promotions .page-index-top-games__promo-list li {
    background-color: #e8f5e9; /* Light green for positive feel */
    border-left: 5px solid var(--page-index-top-games-accent-color);
    padding: 15px 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--page-index-top-games-primary-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-basis: calc(50% - 20px);
    text-align: left;
}

@media (max-width: 768px) {
    .page-index-top-games__promotions .page-index-top-games__promo-list li {
        flex-basis: 100%;
    }
}

.page-index-top-games__promotions .page-index-top-games__btn {
    margin-top: 30px;
}

.page-index-top-games__responsible-gambling {
    background-color: var(--page-index-top-games-background-dark);
    color: var(--page-index-top-games-text-light);
    text-align: center;
}

.page-index-top-games__responsible-gambling .page-index-top-games__section-title {
    color: var(--page-index-top-games-accent-color);
}

.page-index-top-games__responsible-gambling p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
}

.page-index-top-games__faq .page-index-top-games__accordion {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-top-games__accordion-item {
    border: 1px solid var(--page-index-top-games-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--page-index-top-games-background-light);
}

.page-index-top-games__accordion-header {
    width: 100%;
    background-color: var(--page-index-top-games-primary-color);
    color: var(--page-index-top-games-text-light);
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-index-top-games__accordion-header::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-index-top-games__accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-index-top-games__accordion-header:hover {
    background-color: #2D3748;
}

.page-index-top-games__accordion-content {
    padding: 0 25px;
    background-color: #f0f4f8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-index-top-games__accordion-content p {
    padding: 15px 0;
    color: var(--page-index-top-games-text-dark);
}

.page-index-top-games__cta-final {
    background: linear-gradient(45deg, var(--page-index-top-games-accent-color) 0%, #e6c200 100%);
    color: var(--page-index-top-games-primary-color);
    padding: 80px 0;
    text-align: center;
}

.page-index-top-games__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--page-index-top-games-primary-color);
}

.page-index-top-games__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-top-games__hero-title {
        font-size: 2.5em;
    }
    .page-index-top-games__section-title {
        font-size: 2em;
    }
    .page-index-top-games__game-card .page-index-top-games__game-title {
        font-size: 1.4em;
    }
    .page-index-top-games__promotions .page-index-top-games__promo-list li {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .page-index-top-games__hero {
        padding: 60px 0;
    }
    .page-index-top-games__hero-title {
        font-size: 2em;
    }
    .page-index-top-games__hero-description {
        font-size: 1em;
    }
    .page-index-top-games__section {
        padding: 40px 0;
    }
    .page-index-top-games__section-title {
        font-size: 1.8em;
    }
    .page-index-top-games__feature-item,
    .page-index-top-games__game-card,
    .page-index-top-games__step-item {
        padding: 25px;
    }
    .page-index-top-games__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        top: -15px;
    }
    .page-index-top-games__promotions .page-index-top-games__promo-list li {
        flex-basis: 100%;
    }
    .page-index-top-games__cta-title {
        font-size: 2em;
    }
    .page-index-top-games__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-index-top-games__hero-title {
        font-size: 1.8em;
    }
    .page-index-top-games__section-title {
        font-size: 1.6em;
    }
    .page-index-top-games__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index-top-games__feature-item {
        padding: 20px;
    }
    .page-index-top-games__game-card .page-index-top-games__game-title {
        font-size: 1.2em;
    }
    .page-index-top-games__step-title {
        font-size: 1.2em;
    }
    .page-index-top-games__accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-index-top-games__cta-title {
        font-size: 1.8em;
    }
}