/* ============================================================
   FocusFlow — theme palettes (Luna Digital Studios planner themes)
   Source: the planner-theme-palettes skill. Token names are the skill's;
   only the selectors are FocusFlow's. utils/… and components.css read
   FocusFlow's older names (--color-*, --accent-*, --nav-*), which base.css
   aliases onto these tokens — so this file is the ONE place colours live.

   Theme ids are the ones buyers already have saved (never rename them):
     pastel  → Rainbow Pastel   (also the :root default)
     blush   → Blush & Sage
     neutral → Neutral
     dark    → Dark
     clarity → retired 2026-10-17; anyone who had it saved gets Rainbow
               Pastel, and their saved value is left untouched.

   Per theme, after the skill's tokens, FocusFlow's seven section slots
   (--color-peach … --color-mauve, used for section tints, the energy scale,
   planner blocks, meal cells and confetti) are the theme's own chart
   colours (-deep) and a lightened tint of each.
   ============================================================ */

/* ---------- Rainbow Pastel (id: pastel; default) ---------- */
:root, [data-theme="pastel"], [data-theme="clarity"] {
  color-scheme: light;
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-alt: #FBFAF8;
  --nav-bg: #EFEDF5; --nav-text: #36305E; --nav-icon: #6B62A8; --nav-hover-bg: #E6E3F0; --nav-active-bg: #FFFFFF; --nav-active-text: #2B2552;
  --text: #2F2D3A; --text-muted: #696676; --heading: #2F2D3A; --link: #3F6A9C;
  --border: #ECEAF0; --border-accent: #D8D4F2; --divider: #F1EFF3;
  --btn-primary-bg: #C9DDF2; --btn-primary-text: #1F3A5C; --btn-primary-hover: #B5CFEC;
  --btn-secondary-bg: #F6D1C1; --btn-secondary-text: #6E3520; --btn-secondary-hover: #F1C2AE;
  --btn-ghost-text: #4F4793; --btn-ghost-border: #D8D4F2;
  --accent-1: #D8D4F2; --accent-1-deep: #6B62A8; --accent-2: #C9DDF2; --accent-2-deep: #3F6A9C;
  --chip-1-bg: #FBE5DB; --chip-1-text: #7E3B22; --chip-2-bg: #F8E7CF; --chip-2-text: #77501C;
  --chip-3-bg: #F7F0CF; --chip-3-text: #655619; --chip-4-bg: #E0EEE5; --chip-4-text: #2F5C40;
  --chip-5-bg: #E0EBF8; --chip-5-text: #264E7C; --chip-6-bg: #E8E5F8; --chip-6-text: #463E86;
  --chart-1: #F2B9A3; --chart-2: #EDC690; --chart-3: #E6D488; --chart-4: #A8D0B6; --chart-5: #A6C6E8; --chart-6: #BCB5EA;
  --chart-edge: #8F87C4; --chart-track: #F1EFF3; --progress-track: #EFEDF6;
  --progress-fill: linear-gradient(90deg,#F6D1C1,#F3D8B5,#F1E4B3,#CFE3D6,#C9DDF2,#D8D4F2);
  --success-bg: #E0EEE5; --success-text: #2F5C40; --warning-bg: #F8E7CF; --warning-text: #77501C;
  --danger-bg: #FBE0D6; --danger-text: #8A3A22; --info-bg: #E0EBF8; --info-text: #264E7C;
  --callout-bg: #F1EFFA; --callout-border: #D8D4F2; --focus-ring: #6B62A8;
  --brand-stripe: linear-gradient(90deg,#F6D1C1,#F3D8B5,#F1E4B3,#CFE3D6,#C9DDF2,#D8D4F2);

  /* FocusFlow section slots */
  --color-peach: #F6D1C1;    --color-peach-deep: #F2B9A3;
  --color-apricot: #F3D8B5;  --color-apricot-deep: #EDC690;
  --color-butter: #F1E4B3;   --color-butter-deep: #E6D488;
  --color-sage: #CFE3D6;     --color-sage-deep: #A8D0B6;
  --color-sky: #C9DDF2;      --color-sky-deep: #A6C6E8;
  --color-lavender: #D8D4F2; --color-lavender-deep: #BCB5EA;
  --color-mauve: #E6CFE0;    --color-mauve-deep: #DDB6D2;
  --check-tick: var(--btn-primary-text);
}

/* ---------- Blush & Sage (id: blush) ---------- */
[data-theme="blush"] {
  color-scheme: light;
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-alt: #FAF7F5;
  --nav-bg: #EFD6D2; --nav-text: #4A2F33; --nav-icon: #9A5E66; --nav-hover-bg: #E9CAC5; --nav-active-bg: #FAF7F5; --nav-active-text: #3B2427;
  --text: #3A2E30; --text-muted: #73666A; --heading: #3A2E30; --link: #5E7A62;
  --border: #EDE3E0; --border-accent: #E1C1C1; --divider: #F2ECEA;
  --btn-primary-bg: #AFC2B0; --btn-primary-text: #22362A; --btn-primary-hover: #9DB49F;
  --btn-secondary-bg: #EFD6D2; --btn-secondary-text: #5A3439; --btn-secondary-hover: #E6C6C1;
  --btn-ghost-text: #5E7A62; --btn-ghost-border: #AFC2B0;
  --accent-1: #E1C1C1; --accent-1-deep: #A86B72; --accent-2: #AFC2B0; --accent-2-deep: #5E7A62;
  --chip-1-bg: #F6E4E1; --chip-1-text: #7A424A; --chip-2-bg: #E4ECE4; --chip-2-text: #3E5A44;
  --chip-3-bg: #F3ECE8; --chip-3-text: #6A5552; --chip-4-bg: #F2E6DA; --chip-4-text: #7A5634;
  --chart-1: #E1C1C1; --chart-2: #AFC2B0; --chart-3: #C9979D; --chart-4: #84A088; --chart-5: #D9AFAA; --chart-6: #D4BFA6;
  --chart-edge: #B88A90; --chart-track: #F3ECEA; --progress-track: #F3E8E6; --progress-fill: #AFC2B0;
  --success-bg: #E4ECE4; --success-text: #3E5A44; --warning-bg: #F6E6D3; --warning-text: #7A5226;
  --danger-bg: #F6DCDD; --danger-text: #8E3E48; --info-bg: #F6E4E1; --info-text: #6E3E45;
  --callout-bg: #F7E6E3; --callout-border: #E1C1C1; --focus-ring: #A86B72; --brand-stripe: none;

  --color-peach: #EBD9D9;    --color-peach-deep: #E1C1C1;
  --color-apricot: #E8DCCE;  --color-apricot-deep: #D4BFA6;
  --color-butter: #F0D8D5;   --color-butter-deep: #D9AFAA;
  --color-sage: #D7E1D7;     --color-sage-deep: #AFC2B0;
  --color-sky: #D3E3D5;      --color-sky-deep: #84A088;
  --color-lavender: #F3D5D9; --color-lavender-deep: #C9979D;
  --color-mauve: #EBD9D9;    --color-mauve-deep: #E1C1C1;
  --check-tick: var(--btn-primary-text);
}

/* ---------- Neutral (id: neutral) ---------- */
[data-theme="neutral"] {
  color-scheme: light;
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-alt: #FAF8F4;
  --nav-bg: #C5D9D8; --nav-text: #243B3A; --nav-icon: #4E6C6B; --nav-hover-bg: #B6CECD; --nav-active-bg: #FAF8F4; --nav-active-text: #1F3332;
  --text: #2D3133; --text-muted: #676D70; --heading: #2D3133; --link: #555F80;
  --border: #ECE9E5; --border-accent: #C5D9D8; --divider: #F1EFEB;
  --btn-primary-bg: #666F8F; --btn-primary-text: #FFFFFF; --btn-primary-hover: #596282;
  --btn-secondary-bg: #C5D9D8; --btn-secondary-text: #243B3A; --btn-secondary-hover: #B6CECD;
  --btn-ghost-text: #555F80; --btn-ghost-border: #AEB6D2;
  --accent-1: #A2B6B5; --accent-1-deep: #4E6C6B; --accent-2: #AEB6D2; --accent-2-deep: #555F80;
  --chip-1-bg: #E3EDEC; --chip-1-text: #2F4D4C; --chip-2-bg: #E6E9F3; --chip-2-text: #3E4768;
  --chip-3-bg: #EFECE7; --chip-3-text: #5A544B; --chip-4-bg: #DCE3E2; --chip-4-text: #34494A;
  --chart-1: #A2B6B5; --chart-2: #7D86A4; --chart-3: #C5D9D8; --chart-4: #AEB6D2; --chart-5: #D3CABE; --chart-6: #5F7A79;
  --chart-edge: #6E8786; --chart-track: #F1EFEB; --progress-track: #ECE9E5; --progress-fill: #A2B6B5;
  --success-bg: #E3EDEC; --success-text: #2F4D4C; --warning-bg: #F1E8DA; --warning-text: #6B5126;
  --danger-bg: #F2E1DF; --danger-text: #83423E; --info-bg: #E6E9F3; --info-text: #3E4768;
  --callout-bg: #EEF4F3; --callout-border: #C5D9D8; --focus-ring: #7D86A4; --brand-stripe: none;

  --color-peach: #D5E1E0;    --color-peach-deep: #A2B6B5;
  --color-apricot: #E2DDD6;  --color-apricot-deep: #D3CABE;
  --color-butter: #D6E1E0;   --color-butter-deep: #C5D9D8;
  --color-sage: #D2E2E1;     --color-sage-deep: #5F7A79;
  --color-sky: #D9DDED;      --color-sky-deep: #AEB6D2;
  --color-lavender: #D8DDF0; --color-lavender-deep: #7D86A4;
  --color-mauve: #D5E1E0;    --color-mauve-deep: #A2B6B5;
  /* The checked-box tick sits on --accent-2 (#AEB6D2). The skill's
     --btn-primary-text (white) measures about 2:1 there, so the tick uses
     the heading colour instead (7:1+). */
  --check-tick: var(--heading);
}

/* ---------- Dark (id: dark) ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1D1E23; --surface: #25272E; --surface-alt: #2B2D35;
  --nav-bg: #2C2F39; --nav-text: #E3E1EA; --nav-icon: #A9B0D6; --nav-hover-bg: #353947; --nav-active-bg: #3B4052; --nav-active-text: #F3F1F6;
  --text: #E8E6E3; --text-muted: #A9A7B0; --heading: #F1EFEC; --link: #A9C4E6;
  --border: #363944; --border-accent: #4A4F64; --divider: #30333C;
  --btn-primary-bg: #A9B0D6; --btn-primary-text: #1D1E2B; --btn-primary-hover: #BBC1E0;
  --btn-secondary-bg: #3A3E4D; --btn-secondary-text: #E8E6EF; --btn-secondary-hover: #454A5C;
  --btn-ghost-text: #C2C8E6; --btn-ghost-border: #555B75;
  --accent-1: #A9B0D6; --accent-1-deep: #C2C8E6; --accent-2: #9DB8A0; --accent-2-deep: #B6CDB8;
  --chip-1-bg: #3A3550; --chip-1-text: #D6D1F2; --chip-2-bg: #2F4136; --chip-2-text: #C8E0CC;
  --chip-3-bg: #4A3437; --chip-3-text: #F0CFCF; --chip-4-bg: #2E3C4E; --chip-4-text: #C9DCF2;
  --chart-1: #A9B0D6; --chart-2: #9DB8A0; --chart-3: #E3B5B5; --chart-4: #9CC3E6; --chart-5: #E6D29A; --chart-6: #E8B49E;
  --chart-edge: #1D1E23; --chart-track: #30333C; --progress-track: #30333C; --progress-fill: #9DB8A0;
  --success-bg: #2F4136; --success-text: #C8E0CC; --warning-bg: #463D2B; --warning-text: #EBD9A9;
  --danger-bg: #4A3437; --danger-text: #F0C4C4; --info-bg: #2E3C4E; --info-text: #C9DCF2;
  --callout-bg: #2B2D3A; --callout-border: #4A4F64; --focus-ring: #C2C8E6; --brand-stripe: none;

  --color-peach: #E8B49E;    --color-peach-deep: #E8B49E;
  --color-apricot: #E3B5B5;  --color-apricot-deep: #E3B5B5;
  --color-butter: #E6D29A;   --color-butter-deep: #E6D29A;
  --color-sage: #9DB8A0;     --color-sage-deep: #9DB8A0;
  --color-sky: #9CC3E6;      --color-sky-deep: #9CC3E6;
  --color-lavender: #A9B0D6; --color-lavender-deep: #A9B0D6;
  --color-mauve: #E3B5B5;    --color-mauve-deep: #E3B5B5;
  --check-tick: var(--btn-primary-text);

  /* Dark-only comfort settings carried over from the old dark theme. */
  --tint-cell: 22%;
  --tint-block: 26%;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
}
