/* Стили для звёздного неба */
.starry-sky-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* Специальные стили для звёздного неба на всём фоне сайта */
.ca25MainApps .starry-sky-container {
  z-index: 0; /* Размещаем звёзды на фоне, но за контентом */
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
  opacity: 0;
}

.star.small {
  width: 1px;
  height: 1px;
  animation-duration: 2s;
  background: rgba(255, 255, 255, 0.8);
}

.star.medium {
  width: 2px;
  height: 2px;
  animation-duration: 4s;
  background: rgba(255, 255, 255, 0.9);
}

.star.large {
  width: 3px;
  height: 3px;
  animation-duration: 6s;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 8px rgba(255, 255, 255, 0.4);
}

.star.shooting {
  width: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shooting-star 8s linear infinite;
  border-radius: 0;
}

/* Различные типы мерцания для разнообразия */
.star:nth-child(3n) {
  animation-delay: 0.5s;
}

.star:nth-child(5n) {
  animation-delay: 1s;
}

.star:nth-child(7n) {
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: translateX(-100px) translateY(0) rotate(45deg) scale(0.5);
  }
  10% {
    opacity: 1;
    transform: translateX(-50px) translateY(50px) rotate(45deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateX(calc(100vw - 50px)) translateY(calc(100vh - 50px)) rotate(45deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(45deg) scale(0.5);
  }
}

/* Дополнительные эффекты для больших звёзд */
.star.large::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Адаптивность для разных размеров экрана */
@media (max-width: 768px) {
  .star.large {
    width: 2px;
    height: 2px;
  }
  
  .star.medium {
    width: 1px;
    height: 1px;
  }
  
  .star.large::before {
    width: 4px;
    height: 4px;
  }
}

/* Оптимизация производительности */
.starry-sky-container {
  will-change: transform;
  transform: translateZ(0);
}

.star {
  will-change: opacity, transform;
  transform: translateZ(0);
} 