/* ══════════════════════════════
   NOTIFICATIONS
   ══════════════════════════════ */

/* ── Overlay ── */
.notif-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 99999 !important;
}

.notif-overlay.active {
  opacity: 1;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Bell Button ── */
.header-notif-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.header-notif-btn:hover {
  color: var(--text);
  background: rgba(var(--white-rgb), 0.06);
}

.header-notif-btn i {
  font-size: 18px;
}

/* ── Badge ── */
.header-notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── Modal ── */
.notif-modal {
  position: fixed;
  width: 360px;
  max-height: 420px;
  border-radius: 12px;
  border: 1px solid rgba(var(--white-rgb), 0.08);
  background: var(--bg2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 100000 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  top: 85px !important;
  right: 100.156px !important;
}

.notif-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(var(--white-rgb), 0.06);
}

.notif-modal__header h3 {
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.notif-modal__mark-read {
  background: none;
  border: none;
  color: var(--accent);
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.notif-modal__mark-read:hover {
  opacity: 0.8;
}

/* ── List ── */
.notif-modal__list {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
}

.notif-modal__list::-webkit-scrollbar {
  width: 4px;
}

.notif-modal__list::-webkit-scrollbar-thumb {
  background: rgba(var(--white-rgb), 0.1);
  border-radius: 4px;
}

/* ── Empty State ── */
.notif-modal__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim);
}

.notif-modal__empty i {
  font-size: 28px;
  opacity: 0.3;
  margin-bottom: 8px;
  display: block;
}

.notif-modal__empty p {
  font-size: 13px;
  margin: 0;
}

/* ── Single Notification ── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(var(--white-rgb), 0.04);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
}

.notif-item:hover {
  background: rgba(var(--white-rgb), 0.04);
}

.notif-item--unread {
  background: rgba(var(--accent-rgb), 0.04);
}

.notif-item--unread::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.notif-item__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  text-transform: uppercase;
}

.notif-item__avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-item__body {
  flex: 1;
  min-width: 0;
}

.notif-item__message {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item__time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  display: block;
}

.notif-item__delete {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
}

.notif-item:hover .notif-item__delete {
  opacity: 1;
}

.notif-item__delete:hover {
  color: var(--danger);
}

/* ══════════════════════════════
   MOBILE
   ══════════════════════════════ */
@media (max-width: 768px) {
  .notif-modal {
    top: auto !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 14px 14px 0 0;
  }
}
