/* Image Placeholder System - AiChee */
/* Professional placeholder styles for missing images */

/* Override any existing placeholder styles */
img[src*="placeholder"],
img[src*="default"],
img[src*="nonexistent"],
img[src*="missing"] {
    display: none !important;
}

/* Hide any existing placeholder text */
img::after,
img::before {
    content: none !important;
}

.image-placeholder {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    overflow: hidden;
    display: block;
    min-height: 200px;
    border: 1px solid #e2e8f0;
}

.image-placeholder:hover {
    /* No transform or box-shadow changes on hover */
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.image-placeholder-icon {
    display: none;
}

.image-placeholder-text {
    display: none;
}

/* Product Image Placeholders */
.product-image-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 300px;
    border: 1px solid #cbd5e1;
}

/* Blog Image Placeholders */
.blog-image-placeholder {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    min-height: 250px;
    border: 1px solid #fbbf24;
}

/* Category Image Placeholders */
.category-image-placeholder {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    min-height: 180px;
    border: 1px solid #93c5fd;
}

/* User Avatar Placeholders */
.avatar-placeholder {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    min-height: 60px;
    min-width: 60px;
    border-radius: 50%;
    border: 1px solid #c084fc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-placeholder {
        min-height: 150px;
    }
    
    .product-image-placeholder {
        min-height: 200px;
    }
    
    .blog-image-placeholder {
        min-height: 180px;
    }
    
    .image-placeholder-icon {
        font-size: 2rem;
    }
    
    .image-placeholder-text {
        font-size: 0.75rem;
    }
}

/* Loading State */
.image-placeholder.loading {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
