/**
 * Image Optimization CSS
 * Minimal styles for image optimization features
 */

/* Lazy loading images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Responsive images */
.responsive-image {
    max-width: 100%;
    height: auto;
}

/* Image optimization loading states */
.image-loading {
    background: #f0f0f0;
    position: relative;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* WebP support detection */
.webp .webp-image {
    display: block;
}

.no-webp .webp-image {
    display: none;
}

.webp .fallback-image {
    display: none;
}

.no-webp .fallback-image {
    display: block;
}
