/* ═════════════════════════════════════════════════════════════════════════════ */
/*                   DESIGN SYSTEM — VERDANA + CRUZSAMPAIO                       */
/* ═════════════════════════════════════════════════════════════════════════════ */

:root {
  /* ═ PALETA CRUZSAMPAIO — WordPress Foundation ═ */
  --verde-vivo: #00d084;
  --verde-luz: #7bdcb5;
  --azul-vivo: #0693e3;
  --azul-claro: #8ed1fc;
  --violeta: #9b51e0;
  --violeta-claro: #a8a0e8;
  --laranja-vivo: #ff6900;
  --ouro: #fcb900;
  --vermelho: #cf2e2e;
  --vermelho-claro: #f78da7;
  --verde-neon: #00d084;

  /* ═ NEUTROS ═ */
  --branco: #ffffff;
  --cinza-50: #f9fafb;
  --cinza-100: #f3f4f6;
  --cinza-200: #e5e7eb;
  --cinza-300: #d1d5db;
  --cinza-400: #9ca3af;
  --cinza-500: #6b7280;
  --cinza-700: #374151;
  --cinza-900: #1f2937;
  --preto: #000000;

  /* ═ TIPOGRAFIA ═ */
  --font-primary: Verdana, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ═ ESCALA TIPOGRÁFICA (Modular 1.15) ═ */
  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-lg: 1.15rem;      /* 18px */
  --fs-xl: 1.325rem;     /* 21px */
  --fs-2xl: 1.521rem;    /* 24px */
  --fs-3xl: 1.75rem;     /* 28px */
  --fs-4xl: 2.011rem;    /* 32px */

  /* ═ ESPAÇAMENTO (Modular 1.25) ═ */
  --sp-1: 0.25rem;   /* 4px */
  --sp-2: 0.5rem;    /* 8px */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-6: 1.5rem;    /* 24px */
  --sp-8: 2rem;      /* 32px */
  --sp-12: 3rem;     /* 48px */
  --sp-16: 4rem;     /* 64px */

  /* ═ RAIOS ═ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ═ SOMBRAS ═ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.20);
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                                   RESET                                       */
/* ═════════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--cinza-900);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                            TIPOGRAFIA                                        */
/* ═════════════════════════════════════════════════════════════════════════════ */

h1 {
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cinza-900);
}

h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--azul-vivo);
  margin-bottom: var(--sp-4);
}

h3 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.4;
  color: var(--cinza-900);
  margin-bottom: var(--sp-3);
}

h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.5;
  color: var(--cinza-900);
}

p {
  line-height: 1.7;
  color: var(--cinza-700);
  margin-bottom: var(--sp-4);
}

label {
  font-size: var(--fs-sm);
  font-weight: 600;
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--cinza-700);
}

.text-muted {
  color: var(--cinza-500);
  font-size: var(--fs-sm);
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                            BOTÕES                                            */
/* ═════════════════════════════════════════════════════════════════════════════ */

button,
.btn {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-6);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}

/* ═ Primário ═ */
.btn-primary,
button[type="submit"] {
  background: var(--verde-vivo);
  color: var(--branco);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: #00b86f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active,
button[type="submit"]:active {
  transform: translateY(0);
}

/* ═ Secundário ═ */
.btn-secondary {
  background: var(--azul-vivo);
  color: var(--branco);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: #0575b8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═ Ghost ═ */
.btn-ghost {
  background: transparent;
  color: var(--azul-vivo);
  border: 1px solid var(--cinza-300);
}

.btn-ghost:hover {
  background: var(--cinza-50);
  border-color: var(--azul-vivo);
}

/* ═ Danger ═ */
.btn-danger {
  background: var(--vermelho);
  color: var(--branco);
  box-shadow: var(--shadow-md);
}

.btn-danger:hover {
  background: #b01f1f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═ Tamanhos ═ */
.btn-sm {
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-4);
}

.btn-lg {
  font-size: var(--fs-lg);
  padding: var(--sp-4) var(--sp-8);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                              CARDS                                           */
/* ═════════════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--branco);
  border: 1px solid var(--cinza-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--verde-vivo);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--cinza-100);
  padding-bottom: var(--sp-4);
}

.card-accent {
  border-left: 4px solid var(--verde-vivo);
}

.card-accent.blue {
  border-left-color: var(--azul-vivo);
}

.card-accent.violet {
  border-left-color: var(--violeta);
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                            FORMULÁRIOS                                       */
/* ═════════════════════════════════════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

input,
textarea,
select {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--cinza-300);
  border-radius: var(--radius-md);
  background: var(--cinza-50);
  color: var(--cinza-900);
  transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--cinza-400);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--verde-vivo);
  background: var(--branco);
  box-shadow: 0 0 0 3px rgba(0, 208, 130, 0.1);
}

input:disabled,
textarea:disabled {
  background: var(--cinza-100);
  cursor: not-allowed;
  opacity: 0.6;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                              BADGES                                          */
/* ═════════════════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(0, 208, 130, 0.15);
  color: var(--verde-vivo);
}

.badge-info {
  background: rgba(6, 147, 227, 0.15);
  color: var(--azul-vivo);
}

.badge-warning {
  background: rgba(252, 185, 0, 0.15);
  color: #f59e0b;
}

.badge-danger {
  background: rgba(207, 46, 46, 0.15);
  color: var(--vermelho);
}

.badge-muted {
  background: var(--cinza-100);
  color: var(--cinza-600);
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                            ALERTAS                                           */
/* ═════════════════════════════════════════════════════════════════════════════ */

.alert {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
}

.alert-success {
  background: rgba(0, 208, 130, 0.08);
  border-left-color: var(--verde-vivo);
  color: #0b5e4f;
}

.alert-info {
  background: rgba(6, 147, 227, 0.08);
  border-left-color: var(--azul-vivo);
  color: #0c3d66;
}

.alert-warning {
  background: rgba(252, 185, 0, 0.08);
  border-left-color: var(--ouro);
  color: #66440a;
}

.alert-danger {
  background: rgba(207, 46, 46, 0.08);
  border-left-color: var(--vermelho);
  color: #661515;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                              LAYOUT UTILITÁRIO                               */
/* ═════════════════════════════════════════════════════════════════════════════ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.grid {
  display: grid;
  gap: var(--sp-4);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
  gap: var(--sp-4);
}

.flex-col {
  flex-direction: column;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          RESPONSIVIDADE                                      */
/* ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --fs-base: 14px;
    --sp-4: 0.875rem;
    --sp-6: 1.25rem;
  }

  h1 {
    font-size: var(--fs-3xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                       SWATCHES DE COR (Demo)                                */
/* ═════════════════════════════════════════════════════════════════════════════ */

.swatch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.swatch-color {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cinza-200);
}

.swatch-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-align: center;
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--cinza-500);
}
