/* ==========================================================
   DESIGNTECH - CSS Custom Properties & Design System Tokens
   Strict Cream + Coral Orange Palette
   ========================================================== */

:root {
  /* Brand Core Palette */
  --primary-coral: #F97360;
  --deep-coral: #E85D3F;
  --warm-cream: #FFFDF8;
  --soft-beige: #F6EDE4;
  --charcoal: #292524;
  --muted-grey: #78716C;
  --white: #FFFFFF;
  --border-color: #E8DDD2;
  --light-coral: #FFF0EC;

  /* Theme Dynamic Tokens (Light Mode Default) */
  --bg-main: var(--warm-cream);
  --bg-card: var(--white);
  --bg-subtle: var(--soft-beige);
  --bg-surface: var(--white);
  --bg-input: var(--white);
  --text-main: var(--charcoal);
  --text-muted: var(--muted-grey);
  --border-main: var(--border-color);
  --border-light: rgba(232, 221, 210, 0.6);
  --accent-primary: var(--primary-coral);
  --accent-hover: var(--deep-coral);
  --accent-soft: var(--light-coral);

  /* Status Colors */
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FFFBEB;
  --color-error: #EF4444;
  --color-error-bg: #FEF2F2;
  --color-info: #F97360;

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typography 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: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 9px;       /* Inputs */
  --radius-lg: 11px;      /* Buttons */
  --radius-xl: 16px;      /* Cards */
  --radius-2xl: 22px;
  --radius-full: 9999px;

  /* Shadows (Subtle Warm Glow) */
  --shadow-xs: 0 1px 2px rgba(41, 37, 36, 0.04);
  --shadow-sm: 0 2px 6px rgba(41, 37, 36, 0.06), 0 1px 2px rgba(41, 37, 36, 0.04);
  --shadow-md: 0 6px 18px rgba(41, 37, 36, 0.08), 0 2px 6px rgba(41, 37, 36, 0.04);
  --shadow-lg: 0 12px 32px rgba(41, 37, 36, 0.1), 0 4px 12px rgba(41, 37, 36, 0.05);
  --shadow-coral: 0 8px 24px rgba(249, 115, 96, 0.28);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layering */
  --z-base: 1;
  --z-sticky: 100;
  --z-drawer: 200;
  --z-modal: 500;
  --z-toast: 1000;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-main: #1C1917;
  --bg-card: #262220;
  --bg-subtle: #201D1A;
  --bg-surface: #2E2926;
  --bg-input: #201D1A;
  --text-main: #FFFDF8;
  --text-muted: #A8A29E;
  --border-main: #3D3835;
  --border-light: rgba(61, 56, 53, 0.6);
  --light-coral: rgba(249, 115, 96, 0.15);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-coral: 0 8px 24px rgba(249, 115, 96, 0.35);
}
