/*
 * ORGA genel bildirim baloncuğu.
 * Yönetim panelindeki .admin-toast akışıyla aynı görsel dil, herkese açık
 * sayfalar için bağımsız isim alanında.
 */
.orga-toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 4000;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  scrollbar-width: thin;
}

.orga-toast {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 10px;
  overflow: hidden;
  padding: 14px 13px 16px;
  border: 1px solid;
  border-radius: 16px;
  background: rgba(10, 16, 28, .97);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .48);
  pointer-events: auto;
  animation: orga-toast-enter .22s ease-out both;
}

.orga-toast.is-success { border-color: rgba(74, 222, 128, .52); }
.orga-toast.is-error { border-color: rgba(248, 113, 113, .58); }
.orga-toast.is-warning { border-color: rgba(246, 196, 49, .58); }
.orga-toast.is-info { border-color: rgba(96, 165, 250, .52); }

.orga-toast-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 950;
}

.orga-toast.is-success .orga-toast-icon { background: rgba(34, 197, 94, .18); color: #86efac; }
.orga-toast.is-error .orga-toast-icon { background: rgba(239, 68, 68, .18); color: #fecaca; }
.orga-toast.is-warning .orga-toast-icon { background: rgba(246, 196, 49, .18); color: #fde68a; }
.orga-toast.is-info .orga-toast-icon { background: rgba(59, 130, 246, .18); color: #bfdbfe; }

.orga-toast-copy { display: grid; gap: 3px; min-width: 0; line-height: 1.45; }
.orga-toast-copy strong { color: #f8fafc; font-size: .86rem; font-weight: 900; }
.orga-toast-copy > span { color: #dbe4ef; font-size: .9rem; overflow-wrap: anywhere; }

.orga-toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: #141d2e;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.orga-toast-close:hover,
.orga-toast-close:focus-visible { border-color: rgba(246, 196, 49, .55); color: #f6c431; outline: none; }

.orga-toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform-origin: left center;
}

.orga-toast.is-success .orga-toast-timer { color: #22c55e; }
.orga-toast.is-error .orga-toast-timer { color: #ef4444; }
.orga-toast.is-warning .orga-toast-timer { color: #f6c431; }
.orga-toast.is-info .orga-toast-timer { color: #60a5fa; }

.orga-toast.is-leaving { animation: orga-toast-leave .2s ease-in both; }

@keyframes orga-toast-enter { from { opacity: 0; transform: translate3d(18px, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes orga-toast-leave { to { opacity: 0; transform: translate3d(22px, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .orga-toast,
  .orga-toast.is-leaving { animation: none; }
}

@media (max-width: 560px) {
  .orga-toast-region { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
