/* ==================== */
/* Status Page Styles   */
/* ==================== */

/* Status Hero */
.status-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.status-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.status-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Overall Status Banner */
.status-banner {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 32px 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.status-banner.operational {
    background: linear-gradient(135deg, rgba(40, 200, 64, 0.1), rgba(40, 200, 64, 0.05));
    border: 1px solid rgba(40, 200, 64, 0.3);
}

.status-banner.degraded {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-banner.partial_outage {
    background: linear-gradient(135deg, rgba(255, 127, 31, 0.1), rgba(255, 127, 31, 0.05));
    border: 1px solid rgba(255, 127, 31, 0.3);
}

.status-banner.major_outage {
    background: linear-gradient(135deg, rgba(243, 21, 63, 0.1), rgba(243, 21, 63, 0.05));
    border: 1px solid rgba(243, 21, 63, 0.3);
}

.status-banner.maintenance {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.status-banner.operational .status-icon { background: rgba(40, 200, 64, 0.15); }
.status-banner.degraded .status-icon { background: rgba(255, 193, 7, 0.15); }
.status-banner.partial_outage .status-icon { background: rgba(255, 127, 31, 0.15); }
.status-banner.major_outage .status-icon { background: rgba(243, 21, 63, 0.15); }
.status-banner.maintenance .status-icon { background: rgba(59, 130, 246, 0.15); }

.status-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .status-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
}

/* Components Section */
.components-section {
    max-width: 800px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.components-list {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
}

.component-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--dark-border);
}

.component-item:last-child {
    border-bottom: none;
}

.component-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.component-icon {
    font-size: 1.25rem;
}

.component-name {
    font-weight: 600;
}

.component-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.component-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.operational {
    background: rgba(40, 200, 64, 0.15);
    color: #28c840;
}

.status-badge.degraded {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-badge.partial_outage {
    background: rgba(255, 127, 31, 0.15);
    color: var(--primary-orange);
}

.status-badge.major_outage {
    background: rgba(243, 21, 63, 0.15);
    color: var(--primary-red);
}

.status-badge.maintenance {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.uptime-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
}

/* Uptime Chart */
.uptime-section {
    max-width: 800px;
    margin: 0 auto 48px;
}

.uptime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.uptime-value-large {
    font-size: 2rem;
    font-weight: 800;
    color: #28c840;
}

.uptime-chart {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 24px;
}

.uptime-bars {
    display: flex;
    gap: 2px;
    height: 32px;
    margin-bottom: 12px;
}

.uptime-bar {
    flex: 1;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.2s;
}

.uptime-bar:hover {
    transform: scaleY(1.2);
}

.uptime-bar.up { background: #28c840; }
.uptime-bar.degraded { background: #ffc107; }
.uptime-bar.down { background: var(--primary-red); }

.uptime-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Incidents */
.incidents-section {
    max-width: 800px;
    margin: 0 auto 48px;
}

.incident-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.incident-card.active {
    border-color: rgba(243, 21, 63, 0.4);
    background: linear-gradient(135deg, rgba(243, 21, 63, 0.05), var(--dark-surface));
}

.incident-card.maintenance {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), var(--dark-surface));
}

.incident-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.incident-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.incident-title h3 {
    font-size: 1rem;
    font-weight: 600;
}

.incident-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.incident-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.incident-updates {
    border-top: 1px solid var(--dark-border);
    padding-top: 16px;
}

.incident-update {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.incident-update:last-child {
    margin-bottom: 0;
}

.update-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.update-dot.investigating { background: var(--primary-red); }
.update-dot.identified { background: var(--primary-orange); }
.update-dot.monitoring { background: #ffc107; }
.update-dot.resolved { background: #28c840; }

.update-content {
    flex: 1;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.8125rem;
}

.update-status {
    font-weight: 600;
    color: var(--text-primary);
}

.update-time {
    color: var(--text-muted);
}

.update-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.incident-components {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.incident-component {
    padding: 4px 10px;
    background: var(--dark-bg);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.no-incidents {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
}

.no-incidents svg {
    width: 48px;
    height: 48px;
    color: #28c840;
    margin-bottom: 16px;
}

.no-incidents p {
    color: var(--text-secondary);
}

/* Loading */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 48px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dark-border);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Auto-update notice */
.update-notice {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.8125rem;
}
