/* Material Design 3 - Arctic Starry Sky Effect */

/* Import dark mode particle styles */
@import url("m3-particles-dark.83bf5221605a.css");
/* Import position classes for stars */
@import url("m3-particles-positions.7f5b7d9dab5d.css");

/* Star container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5 !important;
  pointer-events: none;
}

/* Base star style - brighter and more visible */
.floating-particle {
  position: absolute;
  width: 2px !important;
  height: 2px !important;
  background: #FFFFFF !important;
  border-radius: 50%;
  opacity: 1 !important;
  animation: twinkle 1.5s ease-in-out infinite;
}

/* Magnitude 1 stars - SUPER BRIGHT */
.star-magnitude-1 {
  width: 5px !important;
  height: 5px !important;
  background: #FFD700 !important;
  /* Strong gold */
  opacity: 1 !important;
  animation: brightTwinkle 1s ease-in-out infinite;
  box-shadow:
    0 0 25px #FFD700,
    0 0 50px #FFD700,
    0 0 75px #FFD700,
    0 0 100px #FFD700,
    0 0 125px #FFD700,
    0 0 150px #FFD700 !important;
  /* No filter for pure color */
}

/* Alternate bright white for some magnitude 1 stars */
.star-magnitude-1:nth-child(3n) {
  background: #FFFFFF !important;
  /* Pure white */
  box-shadow:
    0 0 25px #FFFFFF,
    0 0 50px #FFFFFF,
    0 0 75px #FFFFFF,
    0 0 100px #FFFFFF,
    0 0 125px #FFFFFF,
    0 0 150px #FFFFFF !important;
  /* No filter for pure color */
}

/* Bright yellow stars */
.star-magnitude-1:nth-child(3n+1) {
  background: #FFFF00 !important;
  /* Pure yellow */
  box-shadow:
    0 0 25px #FFFF00,
    0 0 50px #FFFF00,
    0 0 75px #FFFF00,
    0 0 100px #FFFF00,
    0 0 125px #FFFF00,
    0 0 150px #FFFF00 !important;
  /* No filter for pure color */
}

/* Magnitude 2 stars - BRIGHTER */
.star-magnitude-2 {
  width: 4px !important;
  height: 4px !important;
  background: #FFA500 !important;
  /* Pure orange-gold */
  opacity: 1 !important;
  animation: twinkle 1.2s ease-in-out infinite;
  box-shadow:
    0 0 20px #FFA500,
    0 0 40px #FFA500,
    0 0 60px #FFA500,
    0 0 80px #FFA500 !important;
  /* No filter for pure color */
}

/* Magnitude 3 stars - MUCH BRIGHTER */
.star-magnitude-3 {
  width: 3px !important;
  height: 3px !important;
  background: #FFFFFF !important;
  /* Pure white */
  opacity: 1 !important;
  animation: twinkle 1.5s ease-in-out infinite;
  box-shadow:
    0 0 15px #FFFFFF,
    0 0 30px #FFFFFF,
    0 0 45px #FFFFFF !important;
  /* No filter for pure color */
}

/* Magnitude 4 stars - BRIGHTER */
.star-magnitude-4 {
  width: 3px !important;
  height: 3px !important;
  background: #F0F0FF !important;
  /* Slightly blue-white */
  opacity: 1 !important;
  animation: gentleTwinkle 2s ease-in-out infinite;
  box-shadow:
    0 0 10px #F0F0FF,
    0 0 20px #F0F0FF !important;
  /* No filter for pure color */
}

/* Remove fixed positions - now handled by JavaScript for 150 stars */

/* Enhanced star variations - SUPER BRIGHT like JavaScript version */
/* White stars */
.floating-particle:nth-child(4n) {
  background: #ffffff !important;
  width: 2px !important;
  height: 2px !important;
  opacity: 1 !important;
  box-shadow:
    0 0 2px 1px #ffffff,
    0 0 4px 2px #ffffff,
    0 0 8px 3px rgba(255, 255, 255, 0.9),
    0 0 14px 5px rgba(255, 255, 255, 0.7),
    0 0 20px 8px rgba(255, 255, 255, 0.5),
    0 0 26px 11px rgba(255, 255, 255, 0.3) !important;
  /* No filter for Chrome/Safari consistency */
}

/* Yellow stars */
.floating-particle:nth-child(4n+1) {
  background: #ffff99 !important;
  width: 3px !important;
  height: 3px !important;
  opacity: 1 !important;
  box-shadow:
    0 0 3px 1px #ffff99,
    0 0 6px 2px #ffffcc,
    0 0 10px 4px rgba(255, 255, 150, 0.9),
    0 0 16px 7px rgba(255, 255, 120, 0.7),
    0 0 22px 10px rgba(255, 255, 100, 0.5),
    0 0 28px 13px rgba(255, 255, 80, 0.3) !important;
  /* No filter for Chrome/Safari consistency */
}

/* Blue-white stars */
.floating-particle:nth-child(4n+2) {
  background: #99ccff !important;
  width: 4px !important;
  height: 4px !important;
  opacity: 1 !important;
  box-shadow:
    0 0 3px 1px #99ccff,
    0 0 6px 2px #cce7ff,
    0 0 10px 4px rgba(150, 200, 255, 0.9),
    0 0 16px 7px rgba(120, 180, 255, 0.7),
    0 0 22px 10px rgba(100, 160, 255, 0.5),
    0 0 28px 13px rgba(80, 140, 255, 0.3) !important;
  /* No filter for Chrome/Safari consistency */
}

/* Pink-white stars */
.floating-particle:nth-child(4n+3) {
  background: #ffccff !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 1 !important;
  box-shadow:
    0 0 2px 1px #ffccff,
    0 0 4px 2px #ffb3ff,
    0 0 8px 3px rgba(255, 200, 255, 0.9),
    0 0 12px 5px rgba(255, 170, 255, 0.7),
    0 0 18px 8px rgba(255, 150, 255, 0.5),
    0 0 24px 11px rgba(255, 130, 255, 0.3) !important;
  /* No filter for Chrome/Safari consistency */
}

/* Twinkle animations - Pure colors without filter */
@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

@keyframes brightTwinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

@keyframes gentleTwinkle {

  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes strongTwinkle {

  0%,
  100% {
    opacity: 0.85;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Apply stronger twinkle to larger stars */
.floating-particle:nth-child(5n) {
  animation-name: strongTwinkle !important;
}

/* Shooting star styles - only in dark mode */
.shooting-star {
  position: absolute;
  width: 2px !important;
  height: 2px !important;
  background: radial-gradient(circle, #FFFFFF 0%, rgba(255,255,255,0.6) 100%) !important;
  border-radius: 50%;
  opacity: 0;
  animation: shootingStar 1.2s ease-out; /* Removed infinite - controlled by JS */
  box-shadow: 0 0 3px #FFFFFF,
              0 0 5px rgba(255,255,255,0.8);
  display: none;
  /* Hidden by default */
}

/* Size variations for more realism */
.shooting-star.shooting-small {
  width: 1px !important;
  height: 1px !important;
  box-shadow: 0 0 2px #FFFFFF;
}

.shooting-star.shooting-medium {
  width: 2px !important;
  height: 2px !important;
  box-shadow: 0 0 3px #FFFFFF,
              0 0 5px rgba(255,255,255,0.7);
}

.shooting-star.shooting-large {
  width: 3px !important;
  height: 3px !important;
  box-shadow: 0 0 4px #FFFFFF,
              0 0 8px rgba(255,255,255,0.6);
}

/* Show shooting stars only in dark mode */
[data-theme="dark"] .shooting-star {
  display: block !important;
}

/* Shooting star tail - realistic gradient trail */
.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 1px;
  transform: translate(-50%, -50%) rotate(var(--shooting-angle, -45deg));
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255,255,255,0.05) 20%,
    rgba(255,255,255,0.1) 40%,
    rgba(255,255,255,0.3) 60%,
    rgba(255,255,255,0.6) 80%,
    rgba(255,255,255,0.9) 95%,
    #FFFFFF 100%);
  transform-origin: 100% 50%;
  animation: shootingTail inherit;
  animation-delay: inherit;
  opacity: 0;
  filter: blur(0.5px);
}

/* Medium tail */
.shooting-star.shooting-medium::before {
  width: 45px;
  height: 1.5px;
}

/* Larger tail for larger stars */
.shooting-star.shooting-large::before {
  width: 60px;
  height: 2px;
}

/* Smaller tail for smaller stars */
.shooting-star.shooting-small::before {
  width: 25px;
  height: 0.5px;
}

/* Shooting star animation - realistic meteor movement */
@keyframes shootingStar {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }

  10% {
    transform: translate(-20px, 12px) scale(1);
    opacity: 1;
  }

  70% {
    transform: translate(-140px, 84px) scale(1);
    opacity: 1;
  }
  
  90% {
    transform: translate(-180px, 108px) scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: translate(-200px, 120px) scale(0.3);
    opacity: 0;
  }
}

/* Tail animation - fades from tail end first */
@keyframes shootingTail {
  0% {
    width: 0;
    opacity: 0;
    background: linear-gradient(90deg,
      transparent 0%,
      transparent 100%);
  }

  10% {
    width: inherit;
    opacity: 1;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(255,255,255,0.1) 30%,
      rgba(255,255,255,0.4) 60%,
      rgba(255,255,255,0.8) 90%,
      #FFFFFF 100%);
  }
  
  70% {
    width: inherit;
    opacity: 1;
    background: linear-gradient(90deg,
      transparent 0%,
      transparent 40%,
      rgba(255,255,255,0.2) 70%,
      rgba(255,255,255,0.6) 90%,
      #FFFFFF 100%);
  }

  90% {
    width: inherit;
    opacity: 0.8;
    background: linear-gradient(90deg,
      transparent 0%,
      transparent 70%,
      rgba(255,255,255,0.1) 90%,
      rgba(255,255,255,0.4) 100%);
  }

  100% {
    width: inherit;
    opacity: 0;
    background: linear-gradient(90deg,
      transparent 0%,
      transparent 100%);
  }
}