/* Central de notificações: é carregada separadamente para não alterar os componentes já existentes. */
.site-notification-anchor {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.site-notification-bell {
  display: inline-grid;
  width: 37px;
  height: 37px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(207, 255, 196, .24);
  border-radius: 50%;
  color: #dff8dc;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.site-notification-bell:hover,
.site-notification-bell[aria-expanded="true"] {
  border-color: var(--green, #63ff18);
  color: #071006;
  background: var(--green, #63ff18);
  transform: translateY(-1px);
}

.site-notification-bell:focus-visible,
.site-notification-mark-all:focus-visible,
.site-notification-item:focus-visible {
  outline: 2px solid var(--green, #63ff18);
  outline-offset: 3px;
}

.site-notification-bell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-notification-badge {
  position: absolute;
  z-index: 2;
  top: -5px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #0a170b;
  border-radius: 999px;
  color: #071006;
  background: var(--green, #63ff18);
  box-shadow: 0 0 0 3px rgba(99, 255, 24, .12);
  font: 800 8px/13px Manrope, sans-serif;
  letter-spacing: .02em;
  text-align: center;
}

.site-notification-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 13px);
  right: 0;
  width: min(372px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(207, 255, 196, .27);
  border-radius: 19px 19px 8px 19px;
  color: #eff8ef;
  background:
    radial-gradient(circle at 90% 0, rgba(99, 255, 24, .17), transparent 38%),
    rgba(7, 20, 8, .98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.site-notification-panel[hidden] { display: none; }

.site-notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 17px 14px;
  border-bottom: 1px solid rgba(207, 255, 196, .15);
}

.site-notification-heading {
  display: grid;
  gap: 3px;
}

.site-notification-kicker {
  color: var(--green, #63ff18);
  font: 800 8px/1.1 Manrope, sans-serif;
  letter-spacing: .14em;
}

.site-notification-heading h2 {
  margin: 0;
  color: #f4faf4;
  font: 800 25px/.8 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .01em;
}

.site-notification-mark-all {
  flex: 0 0 auto;
  padding: 7px 0;
  border: 0;
  color: #bdf5a9;
  background: transparent;
  cursor: pointer;
  font: 800 8px/1.15 Manrope, sans-serif;
  letter-spacing: .11em;
}

.site-notification-mark-all:hover { color: var(--green, #63ff18); }

.site-notification-list {
  display: grid;
  max-height: min(443px, calc(100vh - 170px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-notification-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid rgba(207, 255, 196, .1);
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background .18s ease;
}

.site-notification-item:hover { background: rgba(99, 255, 24, .075); }
.site-notification-item.is-unread { background: linear-gradient(90deg, rgba(99, 255, 24, .1), transparent 72%); }
.site-notification-item.is-read { opacity: .68; }

.site-notification-item-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  margin-top: 2px;
  border: 1px solid rgba(99, 255, 24, .42);
  border-radius: 10px;
  color: #071006;
  background: var(--green, #63ff18);
  font: 900 16px/1 Arial, sans-serif;
}

.site-notification-item-icon.type-new_follower {
  border-color: rgba(255, 116, 167, .55);
  color: #fff;
  background: #dc477d;
}

.site-notification-item-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.site-notification-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #98bf9a;
  font: 800 7px/1.2 Manrope, sans-serif;
  letter-spacing: .1em;
}

.site-notification-item.is-unread .site-notification-item-meta b { color: var(--green, #63ff18); }

.site-notification-item-meta time {
  flex: 0 0 auto;
  color: #78967b;
  font-size: 7px;
  letter-spacing: .05em;
}

.site-notification-item-copy strong {
  overflow: hidden;
  color: #f4faf4;
  font: 800 12px/1.2 Manrope, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-notification-item-body {
  display: -webkit-box;
  overflow: hidden;
  color: #b9cbb9;
  font: 500 10px/1.45 Manrope, sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-notification-item-link {
  margin-top: 2px;
  color: var(--green, #63ff18);
  font: 800 8px/1.2 Manrope, sans-serif;
  letter-spacing: .09em;
}

.site-notification-empty {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-height: 139px;
  padding: 25px 17px;
  color: #a8c2a9;
}

.site-notification-empty[hidden] { display: none; }
.site-notification-empty b { color: var(--green, #63ff18); font: 800 18px/.9 "Barlow Condensed", Impact, sans-serif; letter-spacing: .04em; }
.site-notification-empty span { max-width: 285px; font: 500 10px/1.6 Manrope, sans-serif; }

html[data-color-mode="light"] .site-notification-bell {
  border-color: rgba(21, 87, 32, .25);
  color: #235f2c;
  background: rgba(255, 255, 255, .84);
}

html[data-color-mode="light"] .site-notification-badge { border-color: #edf4ee; }
html[data-color-mode="light"] .site-notification-panel { border-color: rgba(20, 82, 30, .23); color: #17331c; background: radial-gradient(circle at 90% 0, rgba(99, 255, 24, .16), transparent 39%), #fbfffb; box-shadow: 0 22px 50px rgba(24, 74, 31, .18); }
html[data-color-mode="light"] .site-notification-heading h2,
html[data-color-mode="light"] .site-notification-item-copy strong { color: #15331a; }
html[data-color-mode="light"] .site-notification-panel-head,
html[data-color-mode="light"] .site-notification-item { border-color: rgba(21, 87, 32, .13); }
html[data-color-mode="light"] .site-notification-item:hover { background: rgba(59, 174, 58, .1); }
html[data-color-mode="light"] .site-notification-item.is-unread { background: linear-gradient(90deg, rgba(99, 255, 24, .18), transparent 72%); }
html[data-color-mode="light"] .site-notification-item-body,
html[data-color-mode="light"] .site-notification-empty { color: #537257; }
html[data-color-mode="light"] .site-notification-item-meta { color: #54765a; }
html[data-color-mode="light"] .site-notification-item-meta time { color: #759778; }

@media (max-width: 560px) {
  .site-notification-bell { width: 34px; height: 34px; }
  .site-notification-panel { position: fixed; top: 81px; right: 12px; width: min(372px, calc(100vw - 24px)); }
  .site-notification-list { max-height: min(432px, calc(100vh - 158px)); }
  .site-notification-panel-head { padding: 15px; }
}
