/* DevAPI Hub - system status page */

.status-page {
    padding: 4rem 0 5rem;
}

.status-container {
    max-width: 880px;
}

.status-header h1 {
    margin: 0.75rem 0 0.5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
}

.status-header p {
    color: var(--dh-text-muted);
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 3rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--dh-border);
    border-left-width: 4px;
    border-radius: var(--dh-radius-lg);
    background: var(--dh-surface);
}

.status-banner .dh-dot {
    width: 0.75rem;
    height: 0.75rem;
}

.status-banner h2 {
    margin: 0;
    font-size: 1.25rem;
}

.status-banner p {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--dh-text-muted);
}

.status-banner--operational { border-left-color: var(--dh-success-dot); }
.status-banner--degraded { border-left-color: var(--dh-warning-dot); }
.status-banner--partial { border-left-color: var(--dh-orange-dot); }
.status-banner--major { border-left-color: var(--dh-danger-dot); }
.status-banner--maintenance { border-left-color: var(--dh-info-dot); }

.status-section {
    margin-bottom: 3rem;
}

.status-section__title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.status-section__title .dh-mono {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--dh-text-muted);
}

.status-list {
    list-style: none;
    overflow: hidden;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dh-border);
}

.status-row:last-child {
    border-bottom: none;
}

.status-row__main {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.status-row__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dh-text);
}

a.status-row__name:hover {
    color: var(--dh-accent-text);
}

.status-row__desc {
    font-size: 0.8125rem;
    color: var(--dh-text-muted);
}

.status-row__detail {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--dh-text-subtle);
}

.status-row--compact {
    padding: 0.625rem 1.25rem;
}

.status-row--compact .status-row__name {
    font-size: 0.875rem;
    font-weight: 400;
}

/* API groups */
.status-apis {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.status-group {
    overflow: hidden;
}

.status-group summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    list-style: none;
}

.status-group summary::-webkit-details-marker {
    display: none;
}

.status-group summary:hover {
    background: var(--dh-bg-subtle);
}

.status-group__name {
    font-size: 0.9375rem;
    font-weight: 500;
}

.status-group__count {
    margin-right: auto;
    font-size: 0.75rem;
    color: var(--dh-text-muted);
}

.status-group__chevron {
    font-size: 0.75rem;
    color: var(--dh-text-subtle);
    transition: transform 0.15s ease;
}

.status-group[open] .status-group__chevron {
    transform: rotate(180deg);
}

.status-group ul {
    list-style: none;
    border-top: 1px solid var(--dh-border);
}

/* Incidents */
.status-incidents {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.status-incident {
    padding: 1.25rem;
}

.status-incident__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.status-incident h3 {
    margin: 0;
    font-size: 1rem;
}

.status-incident p {
    font-size: 0.875rem;
    color: var(--dh-text-muted);
}

.status-incident__meta {
    margin-top: 0.5rem;
    font-size: 0.75rem !important;
    color: var(--dh-text-subtle) !important;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dh-border);
    font-size: 0.8125rem;
    color: var(--dh-text-muted);
}

.status-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-help {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--dh-text-muted);
}

.status-help a {
    color: var(--dh-accent-text);
}

@media (max-width: 640px) {
    .status-page {
        padding: 2.5rem 0 3.5rem;
    }

    .status-row {
        align-items: flex-start;
    }

    .status-group__count {
        display: none;
    }

    .status-group__name {
        margin-right: auto;
    }
}
