/* Achievement Toast Notification */

.achievement-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999999;
  pointer-events: none;
}

.achievement-toast {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #c9963a;
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 320px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 40px rgba(201, 150, 58, 0.4), 0 0 80px rgba(201, 150, 58, 0.2), 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: achievementSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, achievementGlow 2s ease-in-out infinite;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.8);
}

.achievement-toast.fade-out {
  animation: achievementSlideOut 0.4s ease-in forwards;
}

@keyframes achievementSlideIn {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes achievementSlideOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

@keyframes achievementGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(201, 150, 58, 0.4), 0 0 80px rgba(201, 150, 58, 0.2), 0 20px 60px rgba(0, 0, 0, 0.8); }
  50% { box-shadow: 0 0 60px rgba(201, 150, 58, 0.6), 0 0 100px rgba(201, 150, 58, 0.3), 0 20px 60px rgba(0, 0, 0, 0.8); }
}

.achievement-toast-header {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  color: #c9963a;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.achievement-toast-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.achievement-toast-name {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #d4a574;
  margin-bottom: 8px;
}

.achievement-toast-description {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 16px;
}

.achievement-toast-rewards {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 150, 58, 0.2);
}

.achievement-toast-points {
  background: linear-gradient(135deg, #c9963a, #b8860b);
  color: #0a0a0a;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
}

.achievement-toast.path-blade { border-color: #ef4444; }
.achievement-toast.path-blade .achievement-toast-header,
.achievement-toast.path-blade .achievement-toast-name { color: #ef4444; }

.achievement-toast.path-shadow { border-color: #8b5cf6; }
.achievement-toast.path-shadow .achievement-toast-header,
.achievement-toast.path-shadow .achievement-toast-name { color: #8b5cf6; }

.achievement-toast.path-spirit { border-color: #10b981; }
.achievement-toast.path-spirit .achievement-toast-header,
.achievement-toast.path-spirit .achievement-toast-name { color: #10b981; }

@media (max-width: 768px) {
  .achievement-toast {
    min-width: 280px;
    max-width: 90vw;
    padding: 20px 24px;
  }
  .achievement-toast-icon { font-size: 2.5rem; }
  .achievement-toast-name { font-size: 1.25rem; }
}