/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS — Bell + Dropdown
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Bell button ─────────────────────────────────────────────────────────── */
.notif-bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#notif-bell-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
#notif-bell-btn:hover { background: var(--bg-hover); color: var(--text); }

#notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: var(--danger, #e05c5c);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
  animation: badge-pop 0.2s ease-out;
}
@keyframes badge-pop {
  0%   { transform: scale(0.5); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Dropdown ────────────────────────────────────────────────────────────── */
.notif-dropdown {
  position: fixed;
  z-index: 9100;
  width: 340px;
  max-height: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notif-drop-in 0.15s ease-out;
}
@keyframes notif-drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.notif-clear-all {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.notif-clear-all:hover { background: var(--bg-hover); color: var(--text); }

/* ── List ────────────────────────────────────────────────────────────────── */
.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-empty {
  padding: 36px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Item ────────────────────────────────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover      { background: var(--bg-hover); }

.notif-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  width: 22px;
  text-align: center;
}
.notif-body  { flex: 1; min-width: 0; }
.notif-message {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}
.notif-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

.notif-dismiss {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
  margin-top: 1px;
}
.notif-item:hover .notif-dismiss { opacity: 1; }
.notif-dismiss:hover { background: var(--bg-secondary); color: var(--text); }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .notif-dropdown {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}
