/* What's New bell + weekly panel (issue #1658). Mirrors the profile menu's
   header-button + anchored-dropdown styling so it feels native to the header. */

#whats-new-wrap {
  position: relative;
  z-index: 221;
  display: inline-flex;
  align-items: center;
}

body.auth-guest #whats-new-wrap {
  display: none !important;
}

#btn-whats-new {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--clr-shadow);
  padding: 0;
  cursor: pointer;
}

#btn-whats-new:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.whats-new-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.whats-new-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Unread indicator: a small accent dot on the bell. */
.whats-new-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--clr-primary-fill);
  border: 2px solid var(--clr-surface);
}

#whats-new-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 360px;
  max-width: min(92vw, 360px);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-surface);
  box-shadow: var(--clr-shadow);
  overflow: hidden;
}

.whats-new-title {
  padding: 0.7rem 0.85rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text);
}

.whats-new-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.6rem 0.55rem;
  border-bottom: 1px solid var(--clr-border);
}

.whats-new-heading {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.whats-new-range {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
}

.whats-new-pager {
  font-size: 0.72rem;
  color: var(--clr-muted);
  margin-top: 0.1rem;
}

.whats-new-nav {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whats-new-nav:hover:not(:disabled) {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.whats-new-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.whats-new-body {
  padding: 0.6rem 0.85rem 0.85rem;
  overflow-y: auto;
}

.whats-new-item + .whats-new-item {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--clr-border);
}

.whats-new-item-title {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-text);
}

.whats-new-item-points {
  margin: 0;
  padding-left: 1.05rem;
}

.whats-new-item-points li {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--clr-muted);
  margin-top: 0.2rem;
}

.whats-new-empty {
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin: 0;
}
