/* Centre de notifications + préférences (tableau de bord) */
/* Même principe que Paramètres : header fixe, le contenu doit commencer sous l’en-tête. */

.notifications-center-clear-all {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #b91c1c;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.notifications-center-clear-all:active:not(:disabled) {
  background: rgba(220, 38, 38, 0.1);
}

.notifications-center-clear-all:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: #9ca3af;
  border-color: rgba(0, 0, 0, 0.08);
}

@media (hover: hover) {
  .notifications-center-clear-all:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.08);
  }
}

.notifications-center-screen .notifications-center-main {
  padding: calc(env(safe-area-inset-top, 0px) + 60px) 1rem 1.5rem;
  box-sizing: border-box;
}

.app-ios .notifications-center-screen .notifications-center-main {
  padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
}

.notifications-center-intro,
.notifications-prefs-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5563;
  margin: 0 0 1rem;
}

.notifications-prefs-desc--compact {
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: #6b7280;
}

.notifications-center-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notifications-center-empty {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.notifications-center-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.notifications-center-card[data-open-prefs-cache='1'] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.notifications-center-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.notifications-center-card-head-main {
  flex: 1;
  min-width: 0;
}

.notifications-center-card-delete {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #b91c1c;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.notifications-center-card-delete:active {
  background: rgba(220, 38, 38, 0.1);
}

@media (hover: hover) {
  .notifications-center-card-delete:hover {
    background: rgba(220, 38, 38, 0.07);
  }
}

.notifications-center-card-meta {
  font-size: 0.75rem;
  color: #c9a227;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.notifications-center-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #111827;
}

.notifications-center-card-body {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #374151;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notifications-prefs-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.notifications-prefs-h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.notifications-prefs-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.notifications-prefs-check-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.notifications-prefs-check-row--compact {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.85rem;
}

.notifications-prefs-btn-secondary {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: transparent;
  color: #c9a227;
  cursor: pointer;
  font-family: inherit;
}

.notifications-prefs-btn-secondary:active {
  background: rgba(201, 162, 39, 0.08);
}

/* Popover annonces : pied de carte + libellés */
.annonces-notif-popover-foot {
  padding: 10px 12px 12px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.annonces-notif-popover-link-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 4px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #c9a227;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
}

.annonces-notif-popover-kind {
  font-weight: 600;
  color: #c9a227;
}

.annonces-notif-popover-date {
  color: #9ca3af;
  font-weight: 400;
}

.chat-unread-popover-item.chat-unread-popover-more {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}
