/* ─────────────────────────────────────────────
 * 알림 위젯 — 헤더 종 + 드롭다운 패널
 * ───────────────────────────────────────────── */

.notif-bell {
  position: relative;
  width: 38px;
  height: 38px;
  background: var(--gray-100);
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
  flex-shrink: 0;
}
.notif-bell:hover { background: var(--gray-200); color: var(--gray-700); }
.notif-bell .ic { display: inline-flex; align-items: center; justify-content: center; }
.notif-bell .ic svg { width: 18px; height: 18px; display: block; }

.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  font-variant-numeric: tabular-nums;
}

/* ── 드롭다운 패널 ─────────────────────────── */
.notif-panel {
  position: fixed;
  top: 64px;
  right: 16px;
  width: 380px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 80px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 24, 24, 0.18);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notifFade 0.12s ease;
}
@keyframes notifFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--gray-100);
}
.notif-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.notif-act-btn {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-700);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}
.notif-act-btn:hover { background: var(--gray-100); color: var(--primary); border-color: var(--primary-100); }

.notif-list {
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
}

.notif-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 600;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item:last-child { border-bottom: none; }

.notif-item.notif-unread {
  background: var(--primary-50);
}
.notif-item.notif-unread:hover {
  background: color-mix(in srgb, var(--primary-50) 70%, var(--primary-100));
}
.notif-item.notif-unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.notif-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 2px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-it-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2px;
  line-height: 1.35;
}
.notif-it-body {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  line-height: 1.45;
  margin-bottom: 4px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.notif-it-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}

.notif-it-del {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--gray-300);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  transition: all 0.15s;
}
.notif-item:hover .notif-it-del { border-color: var(--border); color: var(--gray-500); }
.notif-it-del:hover {
  background: var(--danger-50) !important;
  color: var(--danger) !important;
  border-color: var(--danger-100) !important;
}

.notif-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--gray-100);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-align: center;
}
