/* gopnik/static/css/nft_marketplace_v2_notifications.css
 *
 * Iteration 6 — Notification bell + dropdown inbox.
 * Namespace .mpv2n-* — additive.
 */

:root {
  --mpv2n-accent: var(--mpv2-accent, #ff8c42);
  --mpv2n-bg:     var(--mpv2-bg, #0b0f17);
  --mpv2n-surf:   var(--mpv2-surface, #14181f);
  --mpv2n-border: var(--mpv2-border, rgba(255,255,255,0.08));
  --mpv2n-text:   var(--mpv2-text, #f6f8fb);
  --mpv2n-dim:    var(--mpv2-text-dim, #a6afbd);
  --mpv2n-unread: rgba(255, 140, 66, 0.12);
}

/* ── Shared nav right cluster ──────────────────────────────── */
/* Page templates that mount the bell wrap the bell + wallet chip
   in .mpv2-nav-right so they sit in a single flex row.  Defined
   here so every page that links the notifications CSS picks it up. */
.mpv2-nav-right { display: flex; align-items: center; gap: 14px; }
.mpv2n-slot { position: relative; }

/* ── Bell button ───────────────────────────────────────────── */
.mpv2n-bell {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: var(--mpv2n-text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 120ms ease, border-color 120ms ease;
}
.mpv2n-bell:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--mpv2n-border);
}
.mpv2n-bell[aria-expanded="true"] {
  background: rgba(255, 140, 66, 0.08);
  border-color: var(--mpv2n-accent);
}

.mpv2n-bell-icon { font-size: 16px; line-height: 1; }

.mpv2n-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mpv2n-accent);
  color: var(--mpv2n-bg);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--mpv2n-bg);
  animation: mpv2n-pop 240ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes mpv2n-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Panel ─────────────────────────────────────────────────── */
.mpv2n-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--mpv2n-surf);
  border: 1px solid var(--mpv2n-border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  z-index: 80;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  animation: mpv2n-panel-in 160ms ease both;
}
@keyframes mpv2n-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mpv2n-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--mpv2n-border);
}
.mpv2n-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--mpv2n-text);
  letter-spacing: 0.3px;
}
.mpv2n-mark-all {
  background: transparent;
  border: none;
  color: var(--mpv2n-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.mpv2n-mark-all:hover { background: rgba(255, 140, 66, 0.08); }

/* ── Rows ──────────────────────────────────────────────────── */
.mpv2n-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  flex: 1;
}
.mpv2n-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mpv2n-border);
  transition: background 120ms ease;
}
.mpv2n-row:hover { background: rgba(255, 255, 255, 0.02); }
.mpv2n-row.is-unread { background: var(--mpv2n-unread); }
.mpv2n-row.is-unread:hover { background: rgba(255, 140, 66, 0.16); }

.mpv2n-row-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  margin-top: 6px;
}
.mpv2n-row.is-unread .mpv2n-row-dot { background: var(--mpv2n-accent); }

.mpv2n-row-body { flex: 1; min-width: 0; }
.mpv2n-row-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--mpv2n-text);
  line-height: 1.3;
}
.mpv2n-row-body-text {
  margin: 2px 0 4px;
  font-size: 12px;
  color: var(--mpv2n-dim);
  font-family: var(--mpv2-mono, 'SF Mono', monospace);
  word-break: break-all;
  line-height: 1.4;
}
.mpv2n-row-when {
  font-size: 11px;
  color: var(--mpv2n-dim);
}

.mpv2n-row-mark {
  background: transparent;
  color: var(--mpv2n-dim);
  border: 1px solid var(--mpv2n-border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  flex: 0 0 auto;
}
.mpv2n-row-mark:hover { color: var(--mpv2n-accent); border-color: var(--mpv2n-accent); }

.mpv2n-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--mpv2n-dim);
  font-size: 13px;
}

.mpv2n-panel-foot {
  border-top: 1px solid var(--mpv2n-border);
  padding: 10px 18px;
  text-align: center;
}
.mpv2n-all-link {
  color: var(--mpv2n-accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.mpv2n-all-link:hover { text-decoration: underline; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mpv2n-panel {
    position: fixed;
    top: 60px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 72px);
  }
}
