@import url('/frontend/typography-standard.css');

/**
 * DESIGN SYSTEM — PALETA PADRÃO SIMPLES
 * 10 cores essenciais para toda a aplicação
 */

:root {
  /* 1. Fundo */
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --bg-light: #16161f;

  /* 2. Texto */
  --text: #e2e2f0;
  --text-dim: #b0b0c0;
  --text-muted: #7a7a95;

  /* 3. Bordas */
  --border: #1e1e2e;
  --border-light: #2a2a3e;

  /* 4. Cores Semânticas */
  --primary: #5b6ef5;    /* Azul primário */
  --success: #10b981;    /* Verde sucesso */
  --error: #f87171;      /* Vermelho erro */
  --warning: #fbbf24;    /* Amarelo aviso */
  --info: #3b82f6;       /* Azul info */

  /* 5. Variações */
  --primary-light: #7c8ff8;
  --primary-dark: #4a5ed9;
  --success-light: #34d399;
  --error-light: #f9a8a8;
  --warning-light: #fcd34d;
  --button-chamfer: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 0 rgba(0,0,0,0.22);
  --button-depth: 0 3px 0 rgba(0,0,0,0.28), 0 8px 18px rgba(0,0,0,0.22);
  --button-depth-hover: 0 5px 0 rgba(0,0,0,0.30), 0 14px 30px rgba(0,0,0,0.28);
}

/* ─────────────────────────────────────────────────────────────── */
/* RESET GLOBAL */
/* ─────────────────────────────────────────────────────────────── */

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

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
}

/* ─────────────────────────────────────────────────────────────── */
/* TIPOGRAFIA */
/* ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

/* ─────────────────────────────────────────────────────────────── */
/* COMPONENTES */
/* ─────────────────────────────────────────────────────────────── */

.btn, button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  box-shadow: var(--button-chamfer), var(--button-depth);
}

.btn-primary, button:not([class]) {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--button-chamfer), var(--button-depth-hover);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: var(--success-light);
  transform: translateY(-2px);
  box-shadow: var(--button-chamfer), var(--button-depth-hover);
}

.btn-error {
  background-color: var(--error);
  color: white;
}

.btn-error:hover {
  background-color: var(--error-light);
  transform: translateY(-2px);
  box-shadow: var(--button-chamfer), var(--button-depth-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  box-shadow: var(--button-chamfer), 0 2px 0 rgba(91,110,245,0.24);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--button-chamfer), var(--button-depth-hover);
}

input, textarea, select {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.1);
}

.card, section, article {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* UTILIDADES */
/* ─────────────────────────────────────────────────────────────── */

.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.bg-success { background-color: var(--success); }
.bg-error { background-color: var(--error); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); }

.border-success { border-color: var(--success); }
.border-error { border-color: var(--error); }
.border-warning { border-color: var(--warning); }
.border-info { border-color: var(--info); }

.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ─────────────────────────────────────────────────────────────── */
/* RESPONSIVIDADE */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --bg-light: #ffffff;
    --text: #1c1c1c;
    --text-dim: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
  }
}
