/* ==========================================================================
   Binovax — User Notification Center (Glassmorphism & Real-time UI)
   ========================================================================== */

/* Bell Trigger Button */
.notif-bell-btn {
  position: relative;
  background: var(--bg3, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-primary, #ffffff);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.notif-bell-btn:hover {
  background: rgba(0, 149, 255, 0.12);
  border-color: rgba(0, 149, 255, 0.35);
  transform: translateY(-1px);
}

.notif-bell-btn:active {
  transform: scale(0.95);
}

/* Unread Badge Counter */
.notif-badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff0055, #ff2a6d);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 0, 85, 0.5);
  border: 2px solid var(--bg2, #0b0e14);
  animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(255, 0, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

/* ==========================================================================
   Desktop Notification Dropdown
   ========================================================================== */
.notif-panel-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 149, 255, 0.1);
  z-index: 2000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-panel-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.notif-panel-header {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-panel-title-icon {
  font-size: 18px;
}

.notif-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.2px;
}

.notif-mark-all-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #0095ff);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.notif-mark-all-btn:hover {
  background: rgba(0, 149, 255, 0.12);
  color: #38bdf8;
}

/* Notification List Body */
.notif-list-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 12px;
}

.notif-list-body::-webkit-scrollbar {
  width: 5px;
}
.notif-list-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Empty State */
.notif-empty-state {
  padding: 45px 20px;
  text-align: center;
}
.notif-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.notif-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin-bottom: 4px;
}
.notif-empty-sub {
  font-size: 12px;
  color: var(--text-secondary, #8b949e);
}

/* ==========================================================================
   Notification Card Item
   ========================================================================== */
.notif-card-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 149, 255, 0.3);
  transform: translateY(-1px);
}

.notif-card-item.unread {
  background: linear-gradient(135deg, rgba(0, 149, 255, 0.08), rgba(0, 229, 255, 0.04));
  border-left: 3px solid var(--accent, #0095ff);
}

/* Card Header */
.notif-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notif-thumb-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-thumb-icon-placeholder {
  font-size: 22px;
}

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

.notif-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.notif-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  margin-top: 4px;
}

.notif-card-msg {
  font-size: 12.5px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  margin-bottom: 6px;
  word-break: break-word;
}

.notif-card-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card Action Button */
.notif-action-btn {
  align-self: flex-start;
  background: linear-gradient(135deg, #0095ff, #00e5ff);
  color: #030712;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 149, 255, 0.3);
}

.notif-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   Mobile Bottom Sheet Drawer
   ========================================================================== */
.notif-mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-mobile-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.notif-mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-mobile-drawer-overlay.show .notif-mobile-sheet {
  transform: translateY(0);
}

.notif-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 10px auto 4px;
}

.notif-sheet-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}
