/**
 * n8n Course Landing Page - Design System Variables
 * Based on n8n official brand colors with automation theme
 */

:root {
  /* Primary Colors (n8n Brand) */
  --n8n-pink: #EA4B71;
  --n8n-pink-bright: #e74266;
  --n8n-secondary: #6366f1;
  --n8n-orange: #FF8C42;

  /* Dark Theme Base */
  --background-primary: #0a0a0a;
  --background-secondary: #1a1a1a;
  --background-card: #2a2a2a;
  --surface-elevated: #333333;

  /* Accent Colors */
  --accent-dark: #040506;
  --accent-gradient-start: #EA4B71;
  --accent-gradient-end: #6366f1;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b4b4b4;
  --text-muted: #808080;

  /* Automation Theme Colors */
  --flow-line: #EA4B71;
  --node-active: #6366f1;
  --node-inactive: #4a4a4a;
  --glow-primary: rgba(234, 75, 113, 0.3);
  --glow-secondary: rgba(99, 102, 241, 0.3);
  --glow-orange: rgba(255, 140, 66, 0.3);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #EA4B71 0%, #6366f1 100%);
  --gradient-cta: linear-gradient(90deg, #EA4B71 0%, #f55a82 100%);
  --gradient-border: linear-gradient(90deg, #EA4B71, #6366f1);
  --gradient-orange: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);

  /* Background Gradients (Subtle) */
  --gradient-background: radial-gradient(
    circle at 20% 50%,
    rgba(234, 75, 113, 0.05) 0%,
    transparent 50%
  );

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

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

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

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

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px var(--glow-primary);
  --shadow-glow-secondary: 0 0 20px var(--glow-secondary);

  /* Animation Durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 750ms;

  /* Animation Easings */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Container Max Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Flow Animation Variables */
  --flow-speed: 2s;
  --pulse-speed: 1.5s;
  --ripple-speed: 0.6s;
  --reveal-speed: 0.5s;

  /* Grid System */
  --grid-cols: 12;
  --grid-gap: var(--space-6);

  /* Form Styling */
  --input-height: 48px;
  --input-padding: var(--space-4);
  --input-border-width: 1px;
  --input-focus-border-width: 2px;

  /* Button Styling */
  --button-height: 48px;
  --button-padding-x: var(--space-8);
  --button-padding-y: var(--space-4);
  --button-font-size: var(--text-base);
  --button-font-weight: var(--font-semibold);
}

/* Dark mode overrides (if needed for system preference) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Already using dark theme as default */
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --background-card: #000000;
    --n8n-pink: #ff6b9d;
    --n8n-secondary: #818cf8;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
    --flow-speed: 0ms;
    --pulse-speed: 0ms;
    --ripple-speed: 0ms;
    --reveal-speed: 0ms;
  }
}