/* ==========================================================================
   PRNT Platform — Modern & Comprehensive Design Tokens (variables.css)
   Flawless Contrast, Dynamic Spacing, Typography & Smooth Animation Curves
   ========================================================================== */

/* ── Dark Theme (Default) ── */
:root,
html[data-theme="dark"] {
  /* Background Colors */
  --bg-body: #0a0b10;
  --bg-surface: #12141d;
  --bg-surface-elevated: #181b27;
  --bg-card: rgba(18, 20, 29, 0.85);
  --bg-card-hover: rgba(24, 27, 39, 0.95);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-input-focus: rgba(255, 255, 255, 0.08);
  --bg-code: #06070a;
  --bg-backdrop: rgba(10, 11, 16, 0.8);
  --bg-primary: #0a0b10;
  --bg-secondary: #12141d;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0b10;

  /* Border Colors */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(99, 102, 241, 0.35);

  /* Accent & Brand Colors */
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #00d2ff;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #00d2ff 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #00b4d8 100%);
  --accent-glow: 0 0 25px rgba(99, 102, 241, 0.35);

  /* Status Colors */
  --success: #10b981;
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-success-border: rgba(16, 185, 129, 0.25);

  --warning: #f59e0b;
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-warning-border: rgba(245, 158, 11, 0.25);

  --danger: #ef4444;
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --color-danger-border: rgba(239, 68, 68, 0.25);

  --info: #38bdf8;
  --color-info: #38bdf8;
  --color-info-bg: rgba(56, 189, 248, 0.12);
  --color-info-border: rgba(56, 189, 248, 0.25);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
  --shadow-glow-primary: 0 0 25px rgba(99, 102, 241, 0.45);

  /* Glassmorphism */
  --glass-blur: blur(12px);
  --glass-bg: rgba(18, 20, 29, 0.75);
}

/* ── Light Theme ── */
html[data-theme="light"] {
  /* Background Colors */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-input: #f8fafc;
  --bg-input-focus: #ffffff;
  --bg-code: #0f172a;
  --bg-backdrop: rgba(15, 23, 42, 0.5);
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Border Colors */
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-subtle: #f1f5f9;
  --border-accent: rgba(79, 70, 229, 0.4);

  /* Accent & Brand Colors */
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-secondary: #0891b2;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
  --accent-glow: 0 0 20px rgba(79, 70, 229, 0.2);

  /* Status Colors */
  --success: #059669;
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-success-border: #a7f3d0;

  --warning: #d97706;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;

  --danger: #dc2626;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fecaca;

  --info: #0284c7;
  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;
  --color-info-border: #bae6fd;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 15px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.07);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.12);
  --shadow-glow-primary: 0 0 25px rgba(79, 70, 229, 0.25);

  /* Glassmorphism */
  --glass-blur: blur(12px);
  --glass-bg: rgba(255, 255, 255, 0.85);
}

/* ── Global Typography, Spacing & Transition Constants ── */
:root {
  /* Font Families (Inter & JetBrains Mono) */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Typography Scale */
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-body: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2rem;      /* 32px */
  --fs-3xl: 2.5rem;    /* 40px */
  --fs-4xl: 3.25rem;   /* 52px */
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 4.25rem);

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;
  --lh-body: 1.6;
  --lh-heading: 1.2;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Transitions & Timing Curves */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Dimensions */
  --navbar-height: 72px;
  --container-max: 1240px;
  --ls-wide: 0.05em;
}
