/* ============================================================
   Planora AI – Design System Variables
   ============================================================ */

:root {
  /* ── Brand Colors ───────────────────────────────────────── */
  --color-brand-primary:       #7C3AED;   /* Violet-600 */
  --color-brand-secondary:     #4F46E5;   /* Indigo-600 */
  --color-brand-accent:        #F97316;   /* Coral/Orange */
  --color-brand-gradient-from: #7C3AED;
  --color-brand-gradient-via:  #4F46E5;
  --color-brand-gradient-to:   #06B6D4;   /* Cyan */

  /* ── Background Palette ─────────────────────────────────── */
  --color-bg-base:        #0A0D1A;   /* Deep navy */
  --color-bg-surface:     #0F1629;
  --color-bg-elevated:    #151D35;
  --color-bg-card:        #1A2340;
  --color-bg-card-hover:  #1F2A4A;
  --color-bg-overlay:     rgba(10, 13, 26, 0.85);
  --color-bg-glass:       rgba(26, 35, 64, 0.60);
  --color-bg-glass-light: rgba(255, 255, 255, 0.05);

  /* ── Text Colors ────────────────────────────────────────── */
  --color-text-primary:   #F1F5FF;
  --color-text-secondary: #94A3C4;
  --color-text-tertiary:  #5A6A8A;
  --color-text-inverse:   #0A0D1A;
  --color-text-accent:    #A78BFA;   /* Violet-400 */
  --color-text-link:      #818CF8;

  /* ── Border Colors ──────────────────────────────────────── */
  --color-border-subtle:  rgba(99, 102, 241, 0.15);
  --color-border-default: rgba(99, 102, 241, 0.25);
  --color-border-strong:  rgba(99, 102, 241, 0.45);
  --color-border-glass:   rgba(255, 255, 255, 0.08);

  /* ── Status Colors ──────────────────────────────────────── */
  --color-success:       #10B981;
  --color-success-bg:    rgba(16, 185, 129, 0.12);
  --color-warning:       #F59E0B;
  --color-warning-bg:    rgba(245, 158, 11, 0.12);
  --color-error:         #EF4444;
  --color-error-bg:      rgba(239, 68, 68, 0.12);
  --color-info:          #06B6D4;
  --color-info-bg:       rgba(6, 182, 212, 0.12);

  /* ── Gradients ──────────────────────────────────────────── */
  --gradient-brand:     linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #06B6D4 100%);
  --gradient-brand-h:   linear-gradient(90deg, #7C3AED, #4F46E5, #06B6D4);
  --gradient-warm:      linear-gradient(135deg, #7C3AED 0%, #F97316 100%);
  --gradient-card:      linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.05) 100%);
  --gradient-hero:      radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.35) 0%, transparent 70%);
  --gradient-glow:      radial-gradient(circle at center, rgba(124,58,237,0.4) 0%, transparent 60%);

  /* ── Typography ─────────────────────────────────────────── */
  --font-sans:    'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, 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 */
  --text-7xl:  4.5rem;     /* 72px */

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;

  --font-thin:       100;
  --font-light:      300;
  --font-normal:     400;
  --font-medium:     500;
  --font-semibold:   600;
  --font-bold:       700;
  --font-extrabold:  800;

  /* ── Spacing ────────────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Border Radius ──────────────────────────────────────── */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.25rem;
  --radius-3xl:  1.5rem;
  --radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────────────── */
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl:     0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow:   0 0 24px rgba(124, 58, 237, 0.4);
  --shadow-glow-sm:0 0 12px rgba(124, 58, 237, 0.3);
  --shadow-card:   0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99,102,241,0.12);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124,58,237,0.3);

  /* ── 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);

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

  /* ── Layout ─────────────────────────────────────────────── */
  --max-width:        1280px;
  --sidebar-width:    260px;
  --sidebar-collapsed:72px;
  --header-height:    64px;
  --content-padding:  var(--space-8);

  /* ── Misc ───────────────────────────────────────────────── */
  --blur-glass: blur(16px);
  --blur-light: blur(8px);
}

/* ── Dark overlay scrollbars ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-base); }
::-webkit-scrollbar-thumb { background: var(--color-border-default); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-brand-primary); }

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