/* CosmicSign Oracle - Global Styles */

:root {
  /* Cosmic Color Palette */
  --deep-space: #0a0e27;
  --cosmic-purple: #6b2d8f;
  --nebula-blue: #1e3a8a;
  --star-gold: #fbbf24;
  --moon-silver: #e5e7eb;
  --galaxy-pink: #ec4899;
  --mystic-indigo: #4c1d95;
  --celestial-cyan: #06b6d4;
  
  /* Gradients */
  --cosmic-gradient: linear-gradient(135deg, var(--deep-space) 0%, var(--cosmic-purple) 50%, var(--nebula-blue) 100%);
  --aurora-gradient: linear-gradient(90deg, var(--cosmic-purple), var(--galaxy-pink), var(--celestial-cyan));
  --starlight-gradient: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0) 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--deep-space);
  color: var(--moon-silver);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Cosmic Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top, rgba(107, 45, 143, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(30, 58, 138, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Animated Stars Background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: var(--deep-space);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--galaxy-pink);
}

/* Navigation Styles */
.navbar {
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 45, 143, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--aurora-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Card Styles */
.cosmic-card {
  background: rgba(10, 14, 39, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 45, 143, 0.4);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cosmic-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--starlight-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cosmic-card:hover {
  transform: translateY(-10px);
  border-color: var(--star-gold);
  box-shadow: 0 20px 40px rgba(107, 45, 143, 0.4);
}

.cosmic-card:hover::before {
  opacity: 1;
}

/* Button Styles */
.btn-cosmic {
  background: var(--aurora-gradient);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cosmic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.6s ease, height 0.6s ease;
  transform: translate(-50%, -50%);
}

.btn-cosmic:hover::before {
  width: 300px;
  height: 300px;
}

.btn-cosmic:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.btn-outline-cosmic {
  background: transparent;
  color: var(--star-gold);
  border: 2px solid var(--star-gold);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-outline-cosmic:hover {
  background: var(--star-gold);
  color: var(--deep-space);
  transform: scale(1.05);
}

/* Zodiac Icon Styles */
.zodiac-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aurora-gradient);
  border-radius: 50%;
  font-size: 2rem;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.zodiac-icon:hover {
  transform: rotate(360deg) scale(1.1);
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 3rem;
}

/* Loading Animation */
.cosmic-loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(107, 45, 143, 0.3);
  border-top-color: var(--star-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

/* Glow Effect */
.glow-text {
  text-shadow: 0 0 10px var(--star-gold), 0 0 20px var(--star-gold), 0 0 30px var(--star-gold);
}

/* Footer Styles */
footer {
  background: rgba(10, 14, 39, 0.9);
  border-top: 1px solid rgba(107, 45, 143, 0.3);
  margin-top: 5rem;
}

footer a {
  color: var(--moon-silver);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--star-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .cosmic-card {
    padding: 1.5rem;
  }
  
  .zodiac-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Tool Page Specific Styles */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.result-box {
  background: rgba(107, 45, 143, 0.2);
  border: 2px solid var(--cosmic-purple);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
}

.input-cosmic {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(107, 45, 143, 0.5);
  border-radius: 10px;
  padding: 12px 20px;
  color: var(--moon-silver);
  width: 100%;
  transition: all 0.3s ease;
}

.input-cosmic:focus {
  outline: none;
  border-color: var(--star-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.input-cosmic::placeholder {
  color: rgba(229, 231, 235, 0.5);
}

/* Select Dropdown */
select.input-cosmic {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fbbf24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}
