/* Themis NAVA - AI-Powered Vedic Astrology Platform */
/* Design System & Brand Colors */

:root {
  /* Primary Brand Colors */
  --cosmic-purple: #6B46C1;
  --cosmic-purple-dark: #553C9A;
  --cosmic-purple-light: #8B5CF6;
  
  /* Accent Colors */
  --gold-accent: #F59E0B;
  --gold-accent-dark: #D97706;
  --gold-accent-light: #FCD34D;
  
  /* UI Colors */
  --bg-primary: #0F0C1A;
  --bg-secondary: #1A1625;
  --bg-card: #2D2438;
  --bg-glass: rgba(45, 36, 56, 0.8);
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --text-accent: #F59E0B;
  
  /* Border & Divider */
  --border-primary: rgba(139, 92, 246, 0.2);
  --border-secondary: rgba(255, 255, 255, 0.1);
  
  /* Gradient Effects */
  --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
  --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
  --gradient-cosmic: linear-gradient(135deg, #0F0C1A 0%, #1A1625 50%, #2D2438 100%);
  
  /* Shadows & Glows */
  --shadow-cosmic: 0 20px 40px rgba(107, 70, 193, 0.15);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --glow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Animation Durations */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  
  /* Status & Semantic Colors for UI Components */
  --success-color: #22C55E;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
  --info-color: #3B82F6;
  --primary-color: #6B46C1;
  --purple-color: #A855F7;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-cosmic);
  min-height: 100vh;
}

body {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--font-size-base);
  min-height: 100vh;
}

/* Typography */
.title-hero {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.title-section {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.title-card {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.text-body {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-small {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.text-accent {
  color: var(--text-accent);
  font-weight: 500;
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Card Components */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: var(--space-6);
  transition: all var(--duration-normal) ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cosmic);
  border-color: var(--cosmic-purple-light);
}

.card-premium {
  border: 2px solid var(--gold-accent);
  box-shadow: var(--glow-gold);
}

.card-cosmic {
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--cosmic-purple);
  box-shadow: var(--glow-purple);
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  font-size: var(--font-size-base);
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--bg-primary);
  box-shadow: var(--glow-gold);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-primary);
}

.btn-outline:hover {
  border-color: var(--cosmic-purple-light);
  background: rgba(139, 92, 246, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Navigation */
.navbar {
  background: rgba(15, 12, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-secondary);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  font-size: var(--font-size-2xl);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-normal) ease;
}

.nav-link:hover {
  color: var(--text-accent);
}

.nav-link.active {
  color: var(--text-accent);
}

/* Status Indicators */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.status-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-info {
  background: rgba(139, 92, 246, 0.2);
  color: var(--cosmic-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Progress & Loading */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--duration-normal) ease;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-secondary);
  border-top: 2px solid var(--cosmic-purple-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .title-hero {
    font-size: var(--font-size-4xl);
  }
  
  .nav-menu {
    display: none;
  }
  
  .flex {
    flex-wrap: wrap;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--cosmic-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cosmic-purple-light);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.space-y-1 > * + * { margin-top: var(--space-1); }
.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }
.space-y-4 > * + * { margin-top: var(--space-4); }
.space-y-6 > * + * { margin-top: var(--space-6); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn var(--duration-slow) ease forwards;
}

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

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

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