/* ============================================================
   Loxxee — Notification System  (notify.css)
   Einbinden: <link rel="stylesheet" href="assets/css/notify.css">
   Kein weiteres CSS nötig. Funktioniert standalone.
   ============================================================ */

/* ── Container: stapelt Toasts von unten nach oben ────────── */
#dz-notify-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse; /* neueste unten */
  gap: 10px;
  pointer-events: none;           /* Container selbst nicht klickbar */
}

/* ── Einzelne Notification ───────────────────────────────── */
.dz-toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  background: #111114;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 13px 14px 0 14px;     /* unten 0 → Platz für Progressbar */
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
  position: relative;

  /* Slide-in von rechts */
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1),
              opacity   0.25s ease;
}

/* Sichtbar-State (per JS gesetzt) */
.dz-toast.dz-show {
  transform: translateX(0);
  opacity: 1;
}

/* Raus-Animation */
.dz-toast.dz-hide {
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.28s ease-in,
              opacity   0.22s ease-in;
}

/* ── Icon ─────────────────────────────────────────────────── */
.dz-toast-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── Text-Bereich ─────────────────────────────────────────── */
.dz-toast-body {
  flex: 1;
  padding-bottom: 13px; /* Abstand über Progressbar */
}

.dz-toast-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.dz-toast-msg {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* ── Close-Button ─────────────────────────────────────────── */
.dz-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  line-height: 1;
  padding: 0 0 10px 0;
  flex-shrink: 0;
  transition: color 0.15s;
  margin-top: -1px;
}
.dz-toast-close:hover { color: rgba(255,255,255,0.8); }

/* ── Progress-Bar ─────────────────────────────────────────── */
.dz-toast-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  border-radius: 0 0 10px 10px;
  /* Breite wird per JS-Animation (schrumpft von 100% → 0%) */
  transition: transform linear; /* Dauer per JS gesetzt */
}

/* ── Farb-Varianten ──────────────────────────────────────── */

/* Gold (default) */
.dz-toast.t-gold { border-color: rgba(77,200,255,0.25); }
.dz-toast.t-gold .dz-toast-title { color: #4DC8FF; }
.dz-toast.t-gold .dz-toast-bar   { background: #4DC8FF; }

/* Green */
.dz-toast.t-green { border-color: rgba(72,214,138,0.25); }
.dz-toast.t-green .dz-toast-title { color: #48D68A; }
.dz-toast.t-green .dz-toast-bar   { background: #48D68A; }

/* Red */
.dz-toast.t-red { border-color: rgba(224,80,80,0.25); }
.dz-toast.t-red .dz-toast-title { color: #e05050; }
.dz-toast.t-red .dz-toast-bar   { background: #e05050; }

/* Ice / Blue */
.dz-toast.t-ice { border-color: rgba(93,213,255,0.25); }
.dz-toast.t-ice .dz-toast-title { color: #5DD5FF; }
.dz-toast.t-ice .dz-toast-bar   { background: #5DD5FF; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 500px) {
  #dz-notify-container { right: 12px; left: 12px; bottom: 12px; }
  .dz-toast { min-width: 0; max-width: 100%; }
}
