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

:root {
    --page-89bet-primary: #1A237E;
    --page-89bet-secondary: #FFD700;
    --page-89bet-text-light: #FFFFFF;
    --page-89bet-text-dark: #333333;
    --page-89bet-background-dark: #0f143a; /* Darker variant of primary for background */
    --page-89bet-background-light: #f5f5f5;
    --page-89bet-card-bg: #2a348e; /* Lighter variant of primary for cards */
    --page-89bet-border-color: #ffd7004d; /* Semi-transparent secondary */
    --page-89bet-shadow: rgba(0, 0, 0, 0.2);
}

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

.page-index-popular-games__hero {
    background: linear-gradient(135deg, var(--page-89bet-primary) 0%, var(--page-89bet-background-dark) 100%);
    color: var(--page-89bet-text-light);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-index-popular-games__hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--page-89bet-secondary) 0%, transparent 70%);
    opacity: 0.1;
    animation: floatEffect 10s ease-in-out infinite;
}

.page-index-popular-games__hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--page-89bet-secondary) 0%, transparent 70%);
    opacity: 0.08;
    animation: floatEffect 12s ease-in-out infinite reverse;
}

@keyframes floatEffect {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 20px) rotate(5deg); }
    50% { transform: translate(0, 0) rotate(0deg); }
    75% { transform: translate(-10px, -20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.page-index-popular-games__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-index-popular-games__hero-image-wrapper {
    max-width: 600px;
    width: 100%;
    margin-top: 40px;
    z-index: 1;
}

.page-index-popular-games__hero-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--page-89bet-shadow);
    transition: transform 0.3s ease-in-out;
}

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

.page-index-popular-games__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-89bet-secondary);
    text-shadow: 2px 2px 4px var(--page-89bet-shadow);
}

.page-index-popular-games__subtitle {
    font-size: 1.25em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-index-popular-games__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__button--primary {
    background-color: var(--page-89bet-secondary);
    color: var(--page-89bet-primary);
    border: 2px solid var(--page-89bet-secondary);
}

.page-index-popular-games__button--primary:hover {
    background-color: #e5c100; /* Slightly darker gold */
    border-color: #e5c100;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__button--secondary {
    background-color: transparent;
    color: var(--page-89bet-secondary);
    border: 2px solid var(--page-89bet-secondary);
}

.page-index-popular-games__button--secondary:hover {
    background-color: var(--page-89bet-secondary);
    color: var(--page-89bet-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-index-popular-games__section-title {
    font-size: 2.8em;
    color: var(--page-89bet-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.page-index-popular-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-89bet-secondary);
    border-radius: 2px;
}

.page-index-popular-games__section-description {
    font-size: 1.1em;
    color: var(--page-89bet-text-dark);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-index-popular-games__game-card {
    background-color: var(--page-89bet-card-bg);
    color: var(--page-89bet-text-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-89bet-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-popular-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.page-index-popular-games__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--page-89bet-secondary);
}

.page-index-popular-games__game-card-title {
    font-size: 1.8em;
    color: var(--page-89bet-secondary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-index-popular-games__game-card-text {
    font-size: 1em;
    margin-bottom: 15px;
    opacity: 0.85;
    flex-grow: 1;
}

.page-index-popular-games__game-card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-index-popular-games__game-card-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.95em;
    opacity: 0.9;
}

.page-index-popular-games__game-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--page-89bet-secondary);
    font-weight: bold;
}

.page-index-popular-games__button--card {
    width: 100%;
    text-align: center;
    background-color: var(--page-89bet-secondary);
    color: var(--page-89bet-primary);
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__button--card:hover {
    background-color: #e5c100;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-index-popular-games__benefit-item {
    background-color: var(--page-89bet-text-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.page-index-popular-games__benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.page-index-popular-games__benefit-title {
    font-size: 1.8em;
    color: var(--page-89bet-primary);
    margin-bottom: 10px;
}

.page-index-popular-games__benefit-text {
    font-size: 1em;
    color: var(--page-89bet-text-dark);
}

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

.page-index-popular-games__step-item {
    background-color: var(--page-89bet-card-bg);
    color: var(--page-89bet-text-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-89bet-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-popular-games__step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-index-popular-games__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--page-89bet-secondary);
    margin-bottom: 15px;
    line-height: 1;
}

.page-index-popular-games__step-title {
    font-size: 1.8em;
    color: var(--page-89bet-text-light);
    margin-bottom: 15px;
}

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

.page-index-popular-games__button--step {
    background-color: var(--page-89bet-secondary);
    color: var(--page-89bet-primary);
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
    width: auto;
    margin-top: auto;
}

.page-index-popular-games__button--step:hover {
    background-color: #e5c100;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__section--responsible-gaming {
    background-color: var(--page-89bet-primary);
    color: var(--page-89bet-text-light);
    border-radius: 15px;
    padding: 60px 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-index-popular-games__section--responsible-gaming .page-index-popular-games__section-title {
    color: var(--page-89bet-secondary);
}

.page-index-popular-games__section--responsible-gaming .page-index-popular-games__section-title::after {
    background-color: var(--page-89bet-text-light);
}

.page-index-popular-games__section--responsible-gaming .page-index-popular-games__section-description {
    color: var(--page-89bet-text-light);
    opacity: 0.9;
}

.page-index-popular-games__section--cta {
    background-color: var(--page-89bet-primary);
    color: var(--page-89bet-text-light);
    padding: 80px 20px;
    border-radius: 15px;
    margin-bottom: 60px;
}

.page-index-popular-games__section--cta .page-index-popular-games__section-title {
    color: var(--page-89bet-secondary);
}

.page-index-popular-games__section--cta .page-index-popular-games__section-title::after {
    background-color: var(--page-89bet-text-light);
}

.page-index-popular-games__section--cta .page-index-popular-games__section-description {
    color: var(--page-89bet-text-light);
    margin-bottom: 40px;
}

.page-index-popular-games__button--cta {
    background-color: var(--page-89bet-secondary);
    color: var(--page-89bet-primary);
    border: 2px solid var(--page-89bet-secondary);
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
    margin: 15px;
}

.page-index-popular-games__button--cta:hover {
    background-color: #e5c100;
    border-color: #e5c100;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games__button--cta-secondary {
    background-color: transparent;
    color: var(--page-89bet-secondary);
    border: 2px solid var(--page-89bet-secondary);
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
    margin: 15px;
}

.page-index-popular-games__button--cta-secondary:hover {
    background-color: var(--page-89bet-secondary);
    color: var(--page-89bet-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index-popular-games__title {
        font-size: 2.8em;
    }
    .page-index-popular-games__section-title {
        font-size: 2.2em;
    }
    .page-index-popular-games__game-grid,
    .page-index-popular-games__benefits-grid,
    .page-index-popular-games__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index-popular-games__hero {
        padding: 60px 15px;
        flex-direction: column;
    }
    .page-index-popular-games__hero-image-wrapper {
        margin-top: 30px;
    }
    .page-index-popular-games__title {
        font-size: 2.2em;
    }
    .page-index-popular-games__subtitle {
        font-size: 1.1em;
    }
    .page-index-popular-games__section {
        padding: 40px 15px;
    }
    .page-index-popular-games__section-title {
        font-size: 1.8em;
    }
    .page-index-popular-games__section-description {
        font-size: 1em;
    }
    .page-index-popular-games__game-card,
    .page-index-popular-games__benefit-item,
    .page-index-popular-games__step-item {
        padding: 25px;
    }
    .page-index-popular-games__game-card-title,
    .page-index-popular-games__benefit-title,
    .page-index-popular-games__step-title {
        font-size: 1.5em;
    }
    .page-index-popular-games__button,
    .page-index-popular-games__button--cta {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .page-index-popular-games__button--cta-secondary {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .page-index-popular-games__section--responsible-gaming,
    .page-index-popular-games__section--cta {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .page-index-popular-games__title {
        font-size: 1.8em;
    }
    .page-index-popular-games__subtitle {
        font-size: 0.95em;
    }
    .page-index-popular-games__section-title {
        font-size: 1.6em;
    }
    .page-index-popular-games__button {
        display: block;
        width: calc(100% - 20px);
        margin: 10px auto;
    }
    .page-index-popular-games__button--cta,
    .page-index-popular-games__button--cta-secondary {
        font-size: 1em;
        padding: 10px 20px;
    }
    .page-index-popular-games__game-grid,
    .page-index-popular-games__benefits-grid,
    .page-index-popular-games__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-index-popular-games__game-card-image {
        height: 180px;
    }
    .page-index-popular-games__section--responsible-gaming,
    .page-index-popular-games__section--cta {
        border-radius: 0;
    }
}