/*
 * SPDX-FileCopyrightText: 2026 Cybou contributors
 * SPDX-License-Identifier: MIT
 */

:root {
  color: #f1f5f7;
  background: #070a0e;
  font-family: Inter, "Noto Sans", system-ui, sans-serif;
  font-synthesis: none;
  --accent: #70e1c8;
  --muted: #9aa7b8;
  --surface: rgba(16, 22, 30, 0.88);
  --border: rgba(154, 167, 184, 0.24);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, a { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.app-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(37, 112, 109, 0.18), transparent 27rem),
    linear-gradient(145deg, #0b1118, #070a0e 60%, #0c1117);
}

.topbar {
  height: 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(154, 167, 184, 0.13);
  background: rgba(8, 12, 17, 0.82);
  backdrop-filter: blur(22px);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); }
.path { margin: 0; color: var(--muted); font-size: 13px; }
.runtime { justify-self: end; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; font-size: 12px; }
.runtime small { grid-column: 2; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(112, 225, 200, 0.8); }

.canvas { position: relative; min-height: calc(100vh - 64px); }
.ambient { position: absolute; inset: 16% 26%; border: 1px solid rgba(112, 225, 200, 0.08); border-radius: 50%; filter: blur(1px); }
.object { position: absolute; display: flex; flex-direction: column; text-align: left; gap: 9px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32); backdrop-filter: blur(24px); cursor: pointer; transition: border-color 160ms ease, transform 160ms ease; }
.object:hover { transform: translateY(-2px); }
.object.selected { border-color: rgba(112, 225, 200, 0.76); box-shadow: 0 0 0 1px rgba(112, 225, 200, 0.12), 0 24px 70px rgba(0, 0, 0, 0.38); }
.object small { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }
.object span, .object p { color: var(--muted); }
.artifact { left: 12%; top: 15%; width: 220px; padding: 19px; }
.release { left: 50%; top: 20%; width: 390px; padding: 30px; transform: translateX(-50%); }
.release:hover { transform: translateX(-50%) translateY(-2px); }
.release h1 { margin: 5px 0 0; font-size: 30px; font-weight: 560; }
.release p { margin: 0; line-height: 1.55; }
.progress-label, .release footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.progress { height: 5px; overflow: hidden; border-radius: 4px; background: #27313d; }
.progress span { display: block; width: 68%; height: 100%; background: var(--accent); }
.nominal { color: var(--accent) !important; }
.suggestion { right: 11%; top: 48%; width: 245px; padding: 20px; }
.system-state { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 16px; background: rgba(8, 12, 17, 0.76); color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 14px; }
  .path { display: none; }
  .canvas { min-height: 900px; padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; }
  .ambient, .system-state { display: none; }
  .object, .release, .release:hover { position: static; width: 100%; transform: none; }
  .release { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
