/* Image fallback styling */
.image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.fallback-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.fallback-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
}

/* Lazy loading placeholder */
img.lazy {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-size: 400% 400%;
    animation: gradient-shift 2s ease-in-out infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Image loading animation */
.article-image, .hot-article-image {
    position: relative;
    overflow: hidden;
}

.article-image::before, 
.hot-article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
    z-index: 1;
    pointer-events: none;
}

.article-image img, 
.hot-article-image img {
    position: relative;
    z-index: 2;
}