/* ============================================
   ADDESK MARKETPLACE - DESIGN TOKENS
   Centralized CSS variables for consistent theming
   ============================================ */

:root {
    /* ==================== COLORS ==================== */
    
    /* Background Colors */
    --color-bg-app: #f5f7fb;
    --color-bg-surface: #ffffff;
    --color-bg-hover: #f9fafb;
    --color-bg-active: #f1f5f9;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Primary Brand Colors */
    --color-primary: #2563eb;
    --color-primary-soft: #e0ecff;
    --color-primary-strong: #1d4ed8;
    --color-primary-hover: #1d4ed8;
    
    /* Border Colors */
    --color-border-subtle: #e2e8f0;
    --color-border-strong: #cbd5e1;
    --color-border-hover: #94a3b8;
    
    /* Text Colors */
    --color-text-main: #0f172a;
    --color-text-muted: #6b7280;
    --color-text-light: #94a3b8;
    /* Aliases used across components */
    --color-text-primary: var(--color-text-main);
    --color-text-secondary: var(--color-text-muted);
    --color-text-tertiary: var(--color-text-light);
    /* Legacy aliases for compatibility */
    --color-text-dark: var(--color-text-main);
    --color-text-body: var(--color-text-main);
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-bg: #d1fae5;
    --color-success-text: #065f46;
    
    --color-warning: #f59e0b;
    --color-warning-bg: #fef3c7;
    --color-warning-text: #92400e;
    
    --color-error: #ef4444;
    --color-error-bg: #fee2e2;
    --color-error-text: #991b1b;
    
    --color-info: #3b82f6;
    --color-info-bg: #dbeafe;
    --color-info-text: #1e40af;
    
    /* Semantic Colors */
    --color-active: #dcfce7;
    --color-active-text: #166534;
    --color-inactive: #f3f4f6;
    --color-inactive-text: #6b7280;
    /* Common background/border aliases */
    --color-bg-secondary: var(--color-bg-hover);
    --color-border: var(--color-border-strong);
    --color-border-light: var(--color-border-subtle);
    --color-blue-light: var(--color-primary-soft);
    --color-blue-border: #93c5fd;
    /* Legacy light variants mapped to *_bg */
    --color-success-light: var(--color-success-bg);
    --color-error-light: var(--color-error-bg);
    --color-warning-light: var(--color-warning-bg);
    
    /* ==================== SPACING ==================== */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* ==================== TYPOGRAPHY ==================== */
    --font-family-base: system-ui, -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    --font-family-mono: 'Courier New', 'Consolas', monospace;
    
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
    --font-size-4xl: 32px;
    --font-size-5xl: 40px;
    --font-size-6xl: 48px;
    --font-size-xxs: 10px;
    --font-size-xxxs: 9px;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ==================== BORDERS ==================== */
    --border-width: 1px;
    --border-width-thick: 2px;
    
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 10px;
    --border-radius-xl: 12px;
    --border-radius-2xl: 14px;
    --border-radius-3xl: 16px;
    --border-radius-full: 999px;
    
    /* ==================== SHADOWS ==================== */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 16px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Button Shadows */
    --shadow-button: 0 4px 10px rgba(37, 99, 235, 0.25);
    --shadow-button-hover: 0 6px 14px rgba(37, 99, 235, 0.3);
    
    /* ==================== TRANSITIONS ==================== */
    --transition-fast: 120ms ease;
    --transition-base: 150ms ease;
    --transition-slow: 200ms ease;
    --transition-slower: 300ms ease;
    
    /* ==================== Z-INDEX ==================== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ==================== LAYOUT ==================== */
    --container-max-width: 1200px;
    --page-padding: 24px;
    --card-padding: 20px;
    --section-gap: 24px;
    
    /* ==================== BREAKPOINTS (for reference) ==================== */
    /* xs: 0px */
    /* sm: 640px */
    /* md: 768px */
    /* lg: 1024px */
    /* xl: 1280px */
    /* 2xl: 1536px */
}

/* ==================== GLOBAL BASE STYLES ==================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-main);
    background: var(--color-bg-app);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== UTILITY CLASSES ==================== */

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-md { font-size: var(--font-size-md); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.text-main { color: var(--color-text-main); }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
