/* ==========================================================================
   COSMIC & 3D CANVAS STYLES
   ========================================================================== */

.cosmic-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Vignette and atmosphere overlays */
.space-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(3, 4, 10, 0.7) 80%, rgba(2, 3, 7, 0.95) 100%);
  z-index: 2;
}

.space-nebula-glow {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(56, 189, 248, 0.06) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: floatNebula 25s ease-in-out infinite alternate;
  z-index: 2;
}

.space-nebula-glow-secondary {
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  animation: floatNebula 30s ease-in-out infinite alternate-reverse;
  z-index: 2;
}

@keyframes floatNebula {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Star node tooltip on hover */
.star-tooltip {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  background: rgba(14, 18, 42, 0.9);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  transform: translate(-50%, -130%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 220px;
}

.star-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -120%);
}

.star-tooltip-title {
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-tooltip-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.star-tooltip-hint {
  font-size: 0.65rem;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* Canvas Drag Cursor indicator */
.canvas-interactive {
  cursor: grab;
}
.canvas-interactive:active {
  cursor: grabbing;
}

/* Interactive Navigation Hints */
.space-controls-hint {
  position: absolute;
  bottom: 80px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  z-index: 10;
  pointer-events: none;
  background: rgba(6, 9, 24, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hint-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hint-kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}
