/**
 * WalterSignal Design System
 * Dual-theme: Black/Purple (default) + OD Green/Black (tactical)
 */

:root {
  /* === BRAND COLORS - PURPLE THEME (Default) === */
  --brand-primary: #8B5CF6;        /* Purple */
  --brand-secondary: #3B82F6;      /* Blue */
  --brand-accent: #00D9FF;         /* Cyan */
  --brand-dark: #0A1929;           /* Navy */
  --brand-darker: #0F172A;         /* Darker Navy */
  
  /* === BRAND COLORS - OD GREEN THEME (Tactical) === */
  --tactical-primary: #4A5D23;     /* OD Green */
  --tactical-secondary: #6B8E23;   /* Olive Drab */
  --tactical-accent: #9ACD32;      /* Yellow Green */
  --tactical-dark: #1C1C1C;        /* Almost Black */
  --tactical-darker: #0D0D0D;      /* True Black */
  
  /* === GRAYSCALE === */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* === TYPOGRAPHY === */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'system-ui', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'system-ui', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 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 */
  --text-7xl: 4.5rem;      /* 72px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* === SPACING === */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* === BORDERS === */
  --border-radius-sm: 0.375rem;    /* 6px */
  --border-radius-md: 0.5rem;      /* 8px */
  --border-radius-lg: 0.75rem;     /* 12px */
  --border-radius-xl: 1rem;        /* 16px */
  --border-radius-2xl: 1.5rem;     /* 24px */
  --border-radius-full: 9999px;
  
  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Glow Effects */
  --glow-purple: 0 8px 32px rgba(139, 92, 246, 0.3);
  --glow-blue: 0 8px 32px rgba(59, 130, 246, 0.3);
  --glow-cyan: 0 8px 32px rgba(0, 217, 255, 0.3);
  --glow-green: 0 8px 32px rgba(107, 142, 35, 0.3);
  
  /* === TRANSITIONS === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === ACTIVE THEME === */
  --theme-primary: var(--brand-primary);
  --theme-secondary: var(--brand-secondary);
  --theme-accent: var(--brand-accent);
  --theme-dark: var(--brand-dark);
  --theme-darker: var(--brand-darker);
  --theme-glow: var(--glow-purple);
}

/* === TACTICAL THEME === */
[data-theme="tactical"] {
  --theme-primary: var(--tactical-primary);
  --theme-secondary: var(--tactical-secondary);
  --theme-accent: var(--tactical-accent);
  --theme-dark: var(--tactical-dark);
  --theme-darker: var(--tactical-darker);
  --theme-glow: var(--glow-green);
}

/* === GRADIENT DEFINITIONS === */
.gradient-primary {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background-clip: padding-box;
  border: 1px solid transparent;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* === GLASS MORPHISM === */
.glass {
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === BUTTON STYLES === */
.btn-primary {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  color: white;
  font-weight: var(--font-semibold);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

/* === CARD STYLES === */
.card {
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid transparent;
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--theme-glow);
}

/* === ANIMATED GRADIENT ORBS === */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--theme-primary) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: gradient-shift 15s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--theme-secondary) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation: gradient-shift 12s ease-in-out infinite reverse;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--theme-accent) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { transform: translate(0%, 0%) scale(1); }
  33% { transform: translate(30%, -30%) scale(1.1); }
  66% { transform: translate(-20%, 20%) scale(0.9); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}
