/* 3D Coverflow Carousel Styles */

.coverflow-section {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.coverflow-container {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coverflow-item {
    position: absolute;
    width: 280px;
    height: 350px;
    transition: all 0.6s ease;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    cursor: pointer;
}

.coverflow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.coverflow-item.active {
    z-index: 10;
    transform: translateZ(200px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.coverflow-item .reflection {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background-image: var(--bg-image);
    transform: rotateX(180deg);
    opacity: 0.4;
    filter: blur(2px);
    mask-image: linear-gradient(to bottom, transparent 50%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 50%, black 100%);
}

.coverflow-controls {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    z-index: 20;
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.autoplay-control {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.autoplay-control:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.coverflow-info {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.coverflow-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

.coverflow-info p {
    font-size: 16px;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - var(--carousel-item-gap))); }
}

/* Image loading state */
.image-loading {
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-loading::after {
    content: "Loading...";
    color: white;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coverflow-container {
        height: 300px;
    }
    
    .coverflow-item {
        width: 220px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .coverflow-container {
        height: 250px;
    }
    
    .coverflow-item {
        width: 180px;
        height: 230px;
    }
}