/* =============================================================
 * Energoskan Dev Portal — Design Tokens
 * Corporate engineering palette
 * Light and dark modes
 * ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Light mode (default) ──────────────────────────────────── */
:root {
  --background:           0 0% 99%;   /* #f6f8f9 */
  --foreground:           215 38% 9%;    /* глобальный основной текст */

  --card:                 0 0% 100%;     /* #ffffff */
  --card-foreground:      203 30% 12%;

  --popover:              0 0% 100%;
  --popover-foreground:   203 30% 12%;

  --primary:              185 100% 24%;  /* #006e78 */
  --primary-foreground:   0 0% 100%;

  --secondary:            190 20% 90%;   /* #e7eef0 */
  --secondary-foreground: 203 30% 12%;

  --muted:                195 18% 92%;   /* #edf2f3 */
  --muted-foreground:     215 24% 23%;   /* глобальный вторичный текст */

  --accent:               28 91% 54%;    /* #f58220 */
  --accent-foreground:    0 0% 100%;

  --destructive:          0 67% 44%;     /* #bb2525 */
  --destructive-foreground: 0 0% 100%;

  --border:               195 18% 74%;   /* #d2dcdf */
  --input:                195 18% 74%;
  --ring:                 185 100% 24%;

  --radius:               0.625rem;

  /* Compatibility palette */
  --smui-frost-1: 185 100% 24%;
  --smui-frost-2: 185 73% 32%;
  --smui-frost-3: 188 48% 42%;
  --smui-frost-4: 190 34% 52%;

  --smui-red:    0 67% 44%;
  --smui-orange: 28 91% 54%;
  --smui-yellow: 42 90% 48%;
  --smui-green:  145 47% 35%;
  --smui-purple: 275 36% 44%;

  /* Surface hierarchy */
  --smui-surface-0: 0 0% 99%;
  --smui-surface-1: 0 0% 100%;
  --smui-surface-2: 0 0% 97%;
  --smui-surface-3: 0 0% 94%;

  --smui-border-hover: 185 42% 58%;

  /* Typography */
  --font-sans: 'Montserrat', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ── Dark mode ─────────────────────────────────────────────── */
.dark {
  --background:           203 24% 9%;    /* #11191e */
  --foreground:           195 18% 91%;   /* #e3e9eb */

  --card:                 202 22% 12%;   /* #182228 */
  --card-foreground:      195 18% 91%;

  --popover:              202 22% 12%;
  --popover-foreground:   195 18% 91%;

  --primary:              184 65% 48%;   /* #2ac2ca */
  --primary-foreground:   203 24% 9%;

  --secondary:            202 19% 17%;   /* #232f36 */
  --secondary-foreground: 195 18% 91%;

  --muted:                202 19% 17%;
  --muted-foreground:     198 10% 65%;   /* #99a7ad */

  --accent:               28 91% 56%;    /* #f68b2c */
  --accent-foreground:    203 24% 9%;

  --destructive:          0 69% 59%;
  --destructive-foreground: 0 0% 100%;

  --border:               200 17% 25%;   /* #35444c */
  --input:                200 17% 25%;
  --ring:                 184 65% 48%;

  --radius:               0.625rem;

  /* Compatibility palette */
  --smui-frost-1: 184 65% 48%;
  --smui-frost-2: 184 55% 43%;
  --smui-frost-3: 188 42% 49%;
  --smui-frost-4: 192 34% 58%;

  --smui-red:    0 69% 59%;
  --smui-orange: 28 91% 56%;
  --smui-yellow: 42 90% 62%;
  --smui-green:  145 45% 54%;
  --smui-purple: 275 40% 67%;

  /* Surface hierarchy */
  --smui-surface-0: 203 24% 9%;
  --smui-surface-1: 202 22% 12%;
  --smui-surface-2: 202 19% 17%;
  --smui-surface-3: 201 17% 21%;

  --smui-border-hover: 187 37% 43%;
}
