/* styles.css — Splux shell styling */
/* PERFORMANCE RULE: No external fonts. No @import. Must paint within 300ms. */

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

:root {
  --bg: #0a0a0a;
  --accent: #5b7cf7;       /* Splux brand blue — muted, not garish */
  --text-muted: #6b7280;
  --text: #e5e7eb;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
  overflow: hidden;
}

/* ── Loading Overlay ──────────────────────────────────────────────────────── */

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg);
  z-index: 100;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #1f2937;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── 3D Canvas ────────────────────────────────────────────────────────────── */

#splux-canvas {
  display: none;       /* shown by boot.js when WASM ready */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Drop Hint ────────────────────────────────────────────────────────────── */

.drop-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── Drag Active State ────────────────────────────────────────────────────── */

body.drag-active::after {
  content: '';
  position: fixed;
  inset: 0;
  border: 2px dashed var(--accent);
  border-radius: 4px;
  pointer-events: none;
  z-index: 50;
}
