/*
3D Coverflow Styles for Laravel Project
Based on TemplateMo 595 3d coverflow
*/

@charset "utf-8";

/* 3D Coverflow Styles */
.coverflow-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, #93b1ce 0%, #7a9bc4 25%, #6b8bb8 50%, #5c7bac 75%, #4d6ba0 100%);
    position: relative;
    overflow: hidden;
}

.coverflow-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    position: relative;
}

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

.coverflow-item {
    position: absolute;
    width: 600px;
    height: 600px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    user-select: none;
}

.coverflow-item .cover {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    background: #333;
}

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

/* Reflection */
.coverflow-item .reflection {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transform: scaleY(-1);
    opacity: 0.2;
    filter: blur(2px);
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.8) 50%, 
        rgba(0, 0, 0, 1) 100%);
    overflow: hidden;
}

/* Coverflow Item Info */
.coverflow-item-info {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 100%;
    text-align: center;
    color: white;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
}

.coverflow-item.active .coverflow-item-info {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.coverflow-item-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.coverflow-title-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.coverflow-title-link:hover {
    color: #ff6b6b;
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.6);
    transform: scale(1.05);
}

.coverflow-book-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.coverflow-book-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}

/* Active item (center) */
.coverflow-item.active {
    z-index: 100;
    transform: translateX(0) translateZ(0) rotateY(0deg);
}

.coverflow-item.active .cover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
}

/* Navigation */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 200;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
    left: 80px;
}

.nav-button.next {
    right: 80px;
}

/* Dots indicator */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 200;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.4);
}

/* Info display */
.coverflow-info {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 200;
}

.coverflow-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

.coverflow-info p {
    font-size: 16px;
    opacity: 0.7;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* Smooth image loading */
.image-loading {
    background: linear-gradient(45deg, #333, #555);
    position: relative;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .coverflow-wrapper {
        height: 100vh;
        min-height: 600px;
        overflow: hidden;
        padding: 20px 0;
    }

    .coverflow {
        height: 100vh;
        min-height: 600px;
    }

    .coverflow-container {
        padding: 0 15px;
    }

    .coverflow-item {
        width: 300px;
        height: 300px;
    }

    .coverflow-item-info {
        bottom: -80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 280px;
    }

    .coverflow-item-title {
        font-size: 18px;
        max-width: 280px;
        margin-bottom: 10px;
    }

    .coverflow-book-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin-bottom: 15px;
    }

    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .nav-button.prev {
        left: 15px;
    }

    .nav-button.next {
        right: 15px;
    }

    .dots-container {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .coverflow-wrapper {
        height: 100vh;
        min-height: 500px;
        overflow: hidden;
        padding: 10px 0;
    }

    .coverflow {
        height: 100vh;
        min-height: 500px;
    }

    .coverflow-container {
        padding: 0 10px;
    }

    .coverflow-item {
        width: 250px;
        height: 250px;
    }

    .coverflow-item-info {
        bottom: -70px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 240px;
    }

    .coverflow-item-title {
        font-size: 16px;
        max-width: 240px;
        margin-bottom: 8px;
    }

    .coverflow-book-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .nav-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .nav-button.prev {
        left: 10px;
    }

    .nav-button.next {
        right: 10px;
    }

    .dots-container {
        bottom: 5px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .coverflow-wrapper {
        height: 100vh;
        min-height: 450px;
        overflow: hidden;
        padding: 5px 0;
    }

    .coverflow {
        height: 100vh;
        min-height: 450px;
    }

    .coverflow-container {
        padding: 0 5px;
    }

    .coverflow-item {
        width: 200px;
        height: 200px;
    }

    .coverflow-item-info {
        bottom: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 98%;
        max-width: 200px;
    }

    .coverflow-item-title {
        font-size: 14px;
        max-width: 200px;
        margin-bottom: 6px;
    }

    .coverflow-book-btn {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 10px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-button.prev {
        left: 5px;
    }

    .nav-button.next {
        right: 5px;
    }

    .dots-container {
        bottom: 2px;
    }
}
