/* Notifications & Bottom-Nav Enhancements (Mobile first) */

body.has-fog {
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.28), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(236,72,153,0.22), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(45,212,191,0.26), transparent 60%),
    #020617;
  color: #e5e7eb;
  min-height: 100vh;
}

/* Platz für Bottom-Nav + Floating Back Button */
@media (max-width: 768px) {
  .wrap {
    padding-bottom: 90px;
  }
}

/* Floating Back Button – 1px über Bottom-Menü */
@media (max-width: 768px) {
  .back-button {
    position: fixed;
    right: 1rem;
    bottom: calc(60px + 1px); /* 1px über Bottom-Menü (60px ~ Nav-Höhe) */
    z-index: 9999;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    font-size: 14px;
    box-shadow:
      0 0 10px rgba(239,68,68,0.7),
      0 0 20px rgba(239,68,68,0.4);
    border: none;
  }
}



/* Badge für ungelesene Notifications */
.mobile-nav-bar .nav-item[data-nav="notifications"] {
  position: relative;
}

.mobile-nav-bar .nav-item[data-nav="notifications"].has-unread::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -2px;
  min-width: 18px;
  padding: 0 4px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  background: radial-gradient(circle at 0 0, #f97316, #ea580c);
  color: #fff;
  box-shadow:
    0 0 12px rgba(249,115,22,0.8),
    0 0 24px rgba(234,88,12,0.5);
  border: 1px solid rgba(249,115,22,0.9);
  animation: notifPulse 1.6s ease-out infinite;
}

@keyframes notifPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  60% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Notification Panel – Goa/Techno Style */
.sn-notification-panel {
  position: fixed;
  right: 0.75rem;
  bottom: 70px;
  width: min(360px, 95vw);
  max-height: 65vh;
  background: radial-gradient(circle at 0 0, rgba(15,118,110,0.25), rgba(15,23,42,0.98));
  border-radius: 18px;
  box-shadow:
    0 0 24px rgba(56,189,248,0.45),
    0 0 60px rgba(129,140,248,0.35);
  border: 1px solid rgba(129,140,248,0.45);
  color: #e5e7eb;
  backdrop-filter: blur(12px);
  transform: translate3d(0, 12px, 0) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
  z-index: 9998;
  display: flex;
  flex-direction: column;
}

.sn-notification-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.sn-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.sn-notif-title {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.sn-notif-close {
  border: none;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.sn-notif-body {
  padding: 0.35rem 0.25rem 0.35rem 0.25rem;
  overflow-y: auto;
}

.sn-notif-empty {
  padding: 0.9rem 0.9rem 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.sn-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sn-notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(15,23,42,0.85);
  box-shadow: 0 0 0 1px rgba(75,85,99,0.45);
  margin: 0.25rem 0.35rem;
}

.sn-notif-main {
  flex: 1;
  min-width: 0;
}

.sn-notif-text {
  font-size: 0.82rem;
  line-height: 1.25;
}

.sn-notif-actor {
  color: #a5b4fc;
  font-weight: 600;
  margin-right: 0.25rem;
}

.sn-notif-label {
  color: #e5e7eb;
}

.sn-notif-meta {
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: #9ca3af;
}

.sn-notif-delete {
  border: none;
  background: rgba(15,23,42,0.9);
  color: #fda4af;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.sn-notif-footer {
  padding: 0.4rem 0.75rem 0.65rem;
  border-top: 1px solid rgba(148,163,184,0.3);
  display: flex;
  justify-content: flex-end;
}

.sn-notif-clear-all {
  border-radius: 999px;
  border: 1px solid rgba(248,113,113,0.85);
  background: rgba(127,29,29,0.9);
  color: #fee2e2;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
}
