/* =============================================================================
 * TOASTS - Notifications en bas de l'écran
 * =============================================================================
 */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  /* Au-dessus de la popup Pokémon (10001), des listes fixes (10050), etc. */
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 32px);
  width: 360px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease;
}

.toast-success {
  background: rgba(74, 222, 128, 0.95);
  color: #0f2e1a;
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.toast-error {
  background: rgba(248, 113, 113, 0.95);
  color: #2e0f0f;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

.toast-info {
  background: rgba(99, 102, 241, 0.95);
  color: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.toast-warning {
  background: rgba(251, 191, 36, 0.95);
  color: #422006;
  border: 1px solid rgba(217, 119, 6, 0.45);
}

/* Toasts comparateur : thème sombre aligné sur le site */
.toast.toast-comparator.toast-success,
.toast.toast-comparator.toast-warning {
  background: linear-gradient(135deg, #242937 0%, #1a1e2b 100%);
  color: #e8eaef;
  border: 1px solid rgba(77, 91, 255, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.toast.toast-comparator.toast-warning {
  border-color: rgba(245, 158, 11, 0.4);
}

.toast-comparator .toast-icon {
  color: #6d78ff;
}

.toast-comparator.toast-warning .toast-icon {
  color: #fbbf24;
}

.toast-comparator .toast-inline-link {
  color: #8b96ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}

.toast-comparator .toast-inline-link:hover {
  color: #b4bcff;
}

.toast-comparator .toast-message {
  line-height: 1.45;
}

.toast-icon {
  flex-shrink: 0;
  font-size: 18px;
}

.toast-message {
  flex: 1;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.toast-exit {
  animation: toastSlideOut 0.25s ease forwards;
}

@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .toast-container {
    bottom: 16px;
    width: calc(100vw - 24px);
    max-width: none;
  }
  
  .toast {
    padding: 12px 16px;
    font-size: 13px;
  }
}
