/* ================================================================
   FILE: assets/css/core/variables.css
   PURPOSE: Design Tokens, CSS Variables & Multi-Theme System
   ================================================================ */

:root {
    /* ------------------------------------------------------------
       Brand Primary (Warm Orange Scale)
       ------------------------------------------------------------ */
    --primary-50:  #fff7ed;
    --primary-100: #ffedd5;
    --primary-200: #fed7aa;
    --primary-300: #fdba74;
    --primary-400: #fb923c;
    --primary-500: #ff5733; /* Canonical Brand Primary */
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --primary-800: #9a3412;
    --primary-900: #7c2d12;
    --primary-rgb: 255, 87, 51;
    --primary-gradient: linear-gradient(135deg, #ff6a3d 0%, #ff5733 50%, #e04b2b 100%);
    --primary-glow: rgba(255, 87, 51, 0.28);

    /* Legacy Aliases (Strict Backward Compatibility) */
    --primary-orange: #ff5733;
    --primary-orange-hover: #e04b2b;
    --watch-green: #10b981;
    --download-navy: #0f172a;

    /* ------------------------------------------------------------
       Neutral Palette (Light Mode - Clean Slate / Zinc)
       ------------------------------------------------------------ */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Semantic UI Elements (Light Mode) */
    --bg-color: #f8fafc;
    --panel-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-hover-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f1f5f9;
    --sidebar-active-bg: #fff7ed;
    --sidebar-active-text: #ff5733;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
    --input-disabled-bg: #f1f5f9;

    /* Text & Borders (Light Mode) */
    --dark-text: #0f172a;
    --text-primary: #0f172a;
    --gray-text: #475569;
    --text-secondary: #475569;
    --light-gray-text: #94a3b8;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #ff5733;

    /* Semantic Status (Soft & Solid) */
    --status-success-bg: #ecfdf5;
    --status-success-border: #a7f3d0;
    --status-success-text: #065f46;
    --status-success-dot: #10b981;

    --status-warning-bg: #fffbeb;
    --status-warning-border: #fde68a;
    --status-warning-text: #92400e;
    --status-warning-dot: #f59e0b;

    --status-danger-bg: #fef2f2;
    --status-danger-border: #fecaca;
    --status-danger-text: #991b1b;
    --status-danger-dot: #ef4444;

    --status-info-bg: #eff6ff;
    --status-info-border: #bfdbfe;
    --status-info-text: #1e40af;
    --status-info-dot: #3b82f6;

    /* Layout Dimensions */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 76px;
    --header-height: 70px;
    --content-max-width: 1400px;

    /* Radius Scale */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Layered Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 32px -6px rgba(15, 23, 42, 0.14), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
    --shadow-inner: inset 0 2px 4px 0 rgba(15, 23, 42, 0.04);

    /* Animation Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   Dark Theme Overrides [data-theme="dark"]
   ------------------------------------------------------------ */
[data-theme="dark"] {
    --bg-color: #0b0f17;
    --panel-bg: #0b0f17;
    --card-bg: #111827;
    --card-hover-bg: #162032;
    --sidebar-bg: #0d131f;
    --sidebar-hover: #1e293b;
    --sidebar-active-bg: rgba(255, 87, 51, 0.12);
    --sidebar-active-text: #ff7849;
    --navbar-bg: rgba(13, 19, 31, 0.85);
    --modal-bg: #111827;
    --input-bg: #0d131f;
    --input-disabled-bg: #1e293b;

    --dark-text: #f8fafc;
    --text-primary: #f8fafc;
    --gray-text: #94a3b8;
    --text-secondary: #94a3b8;
    --light-gray-text: #64748b;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --border-subtle: #172033;
    --border-focus: #ff6a3d;

    /* Semantic Status (Dark Mode soft variants) */
    --status-success-bg: rgba(16, 185, 129, 0.12);
    --status-success-border: rgba(16, 185, 129, 0.3);
    --status-success-text: #34d399;
    --status-success-dot: #10b981;

    --status-warning-bg: rgba(245, 158, 11, 0.12);
    --status-warning-border: rgba(245, 158, 11, 0.3);
    --status-warning-text: #fbbf24;
    --status-warning-dot: #f59e0b;

    --status-danger-bg: rgba(239, 68, 68, 0.12);
    --status-danger-border: rgba(239, 68, 68, 0.3);
    --status-danger-text: #f87171;
    --status-danger-dot: #ef4444;

    --status-info-bg: rgba(59, 130, 246, 0.12);
    --status-info-border: rgba(59, 130, 246, 0.3);
    --status-info-text: #60a5fa;
    --status-info-dot: #3b82f6;

    /* Deep layered dark shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 10px 24px -4px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 32px -6px rgba(0, 0, 0, 0.7);
}
