/* RU: Стили для системы уведомлений — иконка, дропдаун и полная страница. */
/* EN: Notification system styles — bell icon, dropdown, and full page. */

/* RU: Обёртка колокольчика для позиционирования дропдауна. */
/* EN: Bell wrapper for dropdown positioning. */
.notif-wrap {
  position: relative;
}

/* RU: Бейдж количества непрочитанных уведомлений. */
/* EN: Unread count badge. */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  background: #e05252;
  color: #fff;
  box-shadow: 0 2px 6px rgba(224, 82, 82, 0.4);
  pointer-events: none;
}

/* RU: Дропдаун уведомлений. */
/* EN: Notification dropdown. */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 420px;
  border-radius: 16px;
  background: var(--color-panel-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

.notif-dropdown.visible {
  display: flex;
}

.notif-dropdown-header {
  padding: 12px 16px 8px;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.notif-dropdown-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.notif-dropdown-footer {
  padding: 8px 16px 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.notif-mark-dropdown-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition:
    color var(--transition),
    background var(--transition);
}

.notif-mark-dropdown-btn:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.notif-mark-dropdown-btn[hidden] {
  display: none;
}

.notif-view-all {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.notif-view-all:hover {
  background: var(--color-accent-soft);
}

/* RU: Элемент уведомления (общий для дропдауна и полной страницы). */
/* EN: Notification item (shared for dropdown and full page). */
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-left: 3px solid transparent;
}

.notif-item:hover {
  background: rgba(255,255,255,0.03);
}

.notif-item.unread {
  background: rgba(103,185,181,0.04);
  border-left-color: var(--color-primary);
}

.notif-item.unread .notif-item-title {
  font-weight: 700;
}

.notif-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  background: var(--color-accent-soft);
}

.notif-item-icon.message {
  background: rgba(103,185,181,0.12);
}

.notif-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
}

.notif-item-text {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-time {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--color-muted);
  white-space: nowrap;
  padding-top: 1px;
}

/* RU: Пустое состояние дропдауна. */
  /* EN: Empty state for dropdown. */
  .notif-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-muted);
  }

  /* RU: Полная страница уведомлений — единая карточка. */
  /* EN: Full notifications page — single card. */
  .notif-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .notif-header {
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .notif-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 0;
  }

  .notif-full-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .notif-full-list .notif-item {
    padding: 12px 16px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition:
      background var(--transition),
      border-color var(--transition);
  }

  .notif-full-list .notif-item:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
  }

  .notif-full-list .notif-item.unread {
    background: rgba(103,185,181,.06);
    border-color: rgba(103,185,181,.25);
  }

  .notif-full-list .notif-item.unread:hover {
    background: rgba(103,185,181,.10);
    border-color: rgba(103,185,181,.35);
  }

  .notif-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px;
    border-top: 1px solid var(--color-border);
  }

  /* RU: Пустое состояние полной страницы уведомлений. */
  /* EN: Empty state for full notifications page. */
  .notif-full-empty {
    padding: 20px;
    color: var(--color-muted);
    text-align: left;
  }

  /* RU: Skeleton-заглушка списка уведомлений при первой загрузке. */
  /* EN: Notifications-list skeleton during initial load. */

.skeleton-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
}

.skeleton-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
}

.skeleton-line-title {
  height: 14px;
  width: 45%;
}

.skeleton-line-sub {
  height: 12px;
  width: 70%;
}
