/**
 * Lymcon Video WooCommerce - Lightbox Styles
 * 
 * Estilos para el lightbox propio que soporta imágenes y videos
 */

/* ==========================================================================
   Overlay
   ========================================================================== */

.lyvwc-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lyvwc-fade-in 0.2s ease;
}

@keyframes lyvwc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Container
   ========================================================================== */

.lyvwc-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Content (imagen o video)
   ========================================================================== */

.lyvwc-lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lyvwc-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lyvwc-lightbox-video {
    max-width: 100%;
    max-height: 85vh;
    background: #000;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Botón cerrar
   ========================================================================== */

.lyvwc-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    
    border: none;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lyvwc-lightbox-close:hover {
    opacity: 1;
}

/* ==========================================================================
   Navegación
   ========================================================================== */

.lyvwc-lightbox-prev,
.lyvwc-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
}

.lyvwc-lightbox-prev svg,
.lyvwc-lightbox-next svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.lyvwc-lightbox-prev {
    left: 15px;
}

.lyvwc-lightbox-next {
    right: 15px;
}

.lyvwc-lightbox-prev:hover,
.lyvwc-lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Contador
   ========================================================================== */

.lyvwc-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .lyvwc-lightbox-prev,
    .lyvwc-lightbox-next {
        padding: 15px 10px;
        font-size: 24px;
    }
    
    .lyvwc-lightbox-prev {
        left: 5px;
    }
    
    .lyvwc-lightbox-next {
        right: 5px;
    }
    
    .lyvwc-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 36px;
    }
    
    .lyvwc-lightbox-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .lyvwc-lightbox-prev,
    .lyvwc-lightbox-next {
        padding: 10px 8px;
        font-size: 20px;
    }
    
    .lyvwc-lightbox-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
}
