/*
 * styles/base.css
 * Estilos globais: html, body, layout da página, background e glow layers.
 */

html, body {
  min-height: 100%;
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text-primary);
}

/* ── Página ─────────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-bg);
  overflow-x: hidden;
}

/* ── Background canvas (partículas animadas) ────────────────────── */

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-background);
}

/* ── Glow layers (gradientes radiais decorativos) ───────────────── */

.glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-glow);
}

.glow-tr {
  background: radial-gradient(
    ellipse 55% 45% at 78% 8%,
    rgba(24, 80, 220, 0.18) 0%,
    transparent 70%
  );
}

.glow-ml {
  background: radial-gradient(
    ellipse 40% 55% at 8% 62%,
    rgba(0, 180, 100, 0.07) 0%,
    transparent 65%
  );
}

.glow-cc {
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(10, 30, 90, 0.35) 0%,
    transparent 70%
  );
}

/* ── Topbar ─────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 28px;
  position: relative;
  z-index: var(--z-content);
}

/* ── Main content ────────────────────────────────────────────────── */

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  position: relative;
  z-index: var(--z-content);
}

/* ── Responsividade ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .topbar {
    padding: 14px 16px;
  }
}
