/* ============================================================
   AURA CAPITAL & INVESTMENT PLATFORM - CORE STYLES
   ============================================================ */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Dark Theme Default */
  --bg-primary: #080d1a;
  --bg-secondary: #0d1527;
  --bg-card: rgba(16, 26, 48, 0.7);
  --bg-card-hover: rgba(22, 36, 66, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.25);
  --color-blue: #3b82f6;
  --color-purple: #8b5cf6;
  --color-rose: #f43f5e;
  --color-amber: #f59e0b;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --color-emerald-glow: rgba(16, 185, 129, 0.15);
  --color-cyan-glow: rgba(6, 182, 212, 0.15);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Helpers */
.font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .glass-panel:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.glass-panel-glow {
  position: relative;
}

.glass-panel-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.1), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Neon Glow Accents */
.glow-emerald {
  box-shadow: 0 0 25px -5px var(--color-emerald-glow);
}

.glow-cyan {
  box-shadow: 0 0 25px -5px var(--color-cyan-glow);
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Gradient Background Orbs */
.bg-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -40px) scale(1.1);
  }
}

/* Live Market Ticker Animation */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: inline-flex;
  animation: marquee 35s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Interactive Slider Customization */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  height: 8px;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #34d399;
}

/* Status Badge Pulse */
.pulse-live {
  position: relative;
}

.pulse-live::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  right: -2px;
  top: 0;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Modal Transitions */
.modal-backdrop {
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
}

/* Button Shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -60%;
  }
  30%, 100% {
    left: 140%;
  }
}

/* Rotating Wheel & Gold Glow Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.glow-gold {
  box-shadow: 0 0 35px -5px rgba(245, 158, 11, 0.4);
}

@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.55);
    border-color: rgba(251, 191, 36, 0.85);
  }
}

.glow-gold-pulse {
  animation: goldPulse 3.5s ease-in-out infinite;
}
