/*
 * AnimeRank — Toast Stilleri (ANI-31)
 * Stack: alt-sağ; mobil: tam genişlik alt
 */

.ar-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.ar-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  min-width: 260px;
  max-width: 360px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: all;
  cursor: default;
  transform: translateX(120%);
  opacity: 0;
  transition: none;
  will-change: transform, opacity;
}

.ar-toast--in {
  animation: ar-toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ar-toast--out {
  animation: ar-toast-out 0.25s ease forwards;
}

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

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

.ar-toast--success { background: #1a472a; border-left: 3px solid #2ecc71; }
.ar-toast--error   { background: #4a1a1a; border-left: 3px solid #e74c3c; }
.ar-toast--warning { background: #4a3a1a; border-left: 3px solid #f39c12; }
.ar-toast--info    { background: #1a2a4a; border-left: 3px solid #3498db; }

.ar-toast__icon {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.ar-toast__msg {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}

.ar-toast__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 8px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.ar-toast__close:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .ar-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .ar-toast {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-toast--in,
  .ar-toast--out {
    animation-duration: 0.01ms;
  }
}
