/* status-page/style.css
 * ixrea ポータル ステータスページ。
 * 依存ゼロ (外部フォント・外部 CSS を読まない = 本体障害/外部障害と無関係に表示できる)。
 */

:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #16202c;
  --muted: #5b6b7c;
  --border: #e2e8f0;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
  --maint: #1d4ed8;
  --maint-bg: #dbeafe;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --panel: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #334155;
    --ok-bg: rgba(21, 128, 61, 0.2);
    --ok: #4ade80;
    --warn-bg: rgba(180, 83, 9, 0.2);
    --warn: #fbbf24;
    --bad-bg: rgba(185, 28, 28, 0.2);
    --bad: #f87171;
    --maint-bg: rgba(29, 78, 216, 0.25);
    --maint: #93c5fd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

header.site h1 { font-size: 20px; font-weight: 800; margin: 0; }
header.site .sub { color: var(--muted); font-size: 12px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.overall {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
}

.overall .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }

.updated { color: var(--muted); font-size: 12px; margin-top: 6px; }

h2.section {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin: 28px 0 10px;
  letter-spacing: 0.04em;
}

ul.components { list-style: none; margin: 0; padding: 0; }

ul.components li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

ul.components li:last-child { border-bottom: none; }

.comp-name { font-weight: 600; }
.comp-note { color: var(--muted); font-size: 12px; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.operational { background: var(--ok-bg); color: var(--ok); }
.badge.degraded { background: var(--warn-bg); color: var(--warn); }
.badge.partial_outage { background: var(--warn-bg); color: var(--warn); }
.badge.major_outage { background: var(--bad-bg); color: var(--bad); }
.badge.maintenance { background: var(--maint-bg); color: var(--maint); }

.dot.operational { background: var(--ok); }
.dot.degraded, .dot.partial_outage { background: var(--warn); }
.dot.major_outage { background: var(--bad); }
.dot.maintenance { background: var(--maint); }

.incident { border-left: 4px solid var(--border); padding-left: 14px; margin: 14px 0; }
.incident.major { border-left-color: var(--bad); }
.incident.minor { border-left-color: var(--warn); }
.incident h3 { margin: 0 0 4px; font-size: 15px; }
.incident .meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }

.incident .update { margin: 6px 0; font-size: 13px; }
.incident .update .at { color: var(--muted); font-size: 11px; margin-right: 8px; }
.incident .update .st { font-weight: 700; margin-right: 6px; }

.empty { color: var(--muted); font-size: 13px; }

.error-note {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
}

footer.site {
  margin-top: 36px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
