/* ========== УВЕДОМЛЕНИЯ ==========
   Оверлей/окно — тот же паттерн, что и у остальных фичевых оверлеев (см.
   faq_styles.css). Внутри — лента карточек, а не аккордеон. */

#notificationsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

#notificationsWindow {
  background: white;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

#notificationsContent {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.push-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #555;
}

.push-toggle-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.push-toggle-btn.push-toggle-on {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f8fc;
}

.notif-item.notif-unread {
  background: #eef1ff;
  box-shadow: inset 3px 0 0 #667eea;
}

.notif-item.notif-clickable {
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item.notif-clickable:hover {
  background: #e4e8fb;
}

.notif-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.notif-body {
  min-width: 0; /* иначе длинный текст без пробелов растягивает карточку за пределы окна */
}

.notif-heading {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.notif-snippet {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

/* Бейдж непрочитанных на кнопке в #topBar — та же кнопка, что #notificationsBtn */
#notificationsBtn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

#soundToggleBtn.sound-off {
  opacity: 0.55;
}
