/* ═══════════════════════════════════════════════════════════════════
   LANDING MODALS - Модальные окна для планет
   ═══════════════════════════════════════════════════════════════════ */

.planet-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.planet-modal.active {
  opacity: 1;
  visibility: visible;
}

.planet-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 10, 30, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.planet-modal-content {
  background: linear-gradient(135deg, #001a33 0%, #002a4d 100%);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2),
              inset 0 0 30px rgba(0, 255, 255, 0.05);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: default;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.planet-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 40px;
  color: #00ffff;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

.planet-modal-close:hover {
  opacity: 1;
  background: rgba(0, 255, 255, 0.1);
  transform: rotate(90deg);
}

.planet-modal-content h2 {
  color: #00ffff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  animation: textGlow 2s ease infinite;
}

@keyframes textGlow {
  0%, 100% { 
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5); 
  }
  50% { 
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8); 
  }
}

.planet-modal-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

/* Cosmic background effect */
.planet-modal-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent 0%, 
    rgba(0, 255, 255, 0.1) 50%, 
    transparent 100%);
  border-radius: 20px;
  z-index: -1;
  animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Адаптив */
@media (max-width: 768px) {
  .planet-modal-content {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .planet-modal-content h2 {
    font-size: 24px;
  }

  .planet-modal-content p {
    font-size: 16px;
  }

  .planet-modal-close {
    font-size: 32px;
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }
}
