/*
 * Everforest Dark Medium Terminal Theme
 * =====================================
 * Official dark palette with the default medium contrast.
 * https://github.com/sainnhe/everforest
 */

:root.theme-everforest {
  /* ===========================================
   * Base Terminal Colors (ANSI 0-15)
   * =========================================== */

  /* Normal Colors (0-7) */
  --color-black: #475258;
  --color-red: #e67e80;
  --color-green: #a7c080;
  --color-yellow: #dbbc7f;
  --color-blue: #7fbbb3;
  --color-magenta: #d699b6;
  --color-cyan: #83c092;
  --color-white: #d3c6aa;

  /* Bright Colors (8-15) */
  --color-bright-black: #475258;
  --color-bright-red: #e67e80;
  --color-bright-green: #a7c080;
  --color-bright-yellow: #dbbc7f;
  --color-bright-blue: #7fbbb3;
  --color-bright-magenta: #d699b6;
  --color-bright-cyan: #83c092;
  --color-bright-white: #d3c6aa;

  /* Terminal Background/Foreground */
  --terminal-background: #2d353b;
  --terminal-foreground: #d3c6aa;

  /* Cursor */
  --cursor-bg: #d3c6aa;
  --cursor-fg: #2d353b;

  /* Everforest medium background and grey scales */
  --everforest-bg-dim: #232a2e;
  --everforest-bg-1: #343f44;
  --everforest-bg-2: #3d484d;
  --everforest-bg-4: #4f585e;
  --everforest-bg-visual: #543a48;
  --everforest-grey-0: #7a8478;
  --everforest-grey-1: #859289;
  --everforest-grey-2: #9da9a0;

  /* Core Layout Colors */
  --color-surface: var(--everforest-bg-1);
  --color-elevated: var(--everforest-bg-2);
  --color-overlay: color-mix(in oklch, var(--everforest-bg-dim) 85%, transparent);

  /* UI Element Colors */
  --color-border: var(--everforest-bg-4);
  --color-divider: var(--everforest-bg-4);
  --color-hover: var(--everforest-bg-2);
  --color-selected: var(--everforest-bg-visual);

  /* Content Hierarchy */
  --color-emphasis: var(--terminal-foreground);
  --color-secondary: var(--everforest-grey-2);
  --color-tertiary: var(--everforest-grey-1);
  --color-disabled: var(--everforest-grey-0);

  /* Shadow */
  --color-shadow: color-mix(in oklch, var(--everforest-bg-dim) 45%, transparent);

  /* Trix Editor Icons */
  --trix-icon-filter: brightness(0) saturate(100%) invert(92%) sepia(18%) saturate(409%) hue-rotate(347deg) brightness(89%) contrast(84%);
}
