/* FCX Cosmos - Space UI & Quantum Styles */

:root {
  --primary-glow: #6366f1;
  --secondary-glow: #a855f7;
  --accent-cyan: #06b6d4;
  --cosmic-bg: #050711;
}

/* Ensure hidden elements are always hidden regardless of CSS framework loading state */
.hidden {
  display: none !important;
}

html {
  max-width: 100%;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden !important;
  color: #f3f4f6;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--cosmic-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 45%),
    radial-gradient(circle at 100% 40%, rgba(168, 85, 247, 0.1), transparent 35%),
    radial-gradient(circle at 0% 80%, rgba(6, 182, 212, 0.08), transparent 40%);
  background-attachment: fixed;
  -webkit-overflow-scrolling: touch;
}

/* Prevent mobile auto-zoom on input focus (iOS Safari & Android Chrome) */
@media screen and (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* Glassmorphism Cosmic Cards */
.cosmic-glass {
  background: rgba(13, 18, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cosmic-glass-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cosmic-glass-hover:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25), 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

/* Cosmic Input Glow */
.cosmic-input-wrapper {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.3));
  padding: 1px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
  transition: box-shadow 0.3s ease;
}

.cosmic-input-wrapper:focus-within {
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.45), 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Orbiting Animation */
@keyframes orbit {
  0% { transform: rotate(0deg) translateX(14px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(14px) rotate(-360deg); }
}

.animate-orbit {
  animation: orbit 6s linear infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Shimmer animation for loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-effect {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

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

::-webkit-scrollbar-track {
  background: #050711;
}

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

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