/**
 * video-preview-modal-playlist.css
 * Styles for playlist/sequence navigation in video preview modal
 */

/* ===========================================
   Navigation Buttons (Prev/Next)
   =========================================== */

.playlist-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.playlist-nav-btn:hover:not(.disabled) {
    background: rgba(20, 184, 166, 0.8);
    border-color: rgba(20, 184, 166, 0.8);
    transform: translateY(-50%) scale(1.1);
}

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

.playlist-nav-btn svg {
    width: 24px;
    height: 24px;
}

.playlist-nav-prev {
    left: 16px;
}

.playlist-nav-next {
    right: 16px;
}

/* ===========================================
   Progress Indicator
   =========================================== */

.playlist-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 12px;
}

.playlist-progress::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-teal, #14b8a6);
    border-radius: 50%;
}

/* ===========================================
   Next Video Overlay
   =========================================== */

.playlist-next-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    animation: fadeIn 0.3s ease;
}

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

.playlist-next-content {
    text-align: center;
    max-width: 400px;
    padding: 32px;
}

.playlist-next-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-teal, #14b8a6);
    margin-bottom: 12px;
    font-weight: 600;
}

.playlist-next-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.playlist-next-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.playlist-next-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.playlist-next-play,
.playlist-next-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.playlist-next-play {
    background: var(--accent-teal, #14b8a6);
    color: #fff;
}

.playlist-next-play:hover {
    background: #0d9488;
    transform: scale(1.05);
}

.playlist-next-play svg {
    width: 18px;
    height: 18px;
}

.playlist-next-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.playlist-next-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.playlist-next-cancel svg {
    width: 16px;
    height: 16px;
}

.playlist-next-countdown {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.playlist-next-countdown span {
    display: inline-block;
    min-width: 20px;
    font-weight: 600;
    color: var(--accent-teal, #14b8a6);
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 768px) {
    .playlist-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .playlist-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .playlist-nav-prev {
        left: 8px;
    }
    
    .playlist-nav-next {
        right: 8px;
    }
    
    .playlist-progress {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .playlist-next-content {
        padding: 24px 16px;
    }
    
    .playlist-next-title {
        font-size: 1.2rem;
    }
    
    .playlist-next-actions {
        flex-direction: column;
    }
    
    .playlist-next-play,
    .playlist-next-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   Touch-friendly for mobile
   =========================================== */

@media (hover: none) {
    .playlist-nav-btn {
        /* Larger touch targets on mobile */
        width: 56px;
        height: 56px;
    }
    
    .playlist-nav-btn:active:not(.disabled) {
        background: rgba(20, 184, 166, 0.8);
        transform: translateY(-50%) scale(0.95);
    }
}

/* ===========================================
   Animation for progress indicator
   =========================================== */

.playlist-progress::before {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

