/**
 * BoardBlink Brand Variables
 * Design system matching EmailNameExtractor & AIVERIE quality
 */

:root {
  /* ========================================
     BRAND COLORS
     ======================================== */
  
  /* Primary Brand */
  --bb-primary: #f1c40f;        /* Amber - brand accent */
  --bb-primary-hover: #f39c12;  /* Darker amber on hover */
  --bb-secondary: #2ecc71;      /* Green - success/live */
  --bb-secondary-hover: #27ae60;
  
  /* Dark Mode (Default) */
  --bb-bg-dark: #0b0d0e;        /* Main background */
  --bb-surface-dark: #1a1d1f;   /* Cards, panels, navbar */
  --bb-surface-hover-dark: #2a2d2f;  /* Hover state */
  --bb-text-dark: #e8eaed;      /* Primary text */
  --bb-text-secondary-dark: #9aa0a6;  /* Secondary text */
  --bb-text-muted-dark: #5f6368;  /* Muted text */
  --bb-border-dark: #2a2d2f;    /* Borders */
  
  /* Light Mode */
  --bb-bg-light: #ffffff;
  --bb-surface-light: #f8f9fa;
  --bb-surface-hover-light: #e9ecef;
  --bb-text-light: #1a1d1f;
  --bb-text-secondary-light: #6c757d;
  --bb-text-muted-light: #adb5bd;
  --bb-border-light: #dee2e6;
  
  /* Semantic Colors */
  --bb-success: #2ecc71;
  --bb-warning: #f1c40f;
  --bb-error: #e74c3c;
  --bb-info: #3498db;
  
  /* Status Colors (for boards) */
  --bb-status-new: #2196F3;       /* Blue */
  --bb-status-progress: #FFC107;  /* Amber */
  --bb-status-ready: #4CAF50;     /* Green */
  --bb-status-waiting: #E74C3C;   /* Red */
  --bb-status-done: #9E9E9E;      /* Grey */
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  /* Font Families */
  --bb-font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                  Helvetica, Arial, sans-serif, 'Apple Color Emoji';
  --bb-font-mono: 'Roboto Mono', 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  
  /* Font Sizes */
  --bb-text-xs: 0.75rem;    /* 12px */
  --bb-text-sm: 0.875rem;   /* 14px */
  --bb-text-base: 1rem;     /* 16px */
  --bb-text-lg: 1.125rem;   /* 18px */
  --bb-text-xl: 1.25rem;    /* 20px */
  --bb-text-2xl: 1.5rem;    /* 24px */
  --bb-text-3xl: 2rem;      /* 32px */
  --bb-text-4xl: 3rem;      /* 48px */
  --bb-text-5xl: 4rem;      /* 64px */
  
  /* Font Weights */
  --bb-font-normal: 400;
  --bb-font-medium: 500;
  --bb-font-semibold: 600;
  --bb-font-bold: 700;
  
  /* Line Heights */
  --bb-leading-tight: 1.25;
  --bb-leading-normal: 1.5;
  --bb-leading-relaxed: 1.75;
  
  /* ========================================
     SPACING (8px grid)
     ======================================== */
  
  --bb-space-0: 0;
  --bb-space-1: 0.5rem;   /* 8px */
  --bb-space-2: 1rem;     /* 16px */
  --bb-space-3: 1.5rem;   /* 24px */
  --bb-space-4: 2rem;     /* 32px */
  --bb-space-5: 2.5rem;   /* 40px */
  --bb-space-6: 3rem;     /* 48px */
  --bb-space-8: 4rem;     /* 64px */
  --bb-space-10: 5rem;    /* 80px */
  --bb-space-12: 6rem;    /* 96px */
  
  /* ========================================
     BORDERS & RADIUS
     ======================================== */
  
  --bb-border-width: 1px;
  --bb-border-width-thick: 2px;
  
  --bb-radius-sm: 0.25rem;   /* 4px */
  --bb-radius-md: 0.5rem;    /* 8px */
  --bb-radius-lg: 0.75rem;   /* 12px */
  --bb-radius-xl: 1rem;      /* 16px */
  --bb-radius-full: 9999px;  /* Pill shape */
  
  /* ========================================
     SHADOWS
     ======================================== */
  
  --bb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --bb-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --bb-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --bb-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Glow effects */
  --bb-glow-primary: 0 0 20px rgba(241, 196, 15, 0.5);
  --bb-glow-success: 0 0 20px rgba(46, 204, 113, 0.5);
  
  /* ========================================
     TRANSITIONS
     ======================================== */
  
  --bb-transition-fast: 150ms ease;
  --bb-transition-base: 250ms ease;
  --bb-transition-slow: 400ms ease;
  
  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  
  --bb-z-dropdown: 1000;
  --bb-z-sticky: 1020;
  --bb-z-fixed: 1030;
  --bb-z-modal-backdrop: 1040;
  --bb-z-modal: 1050;
  --bb-z-popover: 1060;
  --bb-z-toast: 1070;
  
  /* ========================================
     LAYOUT
     ======================================== */
  
  --bb-container-max: 1320px;
  --bb-navbar-height: 72px;
  --bb-footer-height: auto;
  
  /* Board View Specific */
  --bb-board-header-height: 80px;
  --bb-board-footer-height: 60px;
  --bb-job-row-height: 48px;
  --bb-job-row-height-compact: 42px;
}

/* ========================================
   THEME SWITCHING
   ======================================== */

/* Light mode overrides */
[data-theme="light"] {
  --bb-bg: var(--bb-bg-light);
  --bb-background: var(--bb-bg-light);  /* Alias for consistency */
  --bb-surface: var(--bb-surface-light);
  --bb-surface-hover: var(--bb-surface-hover-light);
  --bb-text: var(--bb-text-light);
  --bb-text-secondary: var(--bb-text-secondary-light);
  --bb-text-muted: var(--bb-text-muted-light);
  --bb-border: var(--bb-border-light);
}

/* Dark mode (default) */
[data-theme="dark"],
:root {
  --bb-bg: var(--bb-bg-dark);
  --bb-background: var(--bb-bg-dark);  /* Alias for consistency */
  --bb-surface: var(--bb-surface-dark);
  --bb-surface-hover: var(--bb-surface-hover-dark);
  --bb-text: var(--bb-text-dark);
  --bb-text-secondary: var(--bb-text-secondary-dark);
  --bb-text-muted: var(--bb-text-muted-dark);
  --bb-border: var(--bb-border-dark);
}




