/* mycroft-web — main stylesheet
 *
 * Per REQ-08, only the name is visible. CSS is correspondingly tiny:
 * canvas full-bleed, hero centered, name big. No header, no footer,
 * no kicker, no status, no lede.
 */

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #000;
    --fg: #f0f0f0;
    --accent: #6cf;
    --accent-glow: rgba(102, 204, 255, 0.35);
    --font: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-weight: 400;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
}

.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 720px);
    padding: 0 1rem;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.6rem, 9vw, 6rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--fg);
}

.hero h1 .emph {
    color: var(--accent);
    text-shadow: 0 0 28px var(--accent-glow);
}

/* Quiet entrance — fade up */
.hero { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes rise {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero { animation: none; }
}

/* Footer — single approved line per SPEC REQ-08 exceptions */
.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem 2rem;
    font-size: .72rem;
    letter-spacing: .08em;
    color: #555;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 600px) {
    .bottombar { font-size: .65rem; padding: 1rem 1rem; }
}

/* Fleet-status tooltip — host name + status on hover (IDEA #1) */
.fleet-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    padding: .55rem .75rem;
    font-size: .72rem;
    line-height: 1.5;
    letter-spacing: .03em;
    color: var(--fg);
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    opacity: 0;
    transform: translate(0, -6px);
    transition: opacity .12s, transform .12s;
    white-space: nowrap;
    font-family: var(--font);
}

.fleet-tooltip.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.fleet-tooltip .name {
    font-weight: 700;
    color: var(--fg);
}

.fleet-tooltip .status-green  { color: #4ade80; }
.fleet-tooltip .status-yellow { color: #fbbf24; }
.fleet-tooltip .status-red    { color: #f87171; }

.fleet-tooltip .meta {
    color: #888;
    font-size: .68rem;
}
