/* Retro-styled popup system for game alerts */

.retro-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.retro-popup {
  background-color: #1a1a2e;
  border: 3px solid #ffc107;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3), 0 0 40px rgba(0, 0, 0, 0.4);
  color: #f8f9fa;
  font-family: 'Press Start 2P', cursive;
  position: relative;
  animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.retro-popup-header {
  background-color: #16213e;
  padding: 15px;
  border-bottom: 2px solid #ffc107;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retro-popup-title {
  color: #ffc107;
  font-size: 1rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.retro-popup-body {
  padding: 20px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.retro-popup-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  border-top: 2px solid rgba(255, 193, 7, 0.2);
  background-color: rgba(22, 33, 62, 0.3);
}

.retro-popup-btn {
  padding: 8px 20px;
  border-radius: 5px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid;
  background-color: #4361ee;
  color: #fff;
  border-color: #4361ee;
}

.retro-popup-btn:hover {
  background-color: #5773f0;
}

/* Special alert types */
.retro-popup.success .retro-popup-header {
  border-color: #28a745;
}

.retro-popup.success .retro-popup-title {
  color: #28a745;
}

.retro-popup.error .retro-popup-header {
  border-color: #dc3545;
}

.retro-popup.error .retro-popup-title {
  color: #dc3545;
}

/* Event notification style with purple theme */
.retro-popup.event .retro-popup-header {
  background-color: #6a0dad;
  border-color: #9b59b6;
}

.retro-popup.event .retro-popup-title {
  color: #e4c3f9;
}

.retro-popup.event .retro-popup-btn {
  background-color: #9b59b6;
  border-color: #8e44ad;
}

.retro-popup.event .retro-popup-btn:hover {
  background-color: #a569bd;
}