/* status.css — styles scoped to status.php. Unique variable prefix (--st-). */

/*
  Base icon style, defined here rather than assumed from site.css — kept
  self-contained so status.php never depends on a generic ".icon" class
  that may or may not exist elsewhere.
*/
.st-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-icon.st-icon-filled { fill: currentColor; stroke: none; }

:root {
  --st-ok-bg: #eafaf1; --st-ok-line: #b6ecca; --st-ok-ink: #14713f; --st-ok-dot: #1a9b57;
  --st-warn-bg: #fff8ea; --st-warn-line: #f3dfa0; --st-warn-ink: #8a6106; --st-warn-dot: #d99a10;
  --st-down-bg: #fdeeee; --st-down-line: #f3c4c4; --st-down-ink: #97231f; --st-down-dot: #d6332d;
  --st-none-dot: #d7dce6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --st-ok-bg: #0f2a1c; --st-ok-line: #1e5c3a; --st-ok-ink: #6bdb9c;
    --st-warn-bg: #2c2308; --st-warn-line: #644d0c; --st-warn-ink: #f0c860;
    --st-down-bg: #2e1414; --st-down-line: #6b2626; --st-down-ink: #ff9d97;
    --st-none-dot: #2a334f;
  }
}
:root[data-theme="dark"] {
  --st-ok-bg: #0f2a1c; --st-ok-line: #1e5c3a; --st-ok-ink: #6bdb9c;
  --st-warn-bg: #2c2308; --st-warn-line: #644d0c; --st-warn-ink: #f0c860;
  --st-down-bg: #2e1414; --st-down-line: #6b2626; --st-down-ink: #ff9d97;
  --st-none-dot: #2a334f;
}

.st-wrap { max-width: 920px; margin: 0 auto; padding: 44px 24px 90px; }

.st-header { margin-bottom: 30px; }
.st-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: var(--brand-dim);
  margin-bottom: 14px;
}
.st-back-link:hover { text-decoration: underline; }
.st-header h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 8px; }
.st-header p { color: var(--muted); margin: 0; }

.st-banner {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 30px;
  font-weight: 700; font-size: 1rem;
  border: 1px solid var(--st-ok-line); background: var(--st-ok-bg); color: var(--st-ok-ink);
}
.st-banner.is-warn { border-color: var(--st-warn-line); background: var(--st-warn-bg); color: var(--st-warn-ink); }
.st-banner.is-down { border-color: var(--st-down-line); background: var(--st-down-bg); color: var(--st-down-ink); }
.st-banner .st-icon { width: 22px; height: 22px; flex: none; }
.st-banner .st-updated { margin-left: auto; font-weight: 500; font-size: 0.82rem; opacity: 0.8; }

.st-cards { display: grid; gap: 16px; margin-bottom: 46px; }

.st-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; background: var(--surface);
}
.st-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.st-card-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--surface-2); color: var(--brand-dim);
  display: flex; align-items: center; justify-content: center;
}
.st-card-icon .st-icon { width: 19px; height: 19px; }
.st-card-name { font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.st-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 20px; font-size: 0.78rem; font-weight: 800;
  margin-left: auto;
  border: 1px solid var(--st-ok-line); background: var(--st-ok-bg); color: var(--st-ok-ink);
}
.st-pill .st-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-ok-dot); }
.st-pill.is-warn { border-color: var(--st-warn-line); background: var(--st-warn-bg); color: var(--st-warn-ink); }
.st-pill.is-warn .st-dot { background: var(--st-warn-dot); }
.st-pill.is-down { border-color: var(--st-down-line); background: var(--st-down-bg); color: var(--st-down-ink); }
.st-pill.is-down .st-dot { background: var(--st-down-dot); }

.st-card p.st-desc { margin: 0 0 16px; color: var(--muted); font-size: 0.89rem; }

.st-bars {
  display: flex; align-items: flex-end; gap: 2.5px; height: 40px; margin-bottom: 8px;
}
.st-bar {
  flex: 1; min-width: 0; height: 100%; border-radius: 2px;
  background: var(--st-ok-dot); cursor: default; position: relative;
}
.st-bar.is-warn { background: var(--st-warn-dot); }
.st-bar.is-down { background: var(--st-down-dot); }
.st-bar.is-none { background: var(--st-none-dot); }
.st-bar:hover::after, .st-bar:focus-visible::after {
  content: attr(data-tip);
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: #ffffff; color: #101828; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(15,23,42,0.18);
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  padding: 5px 9px; border-radius: 6px; z-index: 5;
  pointer-events: none;
}
.st-bar-foot { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); }
.st-uptime-num { font-weight: 800; color: var(--ink); }

.st-section-title { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; margin: 0 0 6px; }
.st-section-title .st-icon { width: 18px; height: 18px; color: var(--brand-dim); }
.st-section-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 20px; }

.st-incident {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px;
}
.st-incident-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.st-incident-product {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--brand-dim); background: var(--surface-2); padding: 3px 9px; border-radius: 6px;
}
.st-incident-status {
  font-size: 0.74rem; font-weight: 800; padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--st-ok-line); background: var(--st-ok-bg); color: var(--st-ok-ink);
}
.st-incident-status.is-down { border-color: var(--st-down-line); background: var(--st-down-bg); color: var(--st-down-ink); }
.st-incident-title { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.st-incident-desc { color: var(--muted); font-size: 0.89rem; margin: 0 0 10px; }
.st-incident-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.st-incident-meta strong { color: var(--ink); }

.st-empty { color: var(--muted); font-size: 0.9rem; padding: 18px 0; }

.st-note {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); padding: 14px 16px; margin: 34px 0 0; font-size: 0.85rem; color: var(--muted);
}
.st-note .st-icon { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--brand-dim); }

@media (max-width: 640px) {
  .st-wrap { padding: 28px 18px 70px; }
  .st-bars { height: 34px;  overflow: hidden; }
  .st-banner .st-updated { width: 100%; margin-left: 0; }
}
