/* Celestial Insights - Shared Styles */

/* CSS Variables */
:root {
  /* Primary Colors (Dark Space Theme) */
  --color-bg-primary: #0a0a1a;
  --color-bg-secondary: #12122a;
  --color-bg-tertiary: #1a1a3e;
  --color-bg-glass: rgba(26, 26, 62, 0.7);

  /* Accent Colors (Celestial) */
  --color-accent-gold: #d4af37;
  --color-accent-gold-light: #f4d03f;
  --color-accent-silver: #c0c0c0;
  --color-accent-copper: #b87333;
  --color-accent-purple: #8b5cf6;
  --color-accent-blue: #60a5fa;
  --color-accent-rose: #f472b6;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b8b8d1;
  --color-text-muted: #6b6b8a;
  --color-text-gold: #d4af37;

  /* Gradients */
  --gradient-hero: linear-gradient(180deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
  --gradient-card: linear-gradient(135deg, rgba(26, 26, 62, 0.8) 0%, rgba(18, 18, 42, 0.9) 100%);
  --gradient-gold-glow: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  --gradient-button: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
  --gradient-button-hover: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);

  /* Typography */
  --font-heading: 'Cinzel', 'Playfair Display', serif;
  --font-body: 'Inter', 'Source Sans Pro', sans-serif;
  --font-accent: 'Cinzel Decorative', cursive;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 20px rgba(212, 175, 55, 0.4);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);

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

  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-celestial: 2000ms;

  /* Z-Index */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-tooltip: 500;
}

/* Keyframe Animations */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.7); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

/* Button Styles */
.btn-primary {
  background: var(--gradient-button);
  color: var(--color-bg-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-default);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-accent-gold);
  color: var(--color-accent-gold);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-default);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-default);
  cursor: pointer;
  border: none;
}

.btn-ghost:hover {
  color: var(--color-accent-gold);
}

/* Card Styles */
.card-glass {
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.card-feature {
  background: var(--gradient-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-default);
}

.card-feature:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Form Styles */
.input-field {
  background: rgba(10, 10, 26, 0.8);
  border: 1px solid #3a3a5e;
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  color: var(--color-text-primary);
  width: 100%;
  transition: all var(--duration-fast) var(--ease-default);
  font-family: var(--font-body);
}

.input-field:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-field::placeholder {
  color: var(--color-text-muted);
}

/* Animation Utilities */
.animate-fade-in-up {
  animation: fade-in-up 0.8s var(--ease-out) forwards;
}

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

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

.animate-twinkle {
  animation: twinkle 2s var(--ease-default) infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Scroll Animation Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Glass Effect */
.glass {
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gold Text */
.text-gold {
  color: var(--color-accent-gold);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
