/* style.css — NestMint Design Tokens & Component Styles */

/* ========== 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);

  /* 4px 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;

  /* 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);

  /* CONTENT WIDTHS */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* FONT FAMILIES */
  --font-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ========== LIGHT MODE (Custom NestMint palette) ========== */
:root, [data-theme="light"] {
  /* Surfaces — airy, cool-white */
  --color-bg:             #f8fafb;
  --color-surface:        #ffffff;
  --color-surface-2:      #f3f7f8;
  --color-surface-offset: #eef3f5;
  --color-surface-offset-2: #e6edf0;
  --color-surface-dynamic: #dde5e9;
  --color-divider:        #d0dae0;
  --color-border:         #c3ced6;

  /* Text */
  --color-text:           #1a2b33;
  --color-text-muted:     #5f7580;
  --color-text-faint:     #9eb0b9;
  --color-text-inverse:   #f8fafb;

  /* Primary — Teal/Blue-green */
  --color-primary:        #2BB5B2;
  --color-primary-hover:  #239a97;
  --color-primary-active: #1b7d7a;
  --color-primary-highlight: #d5f0ef;

  /* Secondary — Sky Blue */
  --color-secondary:      #4A90D9;
  --color-secondary-hover: #3a7ac4;
  --color-secondary-highlight: #daeaf8;

  /* Success — Growth Green */
  --color-success:        #4CAF50;
  --color-success-hover:  #3d8b40;
  --color-success-active: #2e6930;
  --color-success-highlight: #ddf0de;

  /* Warning */
  --color-warning:        #E8963A;
  --color-warning-hover:  #cf7e28;
  --color-warning-active: #b36a1e;
  --color-warning-highlight: #f6e8d4;

  /* Error */
  --color-error:          #E05263;
  --color-error-hover:    #c73f50;
  --color-error-active:   #a83040;
  --color-error-highlight: #f9dde1;

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

  /* Chart colors */
  --chart-1: #2BB5B2;
  --chart-2: #4A90D9;
  --chart-3: #4CAF50;
  --chart-4: #E8963A;
  --chart-5: #9B6FCF;
  --chart-6: #E05263;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --color-bg:             #0f1a1f;
  --color-surface:        #152028;
  --color-surface-2:      #1a2831;
  --color-surface-offset: #1e2d37;
  --color-surface-offset-2: #243640;
  --color-surface-dynamic: #2d414c;
  --color-divider:        #2a3d48;
  --color-border:         #36505c;

  --color-text:           #d8e4ea;
  --color-text-muted:     #8ba4b0;
  --color-text-faint:     #576d78;
  --color-text-inverse:   #0f1a1f;

  --color-primary:        #3dd6d3;
  --color-primary-hover:  #2bbfbc;
  --color-primary-active: #23a5a2;
  --color-primary-highlight: #1a3a3f;

  --color-secondary:      #6aabeb;
  --color-secondary-hover: #5298de;
  --color-secondary-highlight: #1a2e42;

  --color-success:        #66cc6a;
  --color-success-hover:  #50b854;
  --color-success-active: #3ea042;
  --color-success-highlight: #1a3a1d;

  --color-warning:        #f0a94e;
  --color-warning-hover:  #e89838;
  --color-warning-active: #cf7e28;
  --color-warning-highlight: #3a2e1a;

  --color-error:          #f07080;
  --color-error-hover:    #e05263;
  --color-error-active:   #c73f50;
  --color-error-highlight: #3a1a22;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);

  --chart-1: #3dd6d3;
  --chart-2: #6aabeb;
  --chart-3: #66cc6a;
  --chart-4: #f0a94e;
  --chart-5: #b48cef;
  --chart-6: #f07080;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f1a1f;
    --color-surface:        #152028;
    --color-surface-2:      #1a2831;
    --color-surface-offset: #1e2d37;
    --color-surface-offset-2: #243640;
    --color-surface-dynamic: #2d414c;
    --color-divider:        #2a3d48;
    --color-border:         #36505c;
    --color-text:           #d8e4ea;
    --color-text-muted:     #8ba4b0;
    --color-text-faint:     #576d78;
    --color-text-inverse:   #0f1a1f;
    --color-primary:        #3dd6d3;
    --color-primary-hover:  #2bbfbc;
    --color-primary-active: #23a5a2;
    --color-primary-highlight: #1a3a3f;
    --color-secondary:      #6aabeb;
    --color-secondary-hover: #5298de;
    --color-secondary-highlight: #1a2e42;
    --color-success:        #66cc6a;
    --color-success-hover:  #50b854;
    --color-success-active: #3ea042;
    --color-success-highlight: #1a3a1d;
    --color-warning:        #f0a94e;
    --color-warning-hover:  #e89838;
    --color-warning-active: #cf7e28;
    --color-warning-highlight: #3a2e1a;
    --color-error:          #f07080;
    --color-error-hover:    #e05263;
    --color-error-active:   #c73f50;
    --color-error-highlight: #3a1a22;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
    --chart-1: #3dd6d3;
    --chart-2: #6aabeb;
    --chart-3: #66cc6a;
    --chart-4: #f0a94e;
    --chart-5: #b48cef;
    --chart-6: #f07080;
  }
}
