/* ============================================================
   Nova Theme - Design Tokens (CSS Custom Properties)
   All visual properties are defined here for easy theming.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Brand Colors ── */
  --nova-primary: #2563EB;
  --nova-primary-hover: #1D4ED8;
  --nova-primary-active: #1E40AF;
  --nova-primary-light: #DBEAFE;
  --nova-primary-50: #EFF6FF;

  --nova-secondary: #06B6D4;
  --nova-secondary-hover: #0891B2;
  --nova-secondary-light: #CFFAFE;

  --nova-accent: #8B5CF6;
  --nova-accent-hover: #7C3AED;

  --nova-gradient: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --nova-gradient-hover: linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%);
  --nova-gradient-subtle: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 100%);

  /* ── Neutral Colors ── */
  --nova-dark: #0F172A;
  --nova-dark-800: #1E293B;
  --nova-dark-700: #334155;
  --nova-dark-600: #475569;
  --nova-gray-500: #64748B;
  --nova-gray-400: #94A3B8;
  --nova-gray-300: #CBD5E1;
  --nova-gray-200: #E2E8F0;
  --nova-gray-100: #F1F5F9;
  --nova-gray-50: #F8FAFC;
  --nova-white: #FFFFFF;

  /* ── Semantic Colors ── */
  --nova-success: #10B981;
  --nova-success-light: #D1FAE5;
  --nova-warning: #F59E0B;
  --nova-warning-light: #FEF3C7;
  --nova-danger: #EF4444;
  --nova-danger-light: #FEE2E2;
  --nova-info: #3B82F6;
  --nova-info-light: #DBEAFE;

  /* ── Typography ── */
  --nova-font-heading: 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nova-font-body: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nova-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --nova-text-xs: 0.75rem;     /* 12px */
  --nova-text-sm: 0.875rem;    /* 14px */
  --nova-text-base: 1rem;      /* 16px */
  --nova-text-lg: 1.125rem;    /* 18px */
  --nova-text-xl: 1.25rem;     /* 20px */
  --nova-text-2xl: 1.5rem;     /* 24px */
  --nova-text-3xl: 1.875rem;   /* 30px */
  --nova-text-4xl: 2.25rem;    /* 36px */
  --nova-text-5xl: 3rem;       /* 48px */
  --nova-text-6xl: 3.75rem;    /* 60px */

  --nova-leading-tight: 1.25;
  --nova-leading-normal: 1.5;
  --nova-leading-relaxed: 1.75;

  --nova-tracking-tight: -0.025em;
  --nova-tracking-normal: 0;
  --nova-tracking-wide: 0.025em;

  /* ── Spacing ── */
  --nova-space-1: 0.25rem;   /* 4px */
  --nova-space-2: 0.5rem;    /* 8px */
  --nova-space-3: 0.75rem;   /* 12px */
  --nova-space-4: 1rem;      /* 16px */
  --nova-space-5: 1.25rem;   /* 20px */
  --nova-space-6: 1.5rem;    /* 24px */
  --nova-space-8: 2rem;      /* 32px */
  --nova-space-10: 2.5rem;   /* 40px */
  --nova-space-12: 3rem;     /* 48px */
  --nova-space-16: 4rem;     /* 64px */
  --nova-space-20: 5rem;     /* 80px */
  --nova-space-24: 6rem;     /* 96px */

  /* ── Layout ── */
  --nova-max-width: 1280px;
  --nova-max-width-lg: 1440px;
  --nova-max-width-sm: 960px;
  --nova-container-padding: 1.5rem;
  --nova-section-gap: 6rem;

  /* ── Borders & Radius ── */
  --nova-radius-sm: 6px;
  --nova-radius: 8px;
  --nova-radius-md: 10px;
  --nova-radius-lg: 12px;
  --nova-radius-xl: 16px;
  --nova-radius-2xl: 20px;
  --nova-radius-full: 9999px;

  --nova-border-color: #E2E8F0;
  --nova-border-light: #F1F5F9;

  /* ── Shadows ── */
  --nova-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --nova-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --nova-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --nova-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --nova-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --nova-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --nova-shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
  --nova-shadow-glow-lg: 0 0 40px rgba(37, 99, 235, 0.2);

  /* ── Glass Effect ── */
  --nova-glass-bg: rgba(255, 255, 255, 0.8);
  --nova-glass-border: rgba(255, 255, 255, 0.2);
  --nova-glass-blur: blur(12px);
  --nova-glass-bg-dark: rgba(15, 23, 42, 0.85);

  /* ── Transitions ── */
  --nova-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --nova-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --nova-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Z-Index ── */
  --nova-z-dropdown: 100;
  --nova-z-sticky: 200;
  --nova-z-fixed: 300;
  --nova-z-modal-backdrop: 400;
  --nova-z-modal: 500;
  --nova-z-popover: 600;
  --nova-z-tooltip: 700;

  /* ── Page Colors (semantic) ── */
  --nova-page-bg: var(--nova-gray-50);
  --nova-card-bg: var(--nova-white);
  --nova-nav-bg: var(--nova-glass-bg);
  --nova-footer-bg: var(--nova-dark);
  --nova-text-primary: var(--nova-dark);
  --nova-text-secondary: var(--nova-dark-600);
  --nova-text-muted: var(--nova-gray-500);
  --nova-text-inverse: var(--nova-white);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --nova-transition-fast: 0ms;
    --nova-transition: 0ms;
    --nova-transition-slow: 0ms;
  }
}
