/* ============================================
   THUMBNAIL BLUR STYLES
   Для превью в каруселях и галереях
   ============================================ */

/* Миниатюры в карусели */
.owl-thumb-blur {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.owl-thumb-blur.active {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.owl-thumb-blur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(8px);
    transition: all 0.4s ease;
}

.owl-thumb-blur img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Shimmer для миниатюр */
.owl-thumb-blur::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: thumb-shimmer 1.5s infinite;
}

@keyframes thumb-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Прогресс бар для загрузки */
.thumb-load-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
    border-radius: 0 0 6px 6px;
}

/* Для видео превью */
.video-thumb-blur {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.video-thumb-blur::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Адаптивность миниатюр */
@media (max-width: 768px) {
    .owl-thumb-blur {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .owl-thumb-blur {
        width: 50px;
        height: 50px;
    }
}