/* Games Section Styles */
.games {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 250px;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.5);
}

.game-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.5) 50%, transparent 100%);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.6) 50%, rgba(13, 13, 13, 0.3) 100%);
}

.game-overlay h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.game-overlay p {
    color: var(--text-color);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.btn-play {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    align-self: flex-start;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-play:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* Responsive Games Grid */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .game-card {
        height: 220px;
    }
    
    .game-overlay h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        height: 200px;
    }
}