/*
  CUBE — Notification bell + dropdown
  New feature, standalone file, linked on every page.
*/

.top-navbar {
  position: relative;
  z-index: 250;
}

.notif-bell-wrap {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft, #f2e9e9);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notif-bell-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e31136;
  border: 2px solid rgba(15, 10, 10, 0.9);
}

.notif-dropdown {
  display: none;
  width: 340px;
  max-width: 90vw;
  background: #000000 !important;
  background-color: #000000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 999999 !important;
}

.notif-dropdown.open {
  display: block;
  animation: notifFadeIn 0.18s ease;
}

@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
  padding: 16px 18px;
  font-weight: 800;
  font-size: 14.5px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(227, 17, 54, 0.1);
}

.notif-item.unread {
  background: rgba(227, 17, 54, 0.06);
}

.notif-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notif-item p {
  font-size: 13px;
  color: #f2e9e9;
  line-height: 1.5;
  margin-bottom: 4px;
}

.notif-item span {
  font-size: 11.5px;
  color: rgba(242, 233, 233, 0.5);
}

.notif-empty {
  padding: 30px 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(242, 233, 233, 0.5);
}

@media (max-width: 480px) {
  .notif-dropdown {
    position: fixed;
    top: 64px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/*
  CUBE — Message icon, sits right beside the notification bell.
  Additive only: mirrors .notif-bell-btn exactly so it reads as part
  of the same navbar cluster, never as a foreign component.
*/

.navbar-msg-link {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft, #f2e9e9);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-msg-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-soft, #f2e9e9);
}

.msg-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e31136;
  border: 2px solid rgba(15, 10, 10, 0.9);
}
