/* ===== assets/notifications.css =====
   @menções + notificações em balão — cross-module, prefixo .ntf-*, reaproveita as
   variáveis de design já definidas em marketing.css (:root). Sem cor/fonte nova. */

#ntf-stack {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: 340px;
  pointer-events: none;
}

/* ---- sino persistente + coluna de histórico ---- */
.ntf-bell {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 210;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--green-900, #1c361d);
  color: #F6EFE7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
}
.ntf-bell:hover { background: #2b4d2c; }
.ntf-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral, #FF5A5F);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--off-white);
}

.ntf-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: transparent;
}

.ntf-panel {
  position: fixed;
  bottom: 76px;
  right: 20px;
  z-index: 210;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 480px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
}
.ntf-panel.open { display: flex; }

.ntf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: 'Fraunces', serif;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-card-title);
  color: var(--ink);
  text-transform: lowercase;
  flex-shrink: 0;
}
.ntf-panel-head-actions { display: flex; align-items: center; gap: 12px; }
.ntf-panel-markall {
  background: none;
  border: none;
  color: var(--teal-dark);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: var(--fs-btn-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.ntf-panel-markall:hover { text-decoration: underline; }

.ntf-panel-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ntf-panel-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-body);
}

.ntf-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
}
.ntf-panel-item:last-child { border-bottom: none; }
.ntf-panel-item:hover { background: var(--off-white); }
.ntf-panel-item.unread { background: rgba(0,168,150,0.05); }
.ntf-panel-item-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  color: var(--ink-soft);
  margin-top: 1px;
}
.ntf-panel-item-icon.ntf-balloon-mencao { color: var(--lavender); }
.ntf-panel-item-icon.ntf-balloon-atribuicao { color: var(--status-navy); }
.ntf-panel-item-icon.ntf-balloon-status { color: var(--green-ok); }
.ntf-panel-item-icon.ntf-balloon-prazo { color: var(--amber); }
.ntf-panel-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntf-panel-item-text { font-size: var(--fs-body); color: var(--ink); line-height: 1.4; }
.ntf-panel-item.unread .ntf-panel-item-text { font-weight: var(--fw-semibold); }
.ntf-panel-item-date { font-size: 10.5px; color: var(--ink-soft); }
.ntf-panel-item-del {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.12s ease;
  margin-top: 1px;
}
.ntf-panel-item:hover .ntf-panel-item-del { opacity: 1; }
.ntf-panel-item-del:hover { background: rgba(255,90,95,0.12); color: var(--coral-dark); }
.ntf-panel-item-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral, #FF5A5F);
  margin-top: 6px;
}

.ntf-balloon {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lavender);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 10px 8px 10px 12px;
  animation: ntf-in .25s var(--mkt-ease);
}
.ntf-balloon-mencao { border-left-color: var(--lavender); }
.ntf-balloon-atribuicao { border-left-color: var(--status-navy); }
.ntf-balloon-status { border-left-color: var(--green-ok); }
.ntf-balloon-prazo { border-left-color: var(--amber); }

@keyframes ntf-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ntf-balloon-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', -apple-system, sans-serif;
}
.ntf-balloon-icon {
  flex-shrink: 0;
  color: var(--ink-soft);
  margin-top: 1px;
}
.ntf-balloon-mencao .ntf-balloon-icon { color: var(--lavender); }
.ntf-balloon-atribuicao .ntf-balloon-icon { color: var(--status-navy); }
.ntf-balloon-status .ntf-balloon-icon { color: var(--green-ok); }
.ntf-balloon-prazo .ntf-balloon-icon { color: var(--amber); }

.ntf-balloon-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.ntf-balloon-x {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  display: flex;
}
.ntf-balloon-x:hover {
  background: var(--gray-soft);
  color: var(--ink);
}

/* ---- dropdown de @menção ---- */
.ntf-mention-list {
  position: fixed;
  display: none;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 300;
  padding: 4px;
}
.ntf-mention-list.open { display: flex; }

.ntf-mention-item {
  background: none;
  border: none;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  cursor: pointer;
}
.ntf-mention-item:hover {
  background: var(--beige-soft);
}
