/* style.css — Medical Chat Demo Design Tokens */

/* Type Scale */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 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;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Font families */
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* LIGHT MODE — White / Medical Blue-Teal palette */
:root, [data-theme="light"] {
  /* Surfaces — white principal, griuri foarte deschise */
  --color-bg:             #ffffff;
  --color-surface:        #ffffff;
  --color-surface-2:      #f8fafb;
  --color-surface-offset: #f1f5f7;
  --color-surface-offset-2: #e8eef1;
  --color-surface-dynamic: #e0e8ec;
  --color-divider:        #e2e8ec;
  --color-border:         #c8d4dc;

  /* Text */
  --color-text:           #1a2b33;
  --color-text-muted:     #5f7681;
  --color-text-faint:     #94a7b1;
  --color-text-inverse:   #ffffff;

  /* Primary Accent — Calming Blue-Teal */
  --color-primary:        #0891B2;
  --color-primary-hover:  #0e7490;
  --color-primary-active: #155e75;
  --color-primary-highlight: #cff4fc;

  /* Error */
  --color-error:          #dc2626;
  --color-error-hover:    #b91c1c;
  --color-error-active:   #991b1b;
  --color-error-highlight: #fef2f2;

  /* Success */
  --color-success:        #16a34a;
  --color-success-hover:  #15803d;
  --color-success-active: #166534;
  --color-success-highlight: #f0fdf4;

  /* Warning */
  --color-warning:        #d97706;
  --color-warning-hover:  #b45309;
  --color-warning-active: #92400e;
  --color-warning-highlight: #fffbeb;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.3 0.01 230 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.3 0.01 230 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.3 0.01 230 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:             #0f1a1e;
  --color-surface:        #162027;
  --color-surface-2:      #1c2830;
  --color-surface-offset: #1a252d;
  --color-surface-offset-2: #212e37;
  --color-surface-dynamic: #2a3840;
  --color-divider:        #253340;
  --color-border:         #344553;

  --color-text:           #d4e0e6;
  --color-text-muted:     #7f9aa8;
  --color-text-faint:     #506a78;
  --color-text-inverse:   #0f1a1e;

  --color-primary:        #22d3ee;
  --color-primary-hover:  #06b6d4;
  --color-primary-active: #0891b2;
  --color-primary-highlight: #1a3a44;

  --color-error:          #f87171;
  --color-error-hover:    #ef4444;
  --color-error-active:   #dc2626;
  --color-error-highlight: #3b1f1f;

  --color-success:        #4ade80;
  --color-success-hover:  #22c55e;
  --color-success-active: #16a34a;
  --color-success-highlight: #1a3323;

  --color-warning:        #fbbf24;
  --color-warning-hover:  #f59e0b;
  --color-warning-active: #d97706;
  --color-warning-highlight: #352a13;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

/* Default theme is light; dark only when data-theme="dark" is set */
