/* ============================================
   3D SLIDER CAROUSEL STYLES
   ============================================ */

.slider3d-wrapper {
    width: 100%;
    padding: 60px 0;
    overflow: hidden;
}

.slider3d-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 450px;
    perspective: 1500px;
}

.slider3d-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* ============================================
   SLIDE ITEM
   ============================================ */
.slider3d-slide {
    position: absolute;
    width: 500px;
    height: 300px;
    left: 50%;
    top: 50%;
    margin-left: -250px;
    margin-top: -150px;
    transition: all 0.6s ease;
    cursor: pointer;
}

.slider3d-slide-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.slider3d-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play overlay with FontAwesome */
.slider3d-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.slider3d-play-overlay i {
    font-size: 50px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.slider3d-slide.active .slider3d-play-overlay {
    opacity: 1;
}

.slider3d-slide.active:hover .slider3d-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
}

.slider3d-slide.active:hover .slider3d-play-overlay i {
    color: #FF6B00;
}

/* ============================================
   NAVIGATION ARROWS - ẨN ĐI
   ============================================ */
.slider3d-nav {
    display: none;
}

/* ============================================
   PAGINATION BULLETS - DASHES (SPACED)
   ============================================ */
.slider3d-pagination {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.slider3d-dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider3d-dot:hover {
    background: #FF6B00;
    transform: scaleX(1.2);
}

.slider3d-dot.active {
    background: #FF6B00;
    transform: scaleX(1.3);
}

/* ============================================
   VIDEO POPUP
   ============================================ */
.slider3d-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.slider3d-popup.active {
    opacity: 1;
    pointer-events: all;
}

.slider3d-popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.slider3d-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.slider3d-popup-close:hover {
    background: #FF6B00;
    color: white;
    transform: rotate(90deg);
}

.slider3d-popup-video {
    width: 100%;
    height: 100%;
}

.slider3d-popup-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   MOBILE RESPONSIVE - Giữ nguyên 3D carousel
   ============================================ */
@media (max-width: 768px) {
    .slider3d-wrapper {
        padding: 40px 0;
    }

    .slider3d-container {
        height: 280px;
        perspective: 1000px;
    }

    .slider3d-slide {
        width: 280px;
        height: 160px;
        margin-left: -140px;
        margin-top: -80px;
    }

    .slider3d-slide-inner {
        border-radius: 15px;
    }

    .slider3d-play-overlay i {
        font-size: 40px;
    }

    .slider3d-pagination {
        bottom: -35px;
    }

    .slider3d-dot {
        width: 25px;
        height: 3px;
    }

    .slider3d-popup-content {
        width: 95%;
    }

    .slider3d-popup-close {
        top: -45px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}
