/* Game Carousel Section */
.game-carousel-section {
    padding: 80px 0;
    background:  var(--secondary-color);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    animation: scrollLeft 30s linear infinite;
    width: fit-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.game-card {
    flex: 0 0 auto;
    width: 280px;
    margin: 0 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.game-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-category {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 15px 8px 15px;
    display: inline-block;
}

.game-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 15px 20px 15px;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-card {
        width: 240px;
        margin: 0 10px;
    }
    
    .game-card-image {
        height: 160px;
    }
    
    .carousel-container {
        padding: 20px 0;
    }
    
    .game-carousel-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .game-card {
        width: 200px;
        margin: 0 8px;
    }
    
    .game-card-image {
        height: 140px;
    }
    
    .game-card-category {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .game-card-title {
        font-size: 16px;
        margin: 0 12px 15px 12px;
    }
}
