/* BelezaPro AI — Design System v2.0 "Rose Quartz"
 * Inspired by: Glossier, Cal.com, Stripe (restraint), wellness luxury 2026
 * Import: <link rel="stylesheet" href="/shared/design-system.css">
 */

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

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand — Rose Quartz */
  --brand: #be4d6e;
  --brand-hover: #a83d5c;
  --brand-active: #9d3d5a;
  --brand-light: #d4738c;
  --brand-tint: #fce7f3;
  --brand-wash: #fdf2f8;

  /* Neutrals — warm undertone */
  --ink: #1a1a2e;
  --ink-soft: #3d3d52;
  --muted: #6b6560;
  --muted-light: #9c9690;
  --ivory: #faf7f5;
  --ivory-warm: #f0ece8;
  --white: #ffffff;
  --hairline: #e8e4df;
  --hair-strong: #d6d0c9;

  /* Functional */
  --success: #22c55e;
  --success-tint: #dcfce7;
  --warning: #f59e0b;
  --warning-tint: #fef3c7;
  --danger: #ef4444;
  --danger-tint: #fee2e2;
  --info: #3b82f6;
  --info-tint: #dbeafe;

  /* WhatsApp (contextual, only in chat UIs) */
  --wa-green: #25d366;
  --wa-dark: #075e54;
  --wa-bg: #e5ddd5;
  --wa-in: #ffffff;
  --wa-out: #dcf8c6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Tight scale à la Stripe — nothing too large */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.8125rem;   /* 13px */
  --text-base: 0.875rem;  /* 14px */
  --text-lg: 1rem;        /* 16px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Stripe-inspired multi-layer shadows */
  --shadow-xs: 0 1px 1px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 1px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 4px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-xl: 0 8px 16px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.02);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration: 200ms;
}

/* ─── BASE ─── */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; }

p { color: var(--ink-soft); line-height: 1.7; }
small { font-size: var(--text-sm); color: var(--muted); }

.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  height: 36px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-0.5px);
}
.btn-primary:active {
  background: var(--brand-active);
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--hair-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
}
.btn-ghost:hover {
  background: var(--brand-wash);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #dc2626; }

.btn-sm { height: 30px; padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.btn-lg { height: 44px; padding: var(--space-3) var(--space-8); font-size: var(--text-base); }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
}
.card:hover {
  box-shadow: var(--shadow);
}

/* ─── INPUTS ─── */
.input, input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]) {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.input:focus, input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.input::placeholder, input::placeholder {
  color: var(--muted-light);
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
}
.badge-brand { background: var(--brand-tint); color: var(--brand-active); }
.badge-success { background: var(--success-tint); color: #166534; }
.badge-warning { background: var(--warning-tint); color: #92400e; }
.badge-danger { background: var(--danger-tint); color: #991b1b; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--hairline); margin: var(--space-6) 0; }

/* ─── LOGO ─── */
.logo { font-weight: 800; font-size: var(--text-lg); color: var(--ink); letter-spacing: -0.03em; }
.logo em, .logo span { color: var(--brand); font-style: normal; }
