/**
 * Events UI Styles
 * Handles all game event visual notifications
 */

/* ============================================================================
   WORLD EVENTS (Center-screen announcements)
   ============================================================================ */

.world-events-container {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.world-event {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 40, 0.95));
  border: 3px solid #00ffff;
  border-radius: 15px;
  padding: 30px 60px;
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.8) translateY(-50px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.world-event.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.world-event-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  text-shadow:
    0 0 10px rgba(0, 255, 255, 0.8),
    0 0 20px rgba(0, 255, 255, 0.6),
    0 0 30px rgba(0, 255, 255, 0.4);
  margin-bottom: 10px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.world-event-subtitle {
  font-size: 24px;
  text-align: center;
  color: #aaa;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Extraction Zone Opened - Special styling */
.world-event.extraction-open {
  border-color: #00ff00;
  box-shadow:
    0 0 40px rgba(0, 255, 0, 0.6),
    inset 0 0 20px rgba(0, 255, 0, 0.1);
  animation: extraction-pulse 1s ease-in-out infinite;
}

.world-event.extraction-open .world-event-title {
  color: #00ff00;
  text-shadow:
    0 0 10px rgba(0, 255, 0, 0.8),
    0 0 20px rgba(0, 255, 0, 0.6),
    0 0 30px rgba(0, 255, 0, 0.4);
}

/* Extraction Zone Closed */
.world-event.extraction-closed {
  border-color: #ff4444;
  box-shadow:
    0 0 30px rgba(255, 68, 68, 0.4),
    inset 0 0 20px rgba(255, 68, 68, 0.1);
}

.world-event.extraction-closed .world-event-title {
  color: #ff4444;
  text-shadow:
    0 0 10px rgba(255, 68, 68, 0.8),
    0 0 20px rgba(255, 68, 68, 0.6);
}

/* Extraction Success (Local Player) */
.world-event.extraction-success-local {
  border-color: #ffd700;
  box-shadow:
    0 0 50px rgba(255, 215, 0, 0.8),
    inset 0 0 30px rgba(255, 215, 0, 0.2);
  animation: success-pulse 0.5s ease-in-out 3;
}

.world-event.extraction-success-local .world-event-title {
  color: #ffd700;
  font-size: 56px;
  text-shadow:
    0 0 15px rgba(255, 215, 0, 1),
    0 0 30px rgba(255, 215, 0, 0.8),
    0 0 45px rgba(255, 215, 0, 0.6);
}

/* Kill Streak (Local Player) */
.world-event.kill-streak-local {
  border-color: #ff6600;
  box-shadow:
    0 0 40px rgba(255, 102, 0, 0.7),
    inset 0 0 20px rgba(255, 102, 0, 0.2);
  animation: fire-pulse 0.3s ease-in-out infinite;
}

.world-event.kill-streak-local .world-event-title {
  color: #ff6600;
  font-size: 52px;
  text-shadow:
    0 0 15px rgba(255, 102, 0, 1),
    0 0 30px rgba(255, 102, 0, 0.8);
}

/* ============================================================================
   LOOT NOTIFICATIONS (Side notifications)
   ============================================================================ */

.loot-notifications-container {
  position: fixed;
  bottom: 150px;
  right: 20px;
  z-index: 9000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 300px;
}

.loot-notification {
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(40, 40, 60, 0.95));
  border: 2px solid #9b59b6;
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 4px 15px rgba(155, 89, 182, 0.3),
    inset 0 0 10px rgba(155, 89, 182, 0.1);
  opacity: 1;
  transform: translateX(0);
  animation: slide-in-right 0.3s ease-out;
}

.loot-notification.fade-out {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease-out;
}

.loot-icon {
  font-size: 32px;
  line-height: 1;
}

.loot-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.loot-slot {
  font-size: 12px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 5px;
}

/* ============================================================================
   HIT MARKERS
   ============================================================================ */

@keyframes hit-marker-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes pulse-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

@keyframes extraction-pulse {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(0, 255, 0, 0.6),
      inset 0 0 20px rgba(0, 255, 0, 0.1);
  }
  50% {
    box-shadow:
      0 0 60px rgba(0, 255, 0, 0.9),
      inset 0 0 30px rgba(0, 255, 0, 0.2);
  }
}

@keyframes success-pulse {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-5px);
  }
}

@keyframes fire-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.3);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================================
   KILL FEED ENHANCEMENTS
   ============================================================================ */

.kill-feed-entry.kill-streak {
  background: linear-gradient(90deg,
    rgba(255, 102, 0, 0.3),
    rgba(255, 68, 68, 0.3));
  border-left: 4px solid #ff6600;
  padding: 8px 12px;
  animation: kill-streak-flash 0.5s ease-out;
}

.streak-icon {
  font-size: 20px;
  margin-right: 5px;
}

.streak-name {
  color: #ff6600;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 102, 0, 0.8);
  margin-left: 8px;
}

@keyframes kill-streak-flash {
  0%, 100% {
    background: linear-gradient(90deg,
      rgba(255, 102, 0, 0.3),
      rgba(255, 68, 68, 0.3));
  }
  50% {
    background: linear-gradient(90deg,
      rgba(255, 102, 0, 0.6),
      rgba(255, 68, 68, 0.6));
  }
}

/* ============================================================================
   STATUS EFFECT NOTIFICATIONS
   ============================================================================ */

.pickup-notification.shield-active {
  border: 2px solid #3498db;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
  color: #3498db;
}

.pickup-notification.cloak-active {
  border: 2px solid #9b59b6;
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
  color: #9b59b6;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
  .world-event-title {
    font-size: 32px;
  }

  .world-event-subtitle {
    font-size: 18px;
  }

  .world-event {
    padding: 20px 40px;
  }

  .loot-notifications-container {
    right: 10px;
    bottom: 100px;
  }
}
