/* Blog Error States Styles */

.error-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.dz-card.error-state {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border: 1px solid #ffecb3;
}

.dz-card.no-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    color: #0d47a1;
}

.alert-info .alert-heading {
    color: #1565c0;
}

.alert-info a {
    color: #0d47a1;
    font-weight: 500;
}

.alert-info a:hover {
    color: #1976d2;
    text-decoration: underline !important;
}

.sidebar-empty-state {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.sidebar-empty-state i {
    display: block;
    margin-bottom: 0.5rem;
}

.sidebar-empty-state p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Loading state animation */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-icon i {
        font-size: 3rem !important;
    }
    
    .dz-card.error-state,
    .dz-card.no-content {
        padding: 2rem 1rem !important;
    }
    
    .alert-info {
        font-size: 0.875rem;
    }
}

/* Button hover effects for error states */
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
}

/* Icon animations */
.feather {
    transition: transform 0.3s ease;
}

.btn:hover .feather {
    transform: scale(1.1);
}

/* Error state specific styling */
.scientific-hub-error {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scientific-hub-error .dz-card {
    max-width: 600px;
    margin: 0 auto;
}