/* -----------------------------
   stokesnet.xyz - uptime status page
-------------------------------- */

@font-face {
    font-family: 'BlackOpsOne';
    src: url('https://assets.stokesnet.xyz/fonts/BlackOpsOne.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Rajdhani';
    src: url('https://assets.stokesnet.xyz/fonts/Rajdhani.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0; width: 100%; min-height: 100vh;
    background: var(--dark-mode-background-color);
    color: var(--dark-mode-text-color);
    font-family: 'Rajdhani', -apple-system, sans-serif;
}

.status-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 20px 0;
}
.status-brand { font-family: 'BlackOpsOne', -apple-system, sans-serif; font-size: 20px; letter-spacing: 0.14em; }
.status-brand a { color: var(--dark-mode-text-color); text-decoration: none; }
.status-brand span { color: var(--dark-mode-text-hover-color); }
.status-topbar a.status-home { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14.5px; }
.status-topbar a.status-home:hover { color: #fff; }

.status-shell { max-width: 920px; margin: 0 auto; padding: 20px 20px 80px; }

/* ---- overall banner ---- */
.status-banner {
    border-radius: 16px;
    padding: 26px 28px;
    margin: 20px 0 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0px 0px 24px 0px rgba(0,0,0,0.2);
}
.status-banner__icon { width: 34px; height: 34px; flex: 0 0 auto; }
.status-banner__icon svg { width: 100%; height: 100%; }
.status-banner h1 { font-family: 'BlackOpsOne', -apple-system, sans-serif; font-size: 21px; margin: 0 0 4px; letter-spacing: 0.02em; }
.status-banner p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.65); }

.status-banner--operational { background: rgba(89,214,143,0.12); box-shadow: 0 0 0 1px rgba(89,214,143,0.25), 0px 0px 24px 0px rgba(0,0,0,0.2); }
.status-banner--operational .status-banner__icon { color: #59d68f; }
.status-banner--degraded { background: rgba(240,185,85,0.12); box-shadow: 0 0 0 1px rgba(240,185,85,0.25), 0px 0px 24px 0px rgba(0,0,0,0.2); }
.status-banner--degraded .status-banner__icon { color: #f0b955; }
.status-banner--down { background: rgba(240,104,95,0.12); box-shadow: 0 0 0 1px rgba(240,104,95,0.25), 0px 0px 24px 0px rgba(0,0,0,0.2); }
.status-banner--down .status-banner__icon { color: #f0685f; }

/* ---- category sections ---- */
.status-category { margin-bottom: 30px; }
.status-category h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.42);
    margin: 0 0 10px;
    padding: 0 4px;
}
.status-group {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
}

/* ---- service row ---- */
.status-row { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.045); }
.status-row:last-child { border-bottom: none; }
.status-row__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.status-row__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-row__name strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-row__name span { font-size: 12.5px; color: rgba(255,255,255,0.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-row__right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.status-row__uptime { font-size: 12.5px; color: rgba(255,255,255,0.45); white-space: nowrap; }
.status-row__latency { font-size: 12.5px; color: rgba(255,255,255,0.32); white-space: nowrap; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.status-pill--up { background: rgba(89,214,143,0.12); color: #59d68f; }
.status-pill--up::before { background: #59d68f; box-shadow: 0 0 6px #59d68f; }
.status-pill--degraded { background: rgba(240,185,85,0.14); color: #f0b955; }
.status-pill--degraded::before { background: #f0b955; box-shadow: 0 0 6px #f0b955; }
.status-pill--down { background: rgba(240,104,95,0.14); color: #f0685f; }
.status-pill--down::before { background: #f0685f; box-shadow: 0 0 6px #f0685f; }
.status-pill--unknown { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); }
.status-pill--unknown::before { background: rgba(255,255,255,0.4); }

/* ---- 90-day bar strip ---- */
.status-bars { display: flex; gap: 2.5px; height: 34px; align-items: flex-end; }
.status-bar {
    flex: 1 1 0;
    min-width: 2px;
    height: 100%;
    border-radius: 2px;
    background: rgba(255,255,255,0.07);
    cursor: default;
    transition: transform .12s ease;
}
.status-bar:hover { transform: scaleY(1.08); }
.status-bar--up { background: #59d68f; }
.status-bar--degraded { background: #f0b955; }
.status-bar--down { background: #f0685f; }
.status-bar--none { background: rgba(255,255,255,0.06); }

.status-bars-range { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: rgba(255,255,255,0.32); }

.status-empty { text-align: center; color: rgba(255,255,255,0.4); padding: 60px 20px; font-size: 15px; }
.status-footer { text-align: center; margin-top: 30px; font-size: 12.5px; color: rgba(255,255,255,0.32); }

@media (max-width: 640px) {
    .status-topbar, .status-shell { padding-left: 16px; padding-right: 16px; }
    .status-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
    .status-row__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .status-row__right { width: 100%; justify-content: space-between; }
    .status-bars { height: 28px; gap: 2px; }
}
