/* HealthAdvisor Base - Stitch Design System */
/* Variables, reset, typography */

:root {
  /* Stitch green palette */
  --green-50: #F7FBF7;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #052e16;

  /* Slate neutrals */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic aliases */
  --bg-primary: var(--green-50);
  --bg-card: #ffffff;
  --bg-hover: var(--green-100);
  --text-primary: var(--slate-800);
  --text-secondary: var(--slate-500);
  --text-muted: var(--slate-400);
  --accent: var(--green-500);
  --accent-hover: var(--green-600);
  --border: var(--green-200);
  --success: var(--green-600);
  --error: #dc2626;

  /* Spacing & radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

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

/* Typography - Inter font */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; color: var(--green-900); line-height: 1.2; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Form elements base */
input, select, button, textarea {
  font: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 12px var(--space-md);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

/* Utilities */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
