/* ================================================================
   Notifications bell + dropdown — notifications.css
   ================================================================ */

/* ── Bell button ──────────────────────────────────────────────────────────── */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color .18s, background .18s, border-color .18s;
}

.notif-bell-btn svg { width: 17px; height: 17px; }

.notif-bell-btn:hover {
  color: var(--ink);
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.notif-bell-btn.has-unread {
  color: var(--blue);
  border-color: rgba(10, 132, 255, .35);
  background: rgba(10, 132, 255, .08);
}

/* ── Badge ────────────────────────────────────────────────────────────────── */
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #ff3b30;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  border-radius: 100px;
  border: 2px solid var(--bg);
  box-sizing: border-box;
}

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, .35);
  z-index: 500;
  overflow: hidden;
  animation: notif-drop-in .18s cubic-bezier(.2,.7,.2,1);
}

@keyframes notif-drop-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.notif-dropdown[hidden] { display: none; }

/* Head */
.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--glass-border);
}

.notif-dropdown-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
}

.notif-mark-all {
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity .18s;
}

.notif-mark-all:hover { opacity: .7; }

/* List */
.notif-list {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.notif-empty,
.notif-loading {
  padding: 28px 16px;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-mute);
}

/* Notification item */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
  position: relative;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--glass-bg); }

.notif-item--unread { background: rgba(10, 132, 255, .04); }
.notif-item--unread:hover { background: rgba(10, 132, 255, .08); }

/* Unread dot */
.notif-item--unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.notif-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 132, 255, .25);
}

.notif-icon svg { width: 15px; height: 15px; }

.notif-body { flex: 1; min-width: 0; }

.notif-text {
  font-size: .8rem;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 3px;
}

.notif-text strong { font-weight: 700; }

.notif-preview {
  font-size: .74rem;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 3px;
}

.notif-time {
  font-size: .68rem;
  color: var(--ink-mute);
}

/* ── Popup footer: See all link ───────────────────────────────────────────── */
.notif-see-all {
  display: block;
  text-align: center;
  padding: 11px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-top: 1px solid var(--glass-border);
  transition: background .15s;
}
.notif-see-all:hover { background: var(--glass-bg); }

/* ================================================================
   My Activity page — act-* components
   ================================================================ */

.act-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ── Tab bar ──────────────────────────────────────────────────────────────── */
.act-tabs {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.act-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.act-tab:hover { background: var(--glass-bg-soft); color: var(--ink); }

.act-tab--active {
  background: var(--glass-bg-soft);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.act-count {
  font-size: .7rem;
  font-weight: 700;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 1px 7px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.act-tab--active .act-count { color: var(--ink-soft); }

.act-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  flex-shrink: 0;
}

/* ── Panels ───────────────────────────────────────────────────────────────── */
.act-panel { display: none; }
.act-panel--active { display: block; }

/* ── Filter row ───────────────────────────────────────────────────────────── */
.act-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.act-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: none;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.act-filter-btn:hover { background: var(--glass-bg-soft); color: var(--ink); }

.act-filter-btn--active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.act-filter-btn--active:hover { opacity: .88; }

.act-filter-count {
  font-size: .68rem;
  opacity: .75;
}

/* ── Show more button ─────────────────────────────────────────────────────── */
.act-load-more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--glass-border);
  background: none;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.act-load-more:hover { background: var(--glass-bg-soft); color: var(--ink); }
.act-load-more:disabled { opacity: .5; cursor: default; }

/* ── Notifications tab head ───────────────────────────────────────────────── */
.act-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.act-notif-unread {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.act-mark-all-read {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity .15s;
}
.act-mark-all-read:hover { opacity: .7; }

/* ── Notifications list in activity page ──────────────────────────────────── */
.act-notif-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
}

.act-notif-list .notif-item { border-bottom: 1px solid var(--glass-border); }
.act-notif-list .notif-item:last-child { border-bottom: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .notif-dropdown { width: calc(100vw - 24px); right: -8px; }
  .act-tab { font-size: .75rem; padding: 8px 8px; }
}
