/* Loading CSS - Loading states and empty states */
/* Uses design system CSS variables from design-system.css */

/* Loading State */
.section-loading {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.section-loading.show {
    display: flex;
    opacity: 1;
}

.loading-state {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-lg);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

/* Coming Soon / Empty States */
.coming-soon {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-2xl);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.coming-soon h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.coming-soon p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton-text.large {
    height: 24px;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

/* Error State */
.error-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-error-light);
    margin-top: var(--space-2xl);
}

.error-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    color: var(--color-error);
}

.error-state h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-error);
    margin-bottom: var(--space-md);
}

.error-state p {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-md) 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Pulse Animation for Loading Elements */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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