/* Page-specific styles for Status */
/* Extracted from style.css */

/* ═══════════════════════════════════════
   System Status
   ═══════════════════════════════════════ */

.status-content h2 {
    display: block;
    margin-top: 48px;
}

.status-content h2:first-child,
.status-content section:first-of-type h2 {
    margin-top: 0;
}

/* ─── Overall Banner ─── */
.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 1.05em;
    flex-wrap: wrap;
}

.status-banner.status-operational {
    background: var(--color-alert-success-bg);
    border: 1px solid var(--color-alert-success-border);
    color: var(--color-alert-success-text);
}

.status-banner.status-degraded {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: var(--color-warning-heading);
}

.status-timestamp {
    margin-left: auto;
    font-size: 0.78em;
    font-weight: 400;
    opacity: 0.7;
}

/* ─── Status Dot ─── */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-banner.status-operational .status-dot,
.status-dot-operational {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.status-banner.status-degraded .status-dot,
.status-dot-degraded {
    background: #eab308;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.4);
}

.status-dot-down {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* ─── Resource Gauges ─── */
.status-gauges {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.status-gauge {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 18px 22px;
}

.gauge-label {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--color-text-heading);
    margin-bottom: 10px;
}

.gauge-bar {
    height: 8px;
    background: var(--color-bg-page);
    border-radius: 4px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.gauge-fill.meter-ok   { background: #22c55e; }
.gauge-fill.meter-warn { background: #eab308; }
.gauge-fill.meter-crit { background: #ef4444; }

.gauge-detail {
    font-size: 0.82em;
    color: var(--color-text-faint);
    margin-top: 8px;
}

.status-uptime {
    margin-top: 16px;
    font-size: 0.9em;
    color: var(--color-text-hint);
}

.status-uptime strong {
    color: var(--color-text-heading);
}

/* ─── Service Checks ─── */
.status-checks {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.status-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
}

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

.status-check-name {
    font-weight: 600;
    font-size: 0.92em;
    color: var(--color-text-heading);
    display: block;
}

.status-check-detail {
    font-size: 0.8em;
    color: var(--color-text-faint);
}

.status-badge {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-badge-operational {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.status-badge-degraded {
    background: rgba(234, 179, 8, 0.12);
    color: #ca8a04;
}

.status-badge-down {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

[data-theme="dark"] .status-badge-operational { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
[data-theme="dark"] .status-badge-degraded   { background: rgba(234, 179, 8, 0.15); color: #facc15; }
[data-theme="dark"] .status-badge-down       { background: rgba(239, 68, 68, 0.15); color: #f87171; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .status-badge-operational { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
    :root:not([data-theme="light"]) .status-badge-degraded   { background: rgba(234, 179, 8, 0.15); color: #facc15; }
    :root:not([data-theme="light"]) .status-badge-down       { background: rgba(239, 68, 68, 0.15); color: #f87171; }
}

/* ─── PHP Extensions ─── */
.status-extensions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.status-ext {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid var(--color-border-light);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

.status-ext.ext-ok {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.status-ext.ext-missing {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.status-ext.ext-ok::before { content: '\2713 '; }
.status-ext.ext-missing::before { content: '\2717 '; }

[data-theme="dark"] .status-ext.ext-ok { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
[data-theme="dark"] .status-ext.ext-missing { background: rgba(239, 68, 68, 0.12); color: #f87171; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .status-ext.ext-ok { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
    :root:not([data-theme="light"]) .status-ext.ext-missing { background: rgba(239, 68, 68, 0.12); color: #f87171; }
}

/* ─── Status Responsive ─── */
@media (max-width: 768px) {
    .status-banner {
        font-size: 0.95em;
        padding: 16px 18px;
    }

    .status-timestamp {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .status-check {
        padding: 12px 14px;
        gap: 10px;
    }
}
