/**
 * Studio Cosmic North - Design System CSS Variables
 * Based on UI_UX_DESIGN_SYSTEM.md
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  /* ============================================
     COLORS
     ============================================ */
  
  /* Primary Colors (Purple Family) */
  --purple-50:  #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #8b5cf6;  /* PRIMARY BRAND COLOR */
  --purple-700: #7c3aed;
  --purple-800: #6d28d9;
  --purple-900: #5b21b6;
  
  /* Indigo accent */
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  
  /* Semantic Colors */
  /* Success - Green */
  --success-light: #d1fae5;
  --success:       #10b981;
  --success-dark:  #047857;
  
  /* Warning - Amber */
  --warning-light: #fef3c7;
  --warning:       #f59e0b;
  --warning-dark:  #d97706;
  
  /* Danger - Red */
  --danger-light: #fee2e2;
  --danger:       #ef4444;
  --danger-dark:  #dc2626;
  
  /* Info - Blue */
  --info-light: #dbeafe;
  --info:       #3b82f6;
  --info-dark:  #1d4ed8;
  
  /* Neutral Colors (Dark Theme) */
  /* Backgrounds */
  --bg-primary:   #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary:  #1a1a1a;
  
  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong:  rgba(255, 255, 255, 0.2);
  --border-purple:  rgba(139, 92, 246, 0.3);
  
  /* Text */
  --text-primary:   #e5e7eb;
  --text-secondary: #9ca3af;
  --text-tertiary:  #6b7280;
  --text-disabled:  #4b5563;
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font Families */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Type Scale */
  --text-display: 4rem;      /* 64px */
  --text-display-mobile: 2.5rem; /* 40px */
  --text-h1: 3rem;           /* 48px */
  --text-h2: 2.25rem;        /* 36px */
  --text-h3: 1.875rem;       /* 30px */
  --text-h4: 1.5rem;         /* 24px */
  --text-h5: 1.25rem;        /* 20px */
  --text-h6: 1.125rem;       /* 18px */
  --text-lg: 1.125rem;       /* 18px */
  --text-base: 1rem;         /* 16px */
  --text-sm: 0.875rem;       /* 14px */
  --text-xs: 0.75rem;        /* 12px */
  
  /* 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
     ============================================ */
  
  --space-0:  0;
  --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 */
  
  /* ============================================
     BORDER RADIUS
     ============================================ */
  
  --radius-none: 0;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;
  
  /* ============================================
     SHADOWS & ELEVATION
     ============================================ */
  
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-xl:  0 20px 25px rgba(0, 0, 0, 0.2), 0 10px 10px rgba(0, 0, 0, 0.08);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.3);
  
  /* Cosmic Glows (Purple) */
  --glow-purple-sm: 0 0 10px rgba(139, 92, 246, 0.2);
  --glow-purple-md: 0 0 20px rgba(139, 92, 246, 0.3);
  --glow-purple-lg: 0 0 30px rgba(139, 92, 246, 0.5);
  
  /* ============================================
     ANIMATION & TRANSITIONS
     ============================================ */
  
  /* Timing Functions */
  --ease-linear:     linear;
  --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);
  
  /* Duration Scale */
  --duration-fast:   150ms;
  --duration-base:   200ms;
  --duration-medium: 300ms;
  --duration-slow:   500ms;
  
  /* Standard Transitions */
  --transition-all:       all var(--duration-base) var(--ease-out);
  --transition-colors:    background-color var(--duration-base) var(--ease-out),
                          color var(--duration-base) var(--ease-out),
                          border-color var(--duration-base) var(--ease-out);
  --transition-transform: transform var(--duration-base) var(--ease-out);
  --transition-opacity:   opacity var(--duration-base) var(--ease-out);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--indigo-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.surface-glass {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
}

.surface-glass-hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.04) 100%);
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn var(--duration-medium) var(--ease-out);
}

.animate-slide-up {
  animation: slideUp var(--duration-medium) var(--ease-out);
}

.animate-slide-down {
  animation: slideDown var(--duration-medium) var(--ease-out);
}

.animate-scale-in {
  animation: scaleIn var(--duration-medium) var(--ease-out);
}

.animate-pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

.animate-spin {
  animation: spin 1s var(--ease-linear) infinite;
}

.animate-float {
  animation: float 3s var(--ease-in-out) infinite;
}
