/* Lazy Loading Styles */

/* Placeholder style for loading images */
.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    min-height: 200px;
}

/* Animation for placeholder */
@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loaded image style */
.lazy-loaded {
    animation: fadeIn 0.5s ease-in;
}

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

/* Error state */
.lazy-error {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.lazy-error::before {
    content: '⚠️ Không tải được ảnh';
}

/* Blur-up effect (optional) */
img.lazy-placeholder {
    filter: blur(10px);
    transition: filter 0.3s;
}

img.lazy-loaded {
    filter: blur(0);
}
