/* Home Page Premium Styles */

.best-cheats-section {
    padding: 6rem 0;
}

.games-carousel-section {
    padding: 6rem 0;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(172, 137, 255, 0.05) 0%, transparent 70%);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    position: relative;
    width: 320px;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.carousel-item {
    position: absolute;
    width: 320px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: white;
}

.carousel-item-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--neon-primary);
    border-color: var(--neon-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: 20%; }
.carousel-btn-next { right: 20%; }

@media (max-width: 1200px) {
    .carousel-btn-prev { left: 10%; }
    .carousel-btn-next { right: 10%; }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }
    .carousel-track, .carousel-item {
        width: 260px;
        height: 320px;
    }
    .carousel-btn { display: none; }
}

/* 3D Carousel Positioning - will be updated via JS */
.item-active { transform: translate3d(0, 0, 0) rotateY(0deg) scale(1); z-index: 5; opacity: 1; }
.item-prev { transform: translate3d(-100%, 0, -200px) rotateY(25deg) scale(0.8); z-index: 4; opacity: 0.6; }
.item-next { transform: translate3d(100%, 0, -200px) rotateY(-25deg) scale(0.8); z-index: 4; opacity: 0.6; }
.item-hidden-prev { transform: translate3d(-150%, 0, -400px) rotateY(45deg) scale(0.6); z-index: 1; opacity: 0; }
.item-hidden-next { transform: translate3d(150%, 0, -400px) rotateY(-45deg) scale(0.6); z-index: 1; opacity: 0; }

/* Best Cheats Grid */
.best-cheats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .best-cheats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .best-cheats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .best-cheats-grid { grid-template-columns: 1fr; }
}
