/**
 * Respawn Location Styles
 * Message and button shown after death animation
 */

/* Respawn destination message */
.respawn-message {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 30px;
  font-size: 18px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-align: center;
  z-index: 1001;
  letter-spacing: 0.05em;
  animation: respawn-message-fadein 0.5s ease-out;
}

@keyframes respawn-message-fadein {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Graveyard respawn - muted gray/blue theme */
.respawn-message--graveyard {
  color: #8899aa;
  text-shadow: 0 0 15px rgba(100, 120, 140, 0.6);
}

/* Swarm Hive Core respawn - ominous red/crimson theme */
.respawn-message--hive {
  color: #cc4444;
  text-shadow: 0 0 15px rgba(180, 60, 60, 0.8), 0 0 30px rgba(139, 0, 0, 0.5);
  animation: respawn-message-fadein 0.5s ease-out, hive-pulse 1.5s ease-in-out infinite;
}

@keyframes hive-pulse {
  0%, 100% {
    text-shadow: 0 0 15px rgba(180, 60, 60, 0.8), 0 0 30px rgba(139, 0, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(200, 80, 80, 1), 0 0 40px rgba(160, 20, 20, 0.7);
  }
}

/* Respawn button */
.respawn-button {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 60px;
  font-size: 24px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  background: linear-gradient(180deg, #2a5a2a 0%, #1a3a1a 100%);
  border: 2px solid #4a8a4a;
  color: #8fdf8f;
  cursor: pointer;
  text-shadow: 0 0 10px #4a8a4a;
  box-shadow: 0 0 20px rgba(74, 138, 74, 0.5);
  z-index: 1001;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.respawn-button:hover {
  background: linear-gradient(180deg, #3a7a3a 0%, #2a5a2a 100%);
  box-shadow: 0 0 30px rgba(74, 138, 74, 0.8);
  transform: translateX(-50%) scale(1.05);
}

.respawn-button:active {
  transform: translateX(-50%) scale(0.98);
  box-shadow: 0 0 15px rgba(74, 138, 74, 0.6);
}

.respawn-button:focus {
  outline: 2px solid #8fdf8f;
  outline-offset: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .respawn-button {
    padding: 24px 50px;
    font-size: 20px;
    min-width: 200px;
  }
}

/* Touch-friendly */
@media (hover: none) {
  .respawn-button:hover {
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(74, 138, 74, 0.5);
  }

  .respawn-button:active {
    background: linear-gradient(180deg, #4a9a4a 0%, #3a7a3a 100%);
    box-shadow: 0 0 35px rgba(74, 138, 74, 0.9);
  }
}
