/* ============================================================
   PostYar Design Tokens
   Deep Navy + Electric Teal — RTL-first, Swiss Minimalism
   ============================================================ */

:root {
  /* ── Brand Colors ── */
  --color-navy-950: #060d14;
  --color-navy-900: #0d1b2a;
  --color-navy-800: #132338;
  --color-navy-700: #1b2e4a;
  --color-navy-600: #233a5c;
  --color-navy-500: #2d4a73;

  --color-teal-500: #00c8a0;
  --color-teal-400: #00d9af;
  --color-teal-300: #33e5c0;
  --color-teal-200: #80f0da;
  --color-teal-100: #ccfaf4;

  /* ── Semantic Colors ── */
  --color-bg:           #0d1b2a;
  --color-surface:      #132338;
  --color-surface-2:    #1b2e4a;
  --color-surface-3:    #233a5c;

  --color-primary:      #00c8a0;
  --color-primary-hover:#00d9af;
  --color-primary-press:#00b08d;

  --color-text-primary: #f0f7ff;
  --color-text-secondary: #94aec5;
  --color-text-muted:   #5c7a96;

  --color-border:       rgba(0, 200, 160, 0.15);
  --color-border-subtle: rgba(144, 178, 210, 0.12);
  --color-border-strong: rgba(0, 200, 160, 0.35);

  --color-success:      #22c55e;
  --color-warning:      #f59e0b;
  --color-error:        #ef4444;

  /* ── Glass Effect ── */
  --glass-bg:           rgba(19, 35, 56, 0.65);
  --glass-border:       rgba(0, 200, 160, 0.18);
  --glass-blur:         16px;
  --glass-shadow:       0 8px 32px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255,255,255,0.04) inset;

  /* ── Typography ── */
  --font-sans:          'Vazirmatn', system-ui, sans-serif;
  --font-mono:          'JetBrains Mono', 'Cascadia Code', monospace;

  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-lg:    1.125rem;  /* 18px */
  --text-xl:    1.25rem;   /* 20px */
  --text-2xl:   1.5rem;    /* 24px */
  --text-3xl:   1.875rem;  /* 30px */
  --text-4xl:   2.25rem;   /* 36px */
  --text-5xl:   3rem;      /* 48px */
  --text-6xl:   3.75rem;   /* 60px */

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold: 600;
  --weight-bold:    700;

  --leading-tight:  1.2;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* ── Spacing (8pt grid) ── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ── Border Radius ── */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 24px rgba(0, 200, 160, 0.2);
  --shadow-glow-strong: 0 0 40px rgba(0, 200, 160, 0.35);

  /* ── Transitions ── */
  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Layout ── */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-max: 1440px;

  /* ── Z-index ── */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-nav:     300;
  --z-toast:   400;
}

/* ── Reduced Motion Support ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
