/* =============================================
   GLOBAL NOTIFY MODULE – La Vida Almhütte
   Premium Cream-Glass Design
   ============================================= */

#notify-container {
  position: fixed;
  top: calc(var(--header-height, 72px) + 18px);
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 380px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

/* ── Base Toast ──────────────────────────────── */
.notify-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(198, 160, 82, 0.25);
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  color: var(--color-text, #3D2B1F);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  line-height: 1.55;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.32s ease;
}

/* Left accent bar */
.notify-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
  background: var(--notify-accent, var(--color-gold, #C6A052));
}

/* Subtle top shimmer */
.notify-toast::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 160, 82, 0.35), transparent);
}

.notify-toast.notify-visible {
  transform: translateX(0);
  opacity: 1;
}

.notify-toast.notify-hiding {
  transform: translateX(calc(100% + 30px));
  opacity: 0;
}

/* ── Type-specific styling ───────────────────── */
.notify-success {
  border-color: rgba(76, 155, 105, 0.25);
  box-shadow:
    0 8px 32px rgba(76, 155, 105, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
.notify-info {
  border-color: rgba(198, 160, 82, 0.30);
  box-shadow:
    0 8px 32px rgba(198, 160, 82, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
.notify-warning {
  border-color: rgba(210, 145, 35, 0.25);
  box-shadow:
    0 8px 32px rgba(210, 145, 35, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
.notify-error {
  border-color: rgba(180, 55, 55, 0.22);
  box-shadow:
    0 8px 32px rgba(180, 55, 55, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
.notify-upgrade {
  border-color: rgba(110, 31, 38, 0.22);
  box-shadow:
    0 8px 32px rgba(110, 31, 38, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
.notify-exclusive {
  border-color: rgba(198, 160, 82, 0.35);
  box-shadow:
    0 8px 32px rgba(198, 160, 82, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Accent bar per type */
.notify-success::before { background: #4c9b69; }
.notify-info::before    { background: var(--color-gold, #C6A052); }
.notify-warning::before { background: #d29123; }
.notify-error::before   { background: #b43737; }
.notify-upgrade::before { background: var(--color-primary, #6e1f26); }
.notify-exclusive::before { background: var(--color-gold, #C6A052); }

/* ── Icon ────────────────────────────────────── */
.notify-icon {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.notify-toast:hover .notify-icon {
  transform: scale(1.05);
}

.notify-success .notify-icon  { background: rgba(76, 155, 105, 0.12); color: #3d8a5a; }
.notify-info .notify-icon     { background: rgba(198, 160, 82, 0.12); color: #b8923c; }
.notify-warning .notify-icon  { background: rgba(210, 145, 35, 0.12); color: #b8780a; }
.notify-error .notify-icon    { background: rgba(180, 55, 55, 0.12); color: #a33030; }
.notify-upgrade .notify-icon  { background: rgba(110, 31, 38, 0.12); color: var(--color-primary, #6e1f26); }
.notify-exclusive .notify-icon { background: rgba(198, 160, 82, 0.15); color: #a07d2e; }

/* ── Body ────────────────────────────────────── */
.notify-body {
  flex: 1;
  min-width: 0;
}

.notify-title {
  font-family: var(--font-vintage, 'Cinzel', serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.notify-success .notify-title  { color: #3d8a5a; }
.notify-info .notify-title     { color: #a07d2e; }
.notify-warning .notify-title  { color: #9a6d0a; }
.notify-error .notify-title    { color: #a33030; }
.notify-upgrade .notify-title  { color: var(--color-primary, #6e1f26); }
.notify-exclusive .notify-title { color: #a07d2e; }

.notify-msg {
  font-size: 0.9rem;
  color: var(--color-text, #3D2B1F);
  margin: 0;
  line-height: 1.55;
}

.notify-msg strong {
  color: var(--color-text, #3D2B1F);
  font-weight: 600;
}

.notify-msg em {
  color: var(--color-primary, #6E1F26);
  font-style: normal;
  font-weight: 500;
}

/* ── Actions ─────────────────────────────────── */
.notify-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.notify-action {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 9px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
}

.notify-action-primary {
  background: linear-gradient(135deg, #C6A052, #a8853a);
  color: #fff;
  border: 1px solid rgba(198, 160, 82, 0.5);
  box-shadow:
    0 4px 14px rgba(198, 160, 82, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.notify-action-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d4b56e, #b8923c);
  box-shadow:
    0 6px 20px rgba(198, 160, 82, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.notify-action-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(198, 160, 82, 0.2);
}

.notify-action-ghost {
  background: rgba(61, 43, 31, 0.06);
  color: var(--color-text-light, #6B5B4F);
  border-color: rgba(61, 43, 31, 0.12);
}

.notify-action-ghost:hover {
  background: rgba(61, 43, 31, 0.10);
  color: var(--color-text, #3D2B1F);
  border-color: rgba(61, 43, 31, 0.18);
}

/* ── Close ───────────────────────────────────── */
.notify-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(61, 43, 31, 0.06);
  border: none;
  border-radius: 8px;
  color: var(--color-text-light, #6B5B4F);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.notify-close:hover {
  background: rgba(61, 43, 31, 0.12);
  color: var(--color-text, #3D2B1F);
  transform: scale(1.05);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  #notify-container {
    right: 10px;
    left: 10px;
    width: auto;
    top: calc(var(--header-height, 72px) + 10px);
  }

  .notify-toast {
    padding: 16px 16px 16px 16px;
    border-radius: 14px;
    gap: 12px;
  }

  .notify-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .notify-title {
    font-size: 0.62rem;
    letter-spacing: 1.6px;
  }

  .notify-msg {
    font-size: 0.85rem;
  }
}
