/* ============================================================
   NAUTICA SENTINEL — DESIGN TOKENS
   Single source of truth for all visual decisions.
   All other CSS files use var(--ns-*) — never raw values.
   ============================================================ */

:root {
  /* ── BRAND PALETTE ── */
  /* Navy (primary brand) */
  --ns-navy-950: #020B1A;
  --ns-navy-900: #061529;
  --ns-navy-800: #0D2545;
  --ns-navy-700: #143564;
  --ns-navy-600: #1A4580;
  --ns-navy-500: #1E56A0;
  --ns-navy-400: #2E6EC8;
  --ns-navy-300: #5B92D6;
  --ns-navy-200: #9DBFE8;
  --ns-navy-100: #D4E4F7;
  --ns-navy-050: #EDF4FD;

  /* Teal (secondary / interactive) */
  --ns-teal-700: #095E55;
  --ns-teal-600: #0D7A6F;
  --ns-teal-500: #0F9B8E;
  --ns-teal-400: #14BDB0;
  --ns-teal-300: #3DD6CA;
  --ns-teal-200: #A3E8E3;
  --ns-teal-050: #E6FAFA;

  /* Gold (accent / alerts / badges) */
  --ns-gold-700: #92400E;
  --ns-gold-600: #B45309;
  --ns-gold-500: #D97706;
  --ns-gold-400: #F59E0B;
  --ns-gold-300: #FCD34D;
  --ns-gold-100: #FEF3C7;
  --ns-gold-050: #FFFBEB;

  /* Semantic Colors */
  --ns-red-700:   #B91C1C;
  --ns-red-600:   #DC2626;
  --ns-red-500:   #EF4444;
  --ns-red-100:   #FEE2E2;
  --ns-red-050:   #FEF2F2;

  --ns-green-700: #15803D;
  --ns-green-600: #16A34A;
  --ns-green-500: #22C55E;
  --ns-green-100: #DCFCE7;
  --ns-green-050: #F0FDF4;

  --ns-blue-600:  #2563EB;
  --ns-blue-500:  #3B82F6;
  --ns-blue-100:  #DBEAFE;
  --ns-blue-050:  #EFF6FF;

  --ns-slate-900: #0F172A;
  --ns-slate-800: #1E293B;
  --ns-slate-700: #334155;
  --ns-slate-600: #475569;
  --ns-slate-500: #64748B;
  --ns-slate-400: #94A3B8;
  --ns-slate-300: #CBD5E1;
  --ns-slate-200: #E2E8F0;
  --ns-slate-100: #F1F5F9;
  --ns-slate-050: #F8FAFC;
  --ns-white:     #FFFFFF;

  /* ── SEMANTIC TOKENS (light mode) ── */
  --color-bg-page:       var(--ns-slate-050);
  --color-bg-surface:    var(--ns-white);
  --color-bg-elevated:   var(--ns-white);
  --color-bg-overlay:    rgba(2, 11, 26, 0.6);

  --color-text-primary:  var(--ns-slate-900);
  --color-text-secondary: var(--ns-slate-700);
  --color-text-muted:    var(--ns-slate-500);
  --color-text-inverse:  var(--ns-white);
  --color-text-link:     var(--ns-navy-500);
  --color-text-link-hover: var(--ns-navy-400);

  --color-border:        var(--ns-slate-200);
  --color-border-strong: var(--ns-slate-300);
  --color-border-focus:  var(--ns-navy-500);

  --color-brand:         var(--ns-navy-500);
  --color-brand-hover:   var(--ns-navy-400);
  --color-brand-active:  var(--ns-navy-600);
  --color-brand-subtle:  var(--ns-navy-050);
  --color-brand-text:    var(--ns-navy-700);

  --color-secondary:     var(--ns-teal-500);
  --color-secondary-hover: var(--ns-teal-400);
  --color-secondary-subtle: var(--ns-teal-050);

  --color-accent:        var(--ns-gold-500);
  --color-accent-subtle: var(--ns-gold-050);

  --color-success:       var(--ns-green-600);
  --color-success-subtle: var(--ns-green-050);
  --color-success-border: var(--ns-green-100);

  --color-warning:       var(--ns-gold-600);
  --color-warning-subtle: var(--ns-gold-050);
  --color-warning-border: var(--ns-gold-100);

  --color-danger:        var(--ns-red-600);
  --color-danger-subtle: var(--ns-red-050);
  --color-danger-border: var(--ns-red-100);

  --color-info:          var(--ns-blue-600);
  --color-info-subtle:   var(--ns-blue-050);
  --color-info-border:   var(--ns-blue-100);

  /* Sidebar */
  --color-sidebar-bg:       var(--ns-navy-900);
  --color-sidebar-text:     var(--ns-navy-200);
  --color-sidebar-text-muted: var(--ns-navy-300);
  --color-sidebar-hover:    rgba(255,255,255,0.07);
  --color-sidebar-active:   var(--ns-navy-500);
  --color-sidebar-active-text: var(--ns-white);
  --color-sidebar-border:   rgba(255,255,255,0.08);

  /* Topbar */
  --color-topbar-bg:     var(--ns-white);
  --color-topbar-border: var(--ns-slate-200);

  /* ── TYPOGRAPHY ── */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', 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 */

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

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

  /* ── SPACING (4px base grid) ── */
  --space-0:  0;
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ── BORDER RADIUS ── */
  --radius-sm:   0.25rem;  /* 4px */
  --radius-md:   0.5rem;   /* 8px */
  --radius-lg:   0.75rem;  /* 12px */
  --radius-xl:   1rem;     /* 16px */
  --radius-2xl:  1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* ── SHADOWS ── */
  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px 0 rgba(0,0,0,0.10), 0 1px 2px -1px rgba(0,0,0,0.10);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.10);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.10);
  --shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.05);

  /* ── Z-INDEX ── */
  --z-base:    0;
  --z-raised:  10;
  --z-sidebar: 100;
  --z-topbar:  200;
  --z-dropdown: 250;
  --z-modal:   300;
  --z-toast:   400;
  --z-tooltip: 500;
  --z-lock:    600;

  /* ── TRANSITIONS ── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* ── LAYOUT ── */
  --sidebar-width:      16rem;   /* 256px */
  --sidebar-width-mini: 4rem;    /* 64px */
  --topbar-height:      4rem;    /* 64px */
  --container-max:      80rem;   /* 1280px */
}
