/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.carousel {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 auto;
    width: calc(20% - 1.2rem);
    min-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-10px);
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.game-card img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

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

.game-info {
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.game-info p {
    font-size: 0.9rem;
    color: var(--text);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 1rem;
}

.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.carousel-controls button:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.1);
}

/* Custom hover effects */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, var(--card-bg) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover::after {
    opacity: 1;
}

/* Green highlight effect */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--green-highlight);
    transition: height 0.3s ease;
    z-index: 2;
}

.game-card:hover::before {
    height: 100%;
}

/* Responsive design for carousel */
@media (max-width: 1200px) {
    .carousel-item {
        width: calc(25% - 1.2rem);
    }
}

@media (max-width: 900px) {
    .carousel-item {
        width: calc(33.33% - 1.2rem);
    }
}

@media (max-width: 600px) {
    .carousel-item {
        width: calc(100% - 1.2rem);
    }
    
    .carousel {
        gap: 1rem;
    }
} 