/**
 * Flash Toast - Top-right notifications for player registration
 * Unations FC brand styling
 */

.flash-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 420px;
  pointer-events: none;
}

.flash-toast-container .flash-toast {
  pointer-events: auto;
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: flash-toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateX(120%);
  opacity: 0;
}

.flash-toast-container .flash-toast.flash-toast--out {
  animation: flash-toast-slide-out 0.3s ease forwards;
}

.flash-toast-container .flash-toast-success {
  background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
  color: #fff;
  border: none;
}

.flash-toast-container .flash-toast-danger {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  color: #fff;
  border: none;
}

.flash-toast-container .flash-toast-warning {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  color: #fff;
  border: none;
}

.flash-toast-container .flash-toast-info {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  border: none;
}

.flash-toast-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.flash-toast-body {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.flash-toast-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: inherit;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s;
}

.flash-toast-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

@keyframes flash-toast-slide-in {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes flash-toast-slide-out {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 576px) {
  .flash-toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
