/**
 * Prompt Builder Design Tokens
 * "Warm Intelligence" aesthetic - soft organic, human tech
 * 
 * Inspired by Anthropic's warmth, Notion's clarity
 * Hand-drawn accents, generous whitespace, gentle motion
 */

:root {
  /* ========================================
     COLOR PALETTE - Warm & Approachable
     ======================================== */
  
  /* Primary - Warm Teal */
  --color-primary: #2D8A8A;
  --color-primary-hover: #247070;
  --color-primary-light: #E8F4F4;
  --color-primary-muted: rgba(45, 138, 138, 0.08);
  
  /* Accent - Honey Gold */
  --color-accent: #E9B44C;
  --color-accent-hover: #D4A03D;
  --color-accent-light: #FDF6E8;
  
  /* Text Colors - Soft, not harsh */
  --color-text: #2C3E50;
  --color-text-secondary: #5D6D7E;
  --color-text-muted: #95A5A6;
  --color-text-inverse: #FFFFFF;
  
  /* Background Colors - Warm cream base */
  --color-bg: #FDFBF7;
  --color-bg-subtle: #F8F6F1;
  --color-card: #FFFFFF;
  --color-card-hover: #FEFEFE;
  
  /* Border Colors - Warm grays */
  --color-border: #E8E4DF;
  --color-border-light: #F4F1EC;
  --color-border-focus: var(--color-primary);
  
  /* Semantic Colors */
  --color-success: #27AE60;
  --color-success-light: #E8F8F0;
  --color-warning: #F39C12;
  --color-warning-light: #FEF5E7;
  --color-error: #E74C3C;
  --color-error-light: #FDEDEC;
  --color-info: #3498DB;
  --color-info-light: #EBF5FB;
  
  /* Doodle accent color */
  --color-doodle: var(--color-primary);
  --color-doodle-accent: var(--color-accent);
  
  /* ========================================
     TYPOGRAPHY - Warm & Distinctive
     ======================================== */
  
  /* Font Families */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes - Comfortable scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 2rem;        /* 32px */
  --text-4xl: 2.5rem;      /* 40px */
  --text-5xl: 3.5rem;      /* 56px */
  
  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.8;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  
  /* ========================================
     SPACING - Generous & Breathing
     ======================================== */
  
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* ========================================
     BORDERS & RADIUS - Soft & Organic
     ======================================== */
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  --border-width: 1px;
  --border-width-2: 2px;
  
  /* ========================================
     SHADOWS - Soft & Layered
     ======================================== */
  
  --shadow-xs: 0 1px 2px rgba(44, 62, 80, 0.03);
  --shadow-sm: 0 1px 3px rgba(44, 62, 80, 0.04), 0 1px 2px rgba(44, 62, 80, 0.02);
  --shadow-md: 0 4px 12px rgba(44, 62, 80, 0.06), 0 2px 4px rgba(44, 62, 80, 0.04);
  --shadow-lg: 0 12px 24px rgba(44, 62, 80, 0.08), 0 4px 8px rgba(44, 62, 80, 0.04);
  --shadow-xl: 0 20px 40px rgba(44, 62, 80, 0.10), 0 8px 16px rgba(44, 62, 80, 0.05);
  
  /* Interactive shadows */
  --shadow-glow: 0 0 0 3px rgba(45, 138, 138, 0.12);
  --shadow-glow-accent: 0 0 0 3px rgba(233, 180, 76, 0.15);
  --shadow-card: 0 2px 8px rgba(44, 62, 80, 0.04), 0 1px 2px rgba(44, 62, 80, 0.02);
  --shadow-card-hover: 0 8px 24px rgba(44, 62, 80, 0.08), 0 4px 8px rgba(44, 62, 80, 0.04);
  --shadow-button: 0 2px 4px rgba(45, 138, 138, 0.15);
  --shadow-button-hover: 0 4px 12px rgba(45, 138, 138, 0.25);
  
  /* ========================================
     TRANSITIONS - Gentle & Organic
     ======================================== */
  
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  
  /* ========================================
     LAYOUT
     ======================================== */
  
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1200px;
  --max-width-2xl: 1400px;
  
  --container-padding: var(--space-5);
  --header-height: 72px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (min-width: 640px) {
  :root {
    --container-padding: var(--space-8);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-10);
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
