/**
 * Mauritius Video Widget - Premium Design
 * Version: 4.0.0
 * Matches unideals.online design - One slide at a time
 */

/* ===== FIXED WIDGET CONTAINER ===== */
#mvw-fixed-video-widget {
    position: fixed;
    z-index: 99998;
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ===== BACKDROP OVERLAY ===== */
.mvw-coverflow-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    z-index: 99999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mvw-coverflow-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== COVERFLOW ONLY - NO CONTAINER ===== */
.mvw-coverflow-only {
    position: absolute;
    top: 52.5px; /* 75% of 70px */
    left: 0;
    width: 262.5px; /* 75% of 350px */
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 100000;
}

.mvw-coverflow-only.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* ===== CLOSE BUTTON - MATCHES PANEL CLOSE BUTTON ===== */
.mvw-coverflow-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: #3296A4 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100001;
    transition: all 0.3s ease;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    animation: mvwCloseButtonEntrance 0.5s ease-out;
}

.mvw-coverflow-close:hover {
    background: rgba(50, 150, 164, 0.8) !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mvw-coverflow-close:active {
    transform: rotate(90deg) scale(1.05);
}

.mvw-coverflow-close:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.5);
}

.mvw-close-icon {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
}

.mvw-close-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: all 0.4s ease;
}

.mvw-coverflow-close:active .mvw-close-ripple {
    width: 100px;
    height: 100px;
    opacity: 1;
    transition: all 0.3s ease;
}

@keyframes mvwCloseButtonEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ===== TRIGGER BUTTON - EXPLORE EXPERIENCES ===== */
.mvw-widget-trigger {
    min-width: 150px; /* 75% of 200px */
    height: 52.5px; /* 75% of 70px */
    padding: 0 15px; /* 75% of 20px */
    border-radius: 26.25px; /* 75% of 35px */
    background: linear-gradient(135deg,
        rgba(26, 128, 140, 0.95) 0%,
        rgba(42, 140, 153, 0.9) 50%,
        rgba(74, 179, 194, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(26, 128, 140, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(26, 128, 140, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    user-select: none;
    animation: mvwFloat 3s ease-in-out infinite, mvwGlow 3s ease-in-out infinite;
    overflow: hidden;
}

.mvw-widget-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.mvw-widget-trigger:hover::before {
    left: 100%;
}

.mvw-widget-trigger:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(26, 128, 140, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(26, 128, 140, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.mvw-widget-trigger:active {
    transform: translateY(-3px) scale(1.02);
}

.mvw-widget-trigger:focus {
    outline: none;
    box-shadow: 
        0 15px 40px rgba(26, 128, 140, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(26, 128, 140, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.5);
}

.mvw-widget-trigger:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.mvw-widget-trigger.active {
    background: linear-gradient(135deg,
        rgba(26, 128, 140, 1) 0%,
        rgba(42, 140, 153, 0.95) 50%,
        rgba(74, 179, 194, 0.9) 100%);
}

.mvw-trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.mvw-trigger-icon {
    font-size: 24px; /* 75% of 32px */
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mvw-widget-trigger:hover .mvw-trigger-icon {
    transform: scale(1.15) rotate(5deg);
}

.mvw-trigger-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mvw-trigger-label {
    font-size: 12px; /* 75% of 16px */
    font-weight: 700;
    letter-spacing: 0.375px; /* 75% of 0.5px */
    text-transform: uppercase;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mvw-trigger-sublabel {
    font-size: 9.75px; /* 75% of 13px */
    font-weight: 500;
    letter-spacing: 0.225px; /* 75% of 0.3px */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mvw-trigger-arrow {
    font-size: 13.5px; /* 75% of 18px */
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    animation: mvwArrowPulse 2s ease-in-out infinite;
}

.mvw-widget-trigger:hover .mvw-trigger-arrow {
    transform: translateX(5px);
    animation: none;
}

.mvw-trigger-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; /* 75% of 200px */
    height: 52.5px; /* 75% of 70px */
    border-radius: 26.25px; /* 75% of 35px */
    border: 2px solid rgba(26, 128, 140, 0.6);
    animation: mvwPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes mvwFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes mvwPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

@keyframes mvwArrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(3px);
        opacity: 0.8;
    }
}

@keyframes mvwGlow {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(26, 128, 140, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            0 0 20px rgba(26, 128, 140, 0.3);
    }
    50% {
        box-shadow: 
            0 10px 30px rgba(26, 128, 140, 0.6),
            0 5px 15px rgba(0, 0, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            0 0 30px rgba(26, 128, 140, 0.5);
    }
}

/* Coverflow container removed - using .mvw-coverflow-only instead */

/* ===== COVERFLOW WRAPPER ===== */
.mvw-video-coverflow-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: visible;
    min-height: 350px;
    background: transparent;
    border-radius: 15px;
}

/* ===== SWIPER CAROUSEL - ONE SLIDE ===== */
.mvw-video-carousel {
    width: 100%;
    height: 100%;
    padding: 10px 50px;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.mvw-video-carousel.swiper {
    overflow: visible;
}

.mvw-video-carousel .swiper-wrapper {
    transform-style: preserve-3d;
    align-items: center;
}

/* ===== VIDEO SLIDE - ONE AT A TIME ===== */
.mvw-video-slide {
    width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.mvw-video-slide.swiper-slide-active {
    transform: scale(1);
    z-index: 10;
}

/* ===== VIDEO SLIDE BOX ===== */
.mvw-video-slide-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: #000;
}

/* ===== VIDEO PLAYER ===== */
.mvw-slide-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.mvw-slide-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 15px;
    background: #000;
}

.mvw-slide-youtube-iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px;
    overflow: hidden;
    z-index: 2;
}

.mvw-slide-youtube-iframe iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 15px;
    display: block;
}

/* ===== CONTENT OVERLAY - UNIDEALS STYLE ===== */
.mvw-video-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 20px;
    color: #D1CBA4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    pointer-events: none;
}

.mvw-slide-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.2;
    color: #1a808c; /* Same blue as arrow */
    font-family: 'Poppins', sans-serif;
}

.mvw-slide-desc {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    color: #1a808c; /* Same blue as arrow */
    font-family: 'Poppins', sans-serif;
}

/* ===== NAVIGATION BUTTONS ===== */
.mvw-carousel-prev,
.mvw-carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(26, 128, 140, 0.95) 0%,
        rgba(42, 140, 153, 0.9) 50%,
        rgba(74, 179, 194, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 6px 20px rgba(26, 128, 140, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mvw-carousel-prev:hover,
.mvw-carousel-next:hover {
    transform: scale(1.15) translateZ(10px);
    background: linear-gradient(135deg,
        rgba(26, 128, 140, 1) 0%,
        rgba(42, 140, 153, 0.95) 50%,
        rgba(74, 179, 194, 0.9) 100%);
    box-shadow: 
        0 10px 30px rgba(26, 128, 140, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.mvw-carousel-prev::after,
.mvw-carousel-next::after {
    font-size: 16px;
    font-weight: bold;
}

/* ===== COVERFLOW 3D SHADOWS ===== */
.mvw-video-carousel.swiper-3d .swiper-slide-shadow-left,
.mvw-video-carousel.swiper-3d .swiper-slide-shadow-right {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

.mvw-video-carousel.swiper-3d .swiper-slide-shadow-left {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
}

.mvw-video-carousel.swiper-3d .swiper-slide-shadow-right {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 575px) {
    .mvw-coverflow-only {
        width: 90vw !important;
        max-width: 90vw !important;
    }
    
    .mvw-video-slide {
        height: 300px !important;
    }
    
    .mvw-video-carousel {
        padding: 8px 40px;
    }
    
    .mvw-widget-trigger {
        min-width: 120px; /* 75% of 160px */
        height: 41.25px; /* 75% of 55px */
        padding: 0 11.25px; /* 75% of 15px */
        gap: 7.5px; /* 75% of 10px */
    }
    
    .mvw-trigger-icon {
        font-size: 18px; /* 75% of 24px */
    }
    
    .mvw-trigger-label {
        font-size: 10.5px; /* 75% of 14px */
        color: #ffffff;
    }
    
    .mvw-trigger-sublabel {
        font-size: 8.25px; /* 75% of 11px */
        color: #ffffff;
    }
    
    .mvw-trigger-arrow {
        font-size: 10.5px; /* 75% of 14px */
        color: #ffffff;
    }
    
    .mvw-trigger-pulse {
        width: 120px; /* 75% of 160px */
        height: 41.25px; /* 75% of 55px */
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .mvw-coverflow-only {
        width: 85vw !important;
        max-width: 85vw !important;
    }
    
    .mvw-video-slide {
        height: 350px !important;
    }
}

@media (min-width: 768px) {
    .mvw-coverflow-only {
        width: 600px !important;
        max-width: 85vw !important;
    }
    
    .mvw-video-slide {
        height: 450px !important;
    }
    
    .mvw-video-carousel {
        padding: 15px 60px;
    }
}

@media (min-width: 992px) {
    .mvw-coverflow-only {
        width: 700px !important;
        max-width: 80vw !important;
    }
    
    .mvw-video-slide {
        height: 500px !important;
    }
}

@media (min-width: 1200px) {
    .mvw-coverflow-only {
        width: 800px !important;
        max-width: 75vw !important;
    }
    
    .mvw-video-slide {
        height: 550px !important;
    }
}

/* ===== NO VIDEOS ===== */
.mvw-no-videos {
    text-align: center;
    padding: 40px 20px;
    color: #D1CBA4;
    font-size: 1rem;
}
