/* Enhanced Blog Image Placeholders - LeCatLinh.com */

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 2rem 0;
}

.featured-image.loading {
    min-height: 400px;
    background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 50%, #FFD700 100%);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmerOverlay 3s ease-in-out infinite;
}

.loading-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    animation: contentFloat 2s ease-in-out infinite;
}

.loading-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconPulse 1.5s ease-in-out infinite;
}

.loading-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.loading-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Category-specific gradients */
.featured-image.loading.category-study {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-image.loading.category-tips {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.featured-image.loading.category-review {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.featured-image.loading.category-diy {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Enhanced animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmerOverlay {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes contentFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Image loading states */
.featured-image img {
    transition: opacity 0.6s ease;
    opacity: 0;
}

.featured-image img.loaded {
    opacity: 1;
}

/* Fallback for when image loads successfully */
.featured-image:not(.loading) img {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .featured-image.loading {
        min-height: 300px;
    }
    
    .loading-title {
        font-size: 1.4rem;
    }
    
    .loading-icon {
        font-size: 3rem;
    }
}