/* yeux.app status page — TradingView-inspired, dark theme */
:root {
    --st-bg: #0f0f0f;
    --st-card: #171717;
    --st-border: #262626;
    --st-muted: #a3a3a3;
    --st-text: #fafafa;
    --st-green: #22c55e;
    --st-yellow: #eab308;
    --st-red: #ef4444;
    --st-blue: #3b82f6;
}

body.status-page {
    background: var(--st-bg);
    color: var(--st-text);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.status-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.status-hero {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--st-border);
    margin-bottom: 32px;
}

.status-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.status-overall {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
}

.status-overall .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-overall.operational .dot { background: var(--st-green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.status-overall.degraded .dot { background: var(--st-yellow); box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.15); }
.status-overall.outage .dot { background: var(--st-red); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
.status-overall.maintenance .dot { background: var(--st-blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }

.status-updated {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--st-muted);
}

.status-components {
    border: 1px solid var(--st-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--st-card);
}

.status-component-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--st-border);
    font-size: 0.9375rem;
}

.status-component-row:last-child {
    border-bottom: none;
}

.status-component-name {
    font-weight: 500;
    color: var(--st-text);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--st-muted);
    white-space: nowrap;
}

.status-badge .pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.operational .pip { background: var(--st-green); }
.status-badge.degraded .pip { background: var(--st-yellow); }
.status-badge.outage .pip { background: var(--st-red); }
.status-badge.maintenance .pip { background: var(--st-blue); }

.status-section {
    margin-top: 40px;
}

.status-section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--st-muted);
    margin: 0 0 16px;
}

.status-uptime-chart {
    border: 1px solid var(--st-border);
    border-radius: 12px;
    background: var(--st-card);
    padding: 20px 18px 16px;
}

.status-uptime-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 34px;
    margin-bottom: 12px;
}

.status-uptime-bar {
    flex: 1;
    min-width: 0;
    border-radius: 2px;
    height: 100%;
    background: var(--st-green);
    opacity: 0.85;
    transition: opacity 0.15s;
}

.status-uptime-bar:hover {
    opacity: 1;
}

.status-uptime-bar.degraded { background: var(--st-yellow); }
.status-uptime-bar.outage { background: var(--st-red); }
.status-uptime-bar.maintenance { background: var(--st-blue); }

.status-uptime-months {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--st-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-uptime-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--st-muted);
}

.status-uptime-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-uptime-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.status-incidents {
    border: 1px solid var(--st-border);
    border-radius: 12px;
    background: var(--st-card);
    overflow: hidden;
}

.status-incident {
    padding: 16px 18px;
    border-bottom: 1px solid var(--st-border);
}

.status-incident:last-child {
    border-bottom: none;
}

.status-incident-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.status-incident-meta {
    font-size: 0.8125rem;
    color: var(--st-muted);
    margin-bottom: 6px;
}

.status-incident-body {
    font-size: 0.875rem;
    color: #d4d4d4;
    line-height: 1.5;
}

.status-incident.resolved .status-incident-title::before {
    content: 'Resolved — ';
    color: var(--st-green);
    font-weight: 500;
}

.status-about {
    margin-top: 40px;
    padding: 20px 18px;
    border: 1px solid var(--st-border);
    border-radius: 12px;
    background: var(--st-card);
    font-size: 0.875rem;
    color: #d4d4d4;
    line-height: 1.65;
}

.status-about h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--st-text);
    margin: 0 0 8px;
}

.status-about a {
    color: #60a5fa;
    text-decoration: underline;
}

.status-empty {
    padding: 24px 18px;
    text-align: center;
    color: var(--st-muted);
    font-size: 0.875rem;
}

.status-footer-note {
    margin-top: 32px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--st-muted);
}

@media (max-width: 640px) {
    .status-hero h1 { font-size: 1.375rem; }
    .status-component-row { padding: 12px 14px; }
}
