/* ============================================
   Lords of Lending Design System - CSS Variables
   Brand Update: January 2026
   ============================================ */

/* ========================================
   FONTS
   Using Poppins from Google Fonts (loaded in HTML)
   ======================================== */

/* ============================================
   Light Theme (Default)
   Design System: Lords of Lending Blue + Navy + Gold
   ============================================ */
:root {
  /* ========================================
     BRAND COLORS - Lords of Lending
     ======================================== */

  /* Primary Blue */
  --color-brand: #0049fb;
  --color-brand-light: #3371fc;
  --color-brand-dark: #0038c7;

  /* Navy */
  --color-navy: #000035;
  --color-navy-light: #1a1a4a;
  --color-navy-medium: #0d0d3d;
  --color-navy-dark: #000025;

  /* Primary Accent (Blue) - CTAs, highlights */
  --color-accent: #0049fb;
  --color-accent-light: #EBF4FF;
  --color-accent-dark: #0038c7;

  /* Secondary Accent (Gold) - Lords of Lending branding */
  --color-gold: #c9a227;
  --color-gold-light: #d4a824;
  --color-gold-dark: #b8962e;

  /* Semantic Aliases */
  --color-primary: #0049fb;
  --color-primary-light: #3371fc;
  --color-primary-dark: #0038c7;
  --color-primary-hover: #3371fc;
  --color-primary-active: #0038c7;
  --color-secondary: #64748B;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #d4a824 0%, #c9a227 50%, #b8962e 100%);
  --gradient-navy: linear-gradient(180deg, #000035 0%, #000025 100%);
  --gradient-brand: linear-gradient(180deg, #000035 0%, #000025 100%);

  /* Status Colors */
  --color-success: #10B981;
  --color-success-bg: #D1FAE5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FEF3C7;
  --color-danger: #EF4444;
  --color-danger-bg: #FEE2E2;
  --color-info: #0049fb;
  --color-info-bg: #DBEAFE;

  /* Backgrounds */
  --color-bg: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-surface-hover: #FAFBFD;
  --color-border: #E2E8F0;
  --color-border-dark: #CBD5E1;

  /* Text Colors */
  --color-text: #1A202C;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;

  /* Source Tags */
  --source-borrower: #0049fb;
  --source-seller: #10B981;
  --source-lender: #8B5CF6;
  --source-thirdparty: #F59E0B;
  --source-broker: #EC4899;

  /* Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-base: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows - Soft, modern */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-sidebar: 2px 0 8px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 2px 12px rgba(201, 162, 39, 0.25);

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;

  /* Layout */
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 60px;
  --header-height: 64px;

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
  --z-tooltip: 1100;
  --z-toast: 1200;
}

/* ============================================
   Dark Theme - Lords of Lending Night Mode
   ============================================ */
[data-theme="dark"] {
  /* Brand Colors - brighter for dark mode */
  --color-brand: #3371fc;
  --color-brand-light: #5a8ffd;
  --color-brand-dark: #0049fb;

  /* Accent - slightly brighter for dark */
  --color-accent: #3371fc;
  --color-accent-light: rgba(51, 113, 252, 0.15);
  --color-accent-dark: #0049fb;

  /* Gold - brighter for dark */
  --color-gold: #E4B834;
  --color-gold-light: #F5C84A;
  --color-gold-dark: #D4A824;

  /* Semantic mappings */
  --color-primary: #3371fc;
  --color-primary-light: rgba(51, 113, 252, 0.15);
  --color-primary-dark: #0049fb;
  --color-primary-hover: #5a8ffd;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #F5C84A 0%, #E4B834 50%, #D4A824 100%);
  --gradient-navy: linear-gradient(180deg, #1a1a4a 0%, #000035 100%);

  /* Status - adjusted for dark */
  --color-success: #34D399;
  --color-success-bg: rgba(52, 211, 153, 0.15);
  --color-warning: #FBBF24;
  --color-warning-bg: rgba(251, 191, 36, 0.15);
  --color-danger: #F87171;
  --color-danger-bg: rgba(248, 113, 113, 0.15);
  --color-info: #3371fc;
  --color-info-bg: rgba(51, 113, 252, 0.15);

  /* Backgrounds - Navy based */
  --color-bg: #000035;
  --color-surface: #0d0d3d;
  --color-surface-hover: #1a1a4a;
  --color-border: #1a1a4a;
  --color-border-dark: #2a2a5a;

  /* Text */
  --color-text: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;

  /* Source Tags - brighter for dark */
  --source-borrower: #60A5FA;
  --source-seller: #34D399;
  --source-lender: #A78BFA;
  --source-thirdparty: #FBBF24;
  --source-broker: #F472B6;

  /* Shadows - darker for dark theme */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-sidebar: 2px 0 8px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 2px 12px rgba(228, 184, 52, 0.3);
}
