/* ============================================================
   notification-dropdown.css — Bell icon + dropdown widget
   ============================================================ */

.nav-notification-widget {
  position: relative;
  display: inline-block;
  margin-right: 1.25rem;
}

.nav-notification-bell {
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-notification-bell:hover {
  background: var(--accent-muted);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-color);
  color: var(--bg-color);
  font-size: 0.72rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--shadow-color);
  border: 1.5px solid var(--bg-color);
}

.badge-pulse {
  animation: badge-pulse-anim 2s infinite;
}

@keyframes badge-pulse-anim {
  0%   { box-shadow: 0 0 0 0 var(--shadow-color); }
  70%  { box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--overlay-strong);
  display: none;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.notification-dropdown-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notification-dropdown-header .mark-all-read {
  font-size: 0.75rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.notification-dropdown-header .mark-all-read:hover {
  text-decoration: underline;
}

.notification-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
}

.notification-placeholder {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  opacity: 0.7;
}

.notification-dropdown-item {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--surface-1);
  display: flex;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notification-dropdown-item:hover {
  background: var(--accent-muted);
}

.notification-dropdown-item.unread {
  background: var(--accent-subtle);
  border-left: 2.5px solid var(--accent-color);
}

.notification-item-icon { font-size: 1.1rem; margin-top: 2px; }
.notification-item-content { flex: 1; }

.notification-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.notification-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.notification-item-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.5;
  font-family: monospace;
}

.notification-dropdown-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background: var(--accent-subtle);
}

.notification-dropdown-footer a {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.notification-dropdown-footer a:hover {
  text-decoration: underline;
}

/* ── Mobile fix ── */
@media (max-width: 640px) {
  .notification-dropdown {
    position: fixed;
    top: 68px;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
  }
  .notification-dropdown.active {
    transform: none;
  }
}

/* ── Scrollbar inside dropdown list ── */
.notification-dropdown-list::-webkit-scrollbar { width: 14px; }
.notification-dropdown-list::-webkit-scrollbar-track {
  background: var(--surface-1);
  border-radius: 8px;
  border: 1px solid var(--surface-2);
}
.notification-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.35);
  border-radius: 8px;
  border: 2px solid rgba(250, 204, 21, 0.1);
}
.notification-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 204, 21, 0.65);
}
