/* ============================================================
   PIPE TASK — Tokens do design system Brevya
   Fonte: docs/brevya-design-system SITE.md
   Nunca use cor literal em componente: sempre hsl(var(--token)).
   ============================================================ */

:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;

  --card: 0 0% 5%;
  --card-foreground: 0 0% 100%;

  --popover: 0 0% 5%;
  --popover-foreground: 0 0% 100%;

  --primary: 56 18% 51%;
  --primary-foreground: 0 0% 0%;

  --secondary: 0 0% 10%;
  --secondary-foreground: 0 0% 83%;

  --muted: 0 0% 12%;
  --muted-foreground: 0 0% 65%;

  --accent: 56 18% 51%;
  --accent-foreground: 0 0% 0%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --success: 145 45% 45%;
  --warning: 38 85% 55%;

  --border: 0 0% 16%;
  --input: 0 0% 16%;
  --ring: 56 18% 51%;

  --gold: 56 18% 51%;
  --gold-light: 56 18% 65%;
  --gold-dark: 56 18% 40%;

  --surface: 0 0% 6%;
  --surface-elevated: 0 0% 9%;

  --radius: 0.5rem;

  /* Prioridades das tarefas */
  --prio-baixa: 0 0% 45%;
  --prio-media: 210 40% 55%;
  --prio-alta: 32 80% 55%;
  --prio-urgente: 0 72% 55%;

  /* Estrutura */
  --sidebar-width: 240px;
  --topbar-height: 60px;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

::selection {
  background: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

/* ── Scrollbar discreta ────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

*::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 9999px;
}

*::-webkit-scrollbar-thumb:hover { background: hsl(0 0% 25%); }

/* ── Animações base ────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-in  { animation: fade-in 0.3s ease-out both; }
.animate-scale-in { animation: scale-in 0.2s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Utilitários do design system ──────────────────────── */
.text-gradient-gold {
  background-image: linear-gradient(135deg, hsl(56 18% 51%), hsl(56 18% 70%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, hsl(var(--primary) / 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 120%, hsl(var(--primary) / 0.08), transparent 60%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
