/* Video Reel Component - Bottom Left Display */
/* Vertical 9:16 videos with full controls */

.video-reel-container {
    position: fixed !important;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    visibility: visible;
    pointer-events: auto;
}

.video-reel-container.maximized {
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000;
    position: fixed !important;
}

/* Prevent horizontal scroll when maximized */
body:has(.video-reel-container.maximized) {
    overflow: hidden;
}

.video-reel-container.maximized .video-display {
    width: 400px;
    height: 710px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.video-reel-container.maximized .video-navigation {
    margin-top: 15px;
    background: transparent;
}

.video-reel-container.minimized .video-display,
.video-reel-container.minimized .video-navigation {
    display: none;
}

.video-reel-container.minimized {
    bottom: 20px !important;
    left: 20px !important;
    top: auto !important;
    transform: none !important;
}

.video-reel-container.minimized .reel-toggle-btn {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Thumbnail reel removed - using prev/next navigation */

/* Main Video Display */
.video-display {
    position: relative;
    width: 180px;
    height: 320px; /* 9:16 ratio */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-display:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.video-display:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.reel-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 15px 10px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    pointer-events: none;
}

/* Volume Slider */
.volume-slider-container {
    flex: 1;
    max-width: 60px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Video Navigation Buttons - Below the video */
.video-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    background: transparent;
}

.nav-btn {
    background: rgba(188, 101, 52, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(188, 101, 52, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(188, 101, 52, 0.5);
}

.nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Removed SVG styles - using text buttons now */

.video-counter {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Toggle Button */
.reel-toggle-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #BC6534 0%, #d4844f 100%);
    color: white;
    border: 3px solid white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 101, 52, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.reel-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(188, 101, 52, 0.6);
}

.reel-toggle-btn:active {
    transform: scale(0.95);
}

/* When minimized, toggle button becomes floating */
.video-reel-container.minimized .reel-toggle-btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(188, 101, 52, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(188, 101, 52, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-reel-container {
        bottom: 10px;
        left: 10px;
    }
    
    .video-display {
        width: 140px;
        height: 250px;
    }
    
    .video-navigation {
        gap: 10px;
        margin-top: 8px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
    }
    
    .control-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .video-counter {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .video-reel-container {
        bottom: 5px;
        left: 5px;
    }
    
    .video-display {
        width: 120px;
        height: 215px;
    }
    
    .video-navigation {
        gap: 8px;
        margin-top: 6px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .video-counter {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Maximized mode responsive */
@media (max-width: 768px) {
    .video-reel-container.maximized .video-display {
        width: 90vw;
        max-width: 360px;
        height: auto;
        aspect-ratio: 9/16;
    }
}

@media (max-width: 480px) {
    .video-reel-container.maximized .video-display {
        width: 95vw;
        max-width: 320px;
    }
}

/* Loading state */
.reel-video-player:not([src]) {
    background: linear-gradient(135deg, #BC6534 0%, #d4844f 100%);
}

.reel-video-player:not([src])::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Smooth transitions */
.video-display,
.thumbnail-item,
.control-btn,
.reel-toggle-btn {
    will-change: transform;
}

