/* =========================================================
   Base Color Tokens
   Source of truth for all colors
   ========================================================= */

/* ---------- Teal ---------- */
$teal-1: #EDF5F6;
$teal-2: #E4EFF1;
$teal-3: #ABCAD1;
$teal-4: #5592A0;
$teal-5: #006878;
$teal-6: #1A4B5B;

/* ---------- Orange ---------- */
$orange-1: #FEF7F4;
$orange-2: #FEF1EC;
$orange-3: #F9E5E0;
$orange-4: #E37B6F;
$orange-5: #DC5A4B;
$orange-6: #C65144;

/* ---------- Gray ---------- */
$gray-1: #F8F9FA;
$gray-2: #F4F5F7;
$gray-3: #E9ECEF;
$gray-4: #DEE2E6;
$gray-5: #CED4DA;
$gray-6: #ADB5BD;
$gray-7: #989EA4;
$gray-8: #6C757D;
$gray-9: #495057;
$gray-10: #343A40;
$gray-11: #212529;
$gray-12: #141619;

/* ---------- Green ---------- */
$green-1: #E3FFF5;
$green-2: #CFF4E7;
$green-3: #3ED29F;
$green-4: #29BE83;

/* ---------- Red ---------- */
$red-1: #FDE7E7;
$red-2: #FACFD1;
$red-3: #F8A0A5;
$red-4: #E53935;

/* ---------- Blue ---------- */
$blue-1: #DDEAFD;
$blue-2: #303E62;
$blue-3: #28313A;

/* ---------- Chartreuse ---------- */
$chartreuse-1: #F7F4CB;
$chartreuse-2: #EBEE98;


/* ---------- Neutrals ---------- */
$cream: #F8F6F3;
$white: #FFFFFF;


/* =========================================================
   Semantic Color Tokens
   Maps UI meaning → base color tokens
   ========================================================= */
/* =====================================================
   Text
   ===================================================== */
$text-title: $gray-10;
$text-primary: $gray-11;
$text-secondary: $gray-9;
$text-tertiary: $gray-8;
$text-subtle: $gray-7;
$text-placeholder: $gray-6;

$text-white: $white;
$text-teal: $teal-5;
$text-light-teal: $teal-4;

$text-success: $green-4;
$text-error: $red-4;


/* =====================================================
   Strokes
   ===================================================== */
$stroke-container: $gray-3;
$stroke-divider: $gray-4;
$stroke-pipe: $gray-5;


/* =====================================================
   Surface
   ===================================================== */
$surface-white: $white;
$surface-gray-bg: $gray-1;
$surface-gray-container: $gray-2;
$surface-cream-bg: $cream;

$surface-orange-bg: $orange-2;
$surface-teal-bg: $teal-2;
$surface-teal-highlight: $teal-1;

$surface-success: $green-1;
$surface-error: $red-1;


/* =====================================================
   Overlays
   ===================================================== */
$overlay-light: rgba($white, 0.88);
$overlay-dark: rgba($blue-3, 0.6);
$overlay-shadow: rgba($gray-10, 0.25);


/* =====================================================
   Icons
   ===================================================== */
$icon-success: $green-3;
$icon-error: $red-4;


/* =====================================================
   Chips
   ===================================================== */
$chip-light-gray: $gray-3;
$chip-dark-gray: $gray-4;

$chip-blue: $blue-1;
$chip-yellow: $chartreuse-1;
$chip-orange: $orange-3;
$chip-green: $green-2;
$chip-red: $red-2;


/* =====================================================
   Badges
   ===================================================== */
$badge-chartreuse: $chartreuse-2;
$badge-orange: $orange-4;
$badge-blue: $blue-2;
$badge-teal: $teal-5;
$badge-gray: $gray-12;


/* =====================================================
   Buttons
   ===================================================== */
$button-primary-default: $orange-5;
$button-primary-hover: $orange-6;
$button-primary-disabled: $orange-3;

$button-tertiary-default: $gray-9;
$button-tertiary-hover: $gray-12;
$button-tertiary-disabled: $gray-5;


/* =========================================================
   CSS Variables (Storybook / Runtime)
   ========================================================= */
:root {
  /* ===================== Text ===================== */
  --text-title: #{$text-title};
  --text-primary: #{$text-primary};
  --text-secondary: #{$text-secondary};
  --text-tertiary: #{$text-tertiary};
  --text-subtle: #{$text-subtle};
  --text-placeholder: #{$text-placeholder};

  --text-white: #{$text-white};
  --text-teal: #{$text-teal};
  --text-light-teal: #{$text-light-teal};

  --text-success: #{$text-success};
  --text-error: #{$text-error};

  /* ===================== Strokes ===================== */
  --stroke-container: #{$stroke-container};
  --stroke-divider: #{$stroke-divider};
  --stroke-pipe: #{$stroke-pipe};

  /* ===================== Surface ===================== */
  --surface-white: #{$surface-white};
  --surface-gray-bg: #{$surface-gray-bg};
  --surface-gray-container: #{$surface-gray-container};
  --surface-cream-bg: #{$surface-cream-bg};

  --surface-orange-bg: #{$surface-orange-bg};
  --surface-teal-bg: #{$surface-teal-bg};
  --surface-teal-highlight: #{$surface-teal-highlight};

  --surface-success: #{$surface-success};
  --surface-error: #{$surface-error};

  /* ===================== Overlays ===================== */
  --overlay-light: #{$overlay-light};
  --overlay-dark: #{$overlay-dark};
  --overlay-shadow: #{$overlay-shadow};

  /* ===================== Icons ===================== */
  --icon-success: #{$icon-success};
  --icon-error: #{$icon-error};

  /* ===================== Chips ===================== */
  --chip-light-gray: #{$chip-light-gray};
  --chip-dark-gray: #{$chip-dark-gray};

  --chip-blue: #{$chip-blue};
  --chip-yellow: #{$chip-yellow};
  --chip-orange: #{$chip-orange};
  --chip-green: #{$chip-green};
  --chip-red: #{$chip-red};

  /* ===================== Badges ===================== */
  --badge-chartreuse: #{$badge-chartreuse};
  --badge-orange: #{$badge-orange};
  --badge-blue: #{$badge-blue};
  --badge-teal: #{$badge-teal};
  --badge-gray: #{$badge-gray};

  /* =====================  Buttons ===================== */
  --button-primary-default: #{$button-primary-default};
  --button-primary-hover: #{$button-primary-hover};
  --button-primary-disabled: #{$button-primary-disabled};

  --button-tertiary-default: #{$button-tertiary-default};
  --button-tertiary-hover: #{$button-tertiary-hover};
  --button-tertiary-disabled: #{$button-tertiary-disabled};
}
