/**
 * Всплывающие уведомления (popup/tray).
 * Типы: Info, Success, Warning, Error, Promotion, System.
 * Иконки, анимация появления/исчезновения, стильные карточки.
 */

.site-notifications-tray {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  pointer-events: none;
}

.site-notifications-tray .site-notification {
  pointer-events: auto;
  max-width: 100%;
  width: 100%;
  max-width: 44rem;
  border-radius: 1rem;
  overflow: hidden;
  animation: site-notification-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.site-notification.site-notification--out {
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
  pointer-events: none;
}

@keyframes site-notification-in {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-notification__banner-wrap {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.site-notification__banner {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.site-notification__body {
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
}

.site-notification__body--with-banner {
  border-top: none;
}

.site-notification__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.site-notification__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}

.site-notification__title {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.site-notification__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.site-notification__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.site-notification__content {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-top: 0.5rem;
  margin-left: 3.25rem;
  color: #475569;
}

.site-notification__body--with-banner .site-notification__content {
  margin-left: 0;
}

.site-notification__content p:last-child {
  margin-bottom: 0;
}

.site-notification__content a {
  color: var(--dpa-blue-accent, #2563eb);
  text-decoration: underline;
}

/* Info */
.site-notification--info {
  border-left: 4px solid #0ea5e9;
}
.site-notification--info .site-notification__body {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.site-notification--info .site-notification__icon {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}
.site-notification--info .site-notification__title {
  color: #0369a1;
}

/* Success */
.site-notification--success {
  border-left: 4px solid #22c55e;
}
.site-notification--success .site-notification__body {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.site-notification--success .site-notification__icon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}
.site-notification--success .site-notification__title {
  color: #15803d;
}

/* Warning */
.site-notification--warning {
  border-left: 4px solid #eab308;
}
.site-notification--warning .site-notification__body {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}
.site-notification--warning .site-notification__icon {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}
.site-notification--warning .site-notification__title {
  color: #a16207;
}

/* Error */
.site-notification--error {
  border-left: 4px solid #ef4444;
}
.site-notification--error .site-notification__body {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.site-notification--error .site-notification__icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.site-notification--error .site-notification__title {
  color: #b91c1c;
}

/* Promotion */
.site-notification--promotion {
  border-left: 4px solid #8b5cf6;
}
.site-notification--promotion .site-notification__body {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}
.site-notification--promotion .site-notification__icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}
.site-notification--promotion .site-notification__title {
  color: #6d28d9;
}

/* System */
.site-notification--system {
  border-left: 4px solid #64748b;
}
.site-notification--system .site-notification__body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.site-notification--system .site-notification__icon {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.4);
}
.site-notification--system .site-notification__title {
  color: #475569;
}
