/* error dan empty state display */
.error-state,
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-state-icon,
.empty-state-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.error-state .error-state-icon {
    color: #ef4444;
}

.error-state h3,
.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.error-state p,
.empty-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.error-state button,
.empty-state button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.error-state button:hover,
.empty-state button:hover {
    background: #1e3a8a;
}

.error-state button .material-icons,
.empty-state button .material-icons {
    font-size: 18px;
}

/* error types dengan warna berbeda */
.error-state.network-error .error-state-icon {
    color: #f59e0b;
}

.error-state.not-found .error-state-icon {
    color: #6b7280;
}

.error-state.server-error .error-state-icon {
    color: #dc2626;
}

/* fix untuk container dengan display flex atau grid */
.video-scroll:has(.empty-state),
.video-scroll:has(.error-state),
.berita-grid:has(.empty-state),
.berita-grid:has(.error-state) {
    display: block !important;
    width: 100%;
}

.video-scroll .empty-state,
.video-scroll .error-state,
.berita-grid .empty-state,
.berita-grid .error-state {
    width: 100%;
    margin: 0 auto;
}

/* responsive */
@media (max-width: 768px) {
    .error-state,
    .empty-state {
        padding: 2rem 1rem;
        min-height: 250px;
    }
    
    .error-state-icon,
    .empty-state-icon {
        font-size: 48px;
    }
    
    .error-state h3,
    .empty-state h3 {
        font-size: 1.25rem;
    }
}
