/* Страница уведомлений */
.notifications-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px;
  padding: 20px 44px 48px;
}

.notifications-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.notifications-header h1 {
  margin: 0 0 8px;
}

.notifications-header p {
  margin: 0;
  color: var(--text-muted);
}

.notifications-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Список карточек */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карточка отдельного уведомления */
.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.notification-card.is-read {
  opacity: 0.75;
}

.notification-icon {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--input-radius);
  background: var(--hover-bg);
  color: var(--accent);
}

.notification-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  margin: 0 0 7px;
  color: var(--text-color);
  font-size: var(--font-body);
  font-weight: var(--weight-heading);
}

.notification-comment {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: var(--font-body);
  line-height: var(--line-height-text);
}

.notification-date {
  color: var(--text-muted);
  font-size: var(--font-small);
}

.notification-action {
  flex: 0 0 auto;
}

.notification-read-label {
  color: var(--text-muted);
  font-size: var(--font-small);
}

/* Пустое состояние */
.notifications-empty {
  padding: 52px 24px;
  border: 1px dashed var(--border-color);
  border-radius: var(--card-radius);
  background: var(--surface);
  text-align: center;
}

.notifications-empty h2 {
  margin-bottom: 8px;
}

.notifications-empty p {
  margin: 0;
  color: var(--text-muted);
}

/* Атрибут hidden должен действительно скрывать элемент. */
.notifications-empty[hidden] {
  display: none;
}

/* Адаптация карточек под мобильные экраны */
@media (max-width: 700px) {
  /* Сохраняем комфортные отступы на мобильных экранах. */
  .notifications-page {
    padding: 24px 18px;
  }

  .notifications-header {
    flex-direction: column;
    gap: 18px;
  }

  .notifications-actions {
    width: 100%;
  }

  .notifications-actions .comp-btn {
    flex: 1;
  }

  .notification-card {
    flex-wrap: wrap;
    padding: 14px;
  }

  .notification-action {
    width: 100%;
    padding-left: 56px;
  }

  .notification-action .comp-btn {
    width: 100%;
  }
}

.notifications-page {
  display: flow-root;
}

/* Отступ между шапкой и уведомлениями */
.notifications-header.comp-page-header--sticky {
  padding-bottom: 0;
  margin-bottom: 28px;
}
