/* VibeCheck Design System - Unified Variables */
/* Extracted from index.html - DO NOT MODIFY without updating index.html */

:root {
  /* === COLOR PALETTE === */
  
  /* Primary Purple Gradient (from index.html header logo) */
  --color-primary-start: #C77DFF;
  --color-primary-end: #DDA0DD;
  --color-primary-blue: #5B9FD5;
  --color-primary-gradient: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
  --color-logo-gradient: linear-gradient(135deg, #C77DFF 0%, #5B9FD5 100%);
  
  /* Background Colors (from index.html) */
  --color-bg-primary: rgba(10, 10, 15, 1);
  --color-bg-primary-95: rgba(10, 10, 15, 0.95);
  --color-bg-primary-98: rgba(10, 10, 15, 0.98);
  --color-bg-secondary: rgba(20, 20, 30, 0.9);
  --color-bg-tertiary: rgba(30, 20, 40, 0.6);
  --color-bg-hover: rgba(40, 25, 50, 0.8);
  
  /* Border Colors (from index.html nav) */
  --color-border-primary: rgba(199, 125, 255, 0.3);
  --color-border-secondary: rgba(199, 125, 255, 0.2);
  --color-border-tertiary: rgba(199, 125, 255, 0.15);
  --color-border-light: rgba(199, 125, 255, 0.1);
  --color-border-hover: rgba(199, 125, 255, 0.5);
  
  /* Text Colors (from index.html) */
  --color-text-primary: rgba(255, 255, 255, 1);
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-text-tertiary: rgba(255, 255, 255, 0.7);
  --color-text-disabled: rgba(255, 255, 255, 0.5);
  
  /* === GLASSMORPHISM === */
  
  /* Blur Levels */
  --blur-light: blur(10px);
  --blur-medium: blur(20px);
  --blur-heavy: blur(40px);
  
  /* Glass Backgrounds */
  --glass-bg-primary: rgba(20, 20, 30, 0.9);
  --glass-bg-secondary: rgba(20, 20, 30, 0.6);
  --glass-bg-overlay: rgba(10, 10, 15, 0.95);
  
  /* === BORDERS & RADIUS === */
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* === SHADOWS === */
  
  /* Box Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.4);
  
  /* Glow Shadows */
  --shadow-glow-sm: 0 4px 12px rgba(199, 125, 255, 0.2);
  --shadow-glow-md: 0 8px 24px rgba(199, 125, 255, 0.3);
  --shadow-glow-lg: 0 12px 32px rgba(199, 125, 255, 0.4);
  --shadow-glow-xl: 0 8px 24px rgba(199, 125, 255, 0.6);
  
  /* Inset Shadows for Depth */
  --shadow-inset-primary: 0 0 0 1px rgba(199, 125, 255, 0.1) inset;
  --shadow-inset-secondary: 0 0 0 1px rgba(199, 125, 255, 0.2) inset;
  --shadow-inset-white: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  
  /* Combined Shadows */
  --shadow-glass-sm: var(--shadow-sm), var(--shadow-inset-primary);
  --shadow-glass-md: var(--shadow-md), var(--shadow-inset-primary);
  --shadow-glass-lg: var(--shadow-lg), var(--shadow-inset-primary);
  --shadow-glass-xl: var(--shadow-xl), var(--shadow-inset-primary);
  
  /* === ANIMATIONS === */
  
  /* Timing Functions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Duration */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.4s;
  --duration-slowest: 0.6s;
  
  /* Transitions */
  --transition-fast: all var(--duration-fast) var(--ease-smooth);
  --transition-normal: all var(--duration-normal) var(--ease-smooth);
  --transition-slow: all var(--duration-slow) var(--ease-spring);
  --transition-bounce: all var(--duration-slow) var(--ease-bounce);
  
  /* === SPACING === */
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* === TYPOGRAPHY === (from index.html) */
  
  --font-family: 'Jost', sans-serif;
  
  /* Font Sizes (from index.html header) */
  --text-xs: 0.65rem;
  --text-sm: 0.75rem;       /* header subtitle */
  --text-base: 0.875rem;    /* nav buttons */
  --text-md: 1rem;
  --text-lg: 1.1rem;        /* mobile nav */
  --text-xl: 1.25rem;       /* logo text */
  --text-2xl: 1.5rem;       /* mobile nav icons */
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 3.5rem;
  
  /* Font Weights (from index.html) */
  --weight-normal: 400;
  --weight-medium: 500;     /* nav secondary */
  --weight-semibold: 600;   /* nav active, mobile nav */
  --weight-bold: 700;       /* logo */
  --weight-extrabold: 800;
  
  /* === Z-INDEX === (from index.html) */
  
  --z-base: 1;
  --z-above: 10;
  --z-header: 2000;         /* header z-index */
  --z-overlay: 3000;        /* mobile menu z-index */
  --z-modal: 4000;
  --z-toast: 5000;
}

/* === REUSABLE COMPONENT STYLES === */
/* These match the exact styles from index.html */

/* Header (from index.html line 57) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: linear-gradient(to bottom, var(--color-bg-primary-95) 0%, rgba(10, 10, 15, 0) 100%);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
}

/* Logo (from index.html line 59-67) */
.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-crystal {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-logo-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: white;
  box-shadow: var(--shadow-glow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
}

.logo-link:hover .logo-crystal {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(199, 125, 255, 0.5), 0 0 40px rgba(199, 125, 255, 0.3);
}

.logo-link:active .logo-crystal {
  transform: scale(0.98);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: white;
  margin: 0;
  line-height: 1;
}

.logo-subtitle {
  font-size: var(--text-sm);
  color: rgba(199, 125, 255, 0.8);
  margin-top: 0.25rem;
}

/* Navigation (from index.html line 73-76) */
.nav {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

/* Nav Button Active (from index.html line 77) */
.nav-btn-active {
  padding: 0.5rem 1rem;
  background: linear-gradient(to bottom, rgba(199, 125, 255, 0.3) 0%, rgba(199, 125, 255, 0.1) 100%);
  border: 1px solid var(--color-border-tertiary);
  border-radius: var(--radius-sm);
  color: var(--color-primary-start);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  transition: var(--transition-fast);
  font-family: var(--font-family);
  text-decoration: none;
  box-shadow: var(--shadow-glow-sm);
}

/* Nav Button Inactive (from index.html line 78) */
.nav-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  transition: var(--transition-fast);
  font-family: var(--font-family);
  text-decoration: none;
}

.nav-btn:hover {
  background: linear-gradient(to bottom, rgba(199, 125, 255, 0.2) 0%, rgba(199, 125, 255, 0.05) 100%);
  border-color: var(--color-border-secondary);
  color: var(--color-primary-start);
  box-shadow: var(--shadow-glow-sm);
}

/* Mobile Menu Button (from index.html line 82) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-sm);
}

/* Mobile Menu Overlay (from index.html line 86) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-primary-98);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
  z-index: var(--z-overlay);
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu Close Button (from index.html line 87) */
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* Mobile Nav (from index.html line 88) */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

/* Mobile Nav Item (from index.html line 89-93) */
.mobile-nav-item {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.2), rgba(91, 159, 213, 0.2));
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-md);
  color: white;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Media Query for Mobile (from index.html) */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* === BUTTONS === */

/* Primary Button (matching index.html button styles) */
.btn-primary {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary-gradient);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-glow-md), var(--shadow-inset-white);
  transform: translateZ(0);
  will-change: transform;
  font-family: var(--font-family);
  font-size: var(--text-md);
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.01) translateZ(0);
  box-shadow: var(--shadow-glow-lg), var(--shadow-inset-secondary);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98) translateZ(0);
}

/* Secondary Button */
.btn-secondary {
  padding: var(--space-md) var(--space-xl);
  background: var(--glass-bg-secondary);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
  will-change: transform;
  font-family: var(--font-family);
  font-size: var(--text-md);
  text-align: center;
}

.btn-secondary:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px) scale(1.02) translateZ(0);
  box-shadow: var(--shadow-glow-md);
}

/* === CARDS === */

/* Glass Card */
.glass-card {
  background: var(--glass-bg-primary);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass-lg);
  transition: var(--transition-slow);
  transform: translateZ(0);
  will-change: transform;
}

.glass-card-secondary {
  background: var(--glass-bg-secondary);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass-sm);
}

/* === UTILITY CLASSES === */

/* Centering */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-text {
  text-align: center;
}

/* Positioning */
.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.fixed-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* === COMMON BUTTON STYLES === */

/* Map Button (for home/close buttons) */
.map-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
  border: 1px solid var(--color-border-primary);
  background: var(--glass-bg-secondary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-md), var(--shadow-inset-primary);
  transform: translateZ(0);
  will-change: transform;
  font-size: var(--text-xl);
}

.map-btn:hover {
  transform: translateY(-2px) scale(1.03) translateZ(0);
  box-shadow: var(--shadow-glow-lg), var(--shadow-inset-secondary);
  border-color: var(--color-border-hover);
}

.map-btn:active {
  transform: translateY(0) scale(0.97) translateZ(0);
}

/* Loading Spinner */
.loading-spinner {
  width: 80px;
  height: 80px;
  border: 8px solid rgba(199, 125, 255, 0.1);
  border-top-color: var(--color-primary-start);
  border-radius: var(--radius-full);
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Input Fields */
.input-glass {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-tertiary);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border: 2px solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
  will-change: transform;
}

.input-glass::placeholder {
  color: var(--color-text-disabled);
}

.input-glass:focus {
  outline: none;
  border-color: var(--color-primary-start);
  background: var(--color-bg-hover);
  box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.3), var(--shadow-glow-sm);
  transform: translateY(-2px) translateZ(0);
}

/* Dividers */
.divider-purple {
  border-top: 1px solid var(--color-border-secondary);
}

/* Badge/Pill */
.badge-purple {
  padding: var(--space-sm) var(--space-md);
  background: rgba(199, 125, 255, 0.15);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-md);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
}

/* Text Gradient */
.text-gradient-purple {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* GPU Acceleration */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Overlay */
.overlay-glass {
  background: var(--glass-bg-overlay);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
}
