/* Блок ig-ntf: колокольчик шапки и выпадающая панель уведомлений (проектный документ §3, 06.10.2026) */

.ig-ntf {
  position: relative;
}

.ig-ntf__panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 14;
  width: 380px;
  max-height: min(560px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  background: var(--surface-0);
  border: 1px solid var(--border-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
  overflow: hidden;
}

.ig-ntf__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-200);
}

.ig-ntf__title {
  font-size: 15px;
  font-weight: 600;
}

.ig-ntf__action {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-600);
  cursor: pointer;
}

.ig-ntf__action:hover {
  color: var(--brand-700);
}

.ig-ntf__list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.ig-ntf__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border-200);
  color: var(--ink-900);
  text-decoration: none;
}

.ig-ntf__item:hover {
  background: var(--surface-100);
  color: var(--ink-900);
}

.ig-ntf__item--unread {
  background: var(--brand-50);
  box-shadow: inset 3px 0 0 var(--brand-600);
}

.ig-ntf__item--urgent {
  background: var(--danger-50);
  box-shadow: inset 3px 0 0 var(--danger-600);
}

.ig-ntf__item--urgent:hover {
  background: var(--danger-50);
}

.ig-ntf__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 18px;
}

.ig-ntf__item--urgent .ig-ntf__name {
  color: var(--danger-600);
}

.ig-ntf__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-900);
}

.ig-ntf__time {
  font-size: 12px;
  color: var(--ink-600);
}

.ig-ntf__empty {
  padding: var(--space-6) var(--space-4);
  font-size: 13px;
  color: var(--ink-600);
  text-align: center;
}

.ig-ntf__foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-4);
  font-size: 13px;
  font-weight: 500;
}
