/**
 * Image Fallback Styles
 * Styling for placeholder images and error states
 */

/* Default styling for error fallback images */
.img-error-fallback {
    /* opacity: 0.7; */
    /* filter: grayscale(20%); */
    transition: opacity 0.3s ease;
}

.img-error-fallback:hover {
    opacity: 0.9;
}

/* Placeholder image styling */
img[src*="default-placeholder.svg"] {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    padding: 10px;
}

/* Avatar placeholder styling */
.avatar-placeholder {
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
}

/* News/Article image placeholder */
.news-image-placeholder,
.article-image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.news-image-placeholder::before,
.article-image-placeholder::before {
    content: "📷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
}

/* Logo placeholder styling */
.logo-placeholder {
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

/* Gallery image placeholder */
.gallery-image-placeholder {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    position: relative;
}

.gallery-image-placeholder::after {
    content: "Gambar tidak tersedia";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
    width: 80%;
}

/* Responsive placeholder sizing */
@media (max-width: 768px) {
    .img-error-fallback {
        max-width: auto;
    }
    
    .news-image-placeholder::before,
    .article-image-placeholder::before {
        font-size: 1.5rem;
    }
}
