/* Event Notification Styles */

.event-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 350px;
  background: #0f3460;
  /* Dark blue to match game */
  border: 2px solid #f39c12;
  /* Orange border */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(243, 156, 18, 0.5);
  z-index: 6000;
  animation: slideInRight 0.4s ease;
  overflow: hidden;
  color: #eee;
  /* Light text */
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.event-notification-header {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  /* Orange to match theme */
  color: white;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-icon {
  font-size: 1.8em;
}

.event-title-section {
  flex: 1;
}

.event-title-section h4 {
  margin: 0;
  font-size: 1.1em;
  font-weight: bold;
}

.event-timer {
  font-size: 0.85em;
  margin-top: 3px;
  opacity: 0.9;
  font-family: 'Courier New', monospace;
}

.event-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
  padding: 0;
}

.event-close-btn:hover {
  background: #e74c3c;
  transform: rotate(90deg) scale(1.1);
}

.event-notification-body {
  padding: 15px;
}

.event-description {
  margin: 0 0 15px 0;
  font-size: 0.95em;
  color: #ecf0f1;
  /* Light text */
  line-height: 1.5;
}

.event-objectives {
  margin-bottom: 15px;
}

.event-objectives h5 {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  color: #f39c12;
  /* Orange headers */
  font-weight: bold;
}

.event-objectives ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-objectives li {
  padding: 6px 10px;
  margin: 4px 0;
  background: rgba(0, 0, 0, 0.3);
  /* Dark bg */
  border-left: 3px solid #7f8c8d;
  border-radius: 4px;
  font-size: 0.85em;
  color: #bdc3c7;
  /* Light text */
  transition: all 0.2s ease;
}

.event-objectives li.completed {
  background: rgba(39, 174, 96, 0.3);
  /* Green tint */
  border-left-color: #27ae60;
  color: #2ecc71;
  /* Bright green */
  font-weight: bold;
}

.objective-progress {
  float: right;
  color: #7f8c8d;
  font-size: 0.9em;
}

.event-rewards {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.event-rewards h5 {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  color: #f39c12;
  /* Orange headers */
  font-weight: bold;
}

.rewards-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rewards-list span {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile optimization */
@media (max-width: 768px) {
  .event-notification {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    top: 70px;
  }
}

/* Multiple events stacking */
.event-notification:nth-child(2) {
  top: 280px;
}

.event-notification:nth-child(3) {
  top: 480px;
}

/* Pulse animation for urgent events */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(52, 152, 219, 0.4);
  }

  50% {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(52, 152, 219, 0.7);
  }
}

.event-notification.urgent {
  animation: slideInRight 0.4s ease, pulse 2s ease-in-out infinite;
}