/**
 * Wormhole Transit UI Styles
 */

/* Full-screen overlay */
.wormhole-transit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  pointer-events: all;
}

.wormhole-transit-overlay.hidden {
  display: none;
}

/* Canvas fills the background */
#wormhole-transit-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #001520 0%, #000a10 50%, #000005 100%);
}

/* Content layer above canvas */
.wormhole-transit-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5vh;
  pointer-events: none;
}

/* Title - fixed at top */
.wormhole-title {
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: #88ddff;
  text-shadow: 0 0 20px #00ccff, 0 0 40px #0088cc;
  letter-spacing: 0.3em;
  animation: title-pulse 2s ease-in-out infinite;
}

@keyframes title-pulse {
  0%, 100% { opacity: 0.8; text-shadow: 0 0 20px #00ccff, 0 0 40px #0088cc; }
  50% { opacity: 1; text-shadow: 0 0 30px #00ffff, 0 0 60px #00ccff; }
}

/* Destinations container - full screen for absolute positioning */
.wormhole-destinations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.no-destinations {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #88ccdd;
  font-size: 1.2rem;
  padding: 2rem;
  pointer-events: auto;
}

/* Destination buttons */
.wormhole-destination-btn {
  position: absolute;
  width: 160px;
  padding: 1rem;
  background: rgba(0, 60, 80, 0.6);
  border: 2px solid #00ccff;
  border-radius: 10px;
  color: #ddeeff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  pointer-events: auto;
}

.wormhole-destination-btn:hover {
  background: rgba(0, 100, 140, 0.8);
  border-color: #00ffff;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.6);
}

.wormhole-destination-btn:active {
  transform: scale(0.95);
}

.wormhole-destination-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.dest-sector {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.dest-distance {
  font-size: 0.85rem;
  color: #88ccdd;
}

/* Progress bar - centered below wormhole */
.wormhole-progress {
  position: absolute;
  bottom: 25vh;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  text-align: center;
  pointer-events: auto;
}

.wormhole-progress.hidden {
  display: none;
}

.progress-label {
  font-size: 1.1rem;
  color: #88ddff;
  margin-bottom: 0.5rem;
  animation: transit-text-pulse 1s ease-in-out infinite;
}

@keyframes transit-text-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(0, 40, 60, 0.5);
  border: 1px solid #0088cc;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0066aa 0%, #00ccff 50%, #00ffff 100%);
  border-radius: 6px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px #00ccff;
}

/* Cancel button - fixed at bottom */
.wormhole-cancel-btn {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 2rem;
  background: rgba(80, 40, 0, 0.6);
  border: 1px solid #ff8844;
  border-radius: 5px;
  color: #ffcc88;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.wormhole-cancel-btn:hover {
  background: rgba(120, 60, 0, 0.8);
  border-color: #ffaa44;
}

.wormhole-cancel-btn.hidden {
  display: none;
}

/* Wormhole hint in HUD */
#wormhole-hint {
  color: #88ddff;
  text-shadow: 0 0 10px #00ccff;
  animation: wormhole-hint-pulse 1.5s ease-in-out infinite;
}

@keyframes wormhole-hint-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; text-shadow: 0 0 15px #00ffff; }
}
