/* Status page */

.status-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 72px 24px 96px;
    position: relative;
}

.status-head {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.status-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.status-title {
    font-family: 'Geist', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 12px;
    color: var(--text);
}

.status-title .accent {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
}

.status-subtitle {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0;
}

/* Overall banner */
.overall-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-elev-1);
    margin-bottom: 40px;
    box-shadow: 0 1px 0 rgba(10,10,10,0.02), 0 6px 20px rgba(10,10,10,0.03);
}

.overall-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #16A34A;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.overall-banner.degraded .overall-dot {
    background: #F59E0B;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.overall-banner.partial_outage .overall-dot {
    background: #F97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.overall-banner.major_outage .overall-dot {
    background: #DC2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.overall-text {
    font-family: 'Geist', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.015em;
}

/* Groups */
.group {
    margin-bottom: 36px;
}

.group-title {
    font-family: 'Geist', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--text);
}

.component-list {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.component {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.component:last-child {
    border-bottom: 0;
}

.component-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #16A34A;
}

.component-dot.degraded { background: #F59E0B; }
.component-dot.partial_outage { background: #F97316; }
.component-dot.major_outage { background: #DC2626; }

.component-info {
    flex: 1;
    min-width: 0;
}

.component-name {
    font-family: 'Geist', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--text);
}

.component-desc {
    font-size: 0.86rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 2px;
}

.component-status {
    flex-shrink: 0;
}

.component-status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #16A34A;
    text-transform: uppercase;
}

.component-status-text.degraded { color: #D97706; }
.component-status-text.partial_outage { color: #EA580C; }
.component-status-text.major_outage { color: #DC2626; }

/* Footer */
.status-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--text-dim);
}

.footer-interval {
    font-size: 0.82rem;
    color: var(--text-mute);
}

.footer-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Error */
.error-message {
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #DC2626;
    text-align: center;
    font-size: 0.95rem;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elev-2) 0%, rgba(10,10,10,0.06) 50%, var(--bg-elev-2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    border-radius: 6px;
}

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

.skeleton-banner {
    height: 64px;
    border-radius: 14px;
    margin-bottom: 40px;
}

.skeleton-group {
    margin-bottom: 36px;
}

.skeleton-group-title {
    height: 20px;
    width: 160px;
    margin-bottom: 14px;
}

.skeleton-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 0;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.skeleton-row:last-child {
    border-bottom: 0;
}

.skeleton-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-line {
    height: 14px;
}

.skeleton-line-wide {
    flex: 1;
}

.skeleton-line-narrow {
    width: 90px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .status-wrap {
        padding: 44px 18px 64px;
    }
    .overall-banner {
        padding: 16px 18px;
    }
    .component {
        padding: 14px 16px;
    }
    .component-status-text {
        font-size: 0.72rem;
    }
}
