/* ================= NOTIFICATION BELL STYLES ================= */

/* Notification Bell Icon */
.notification-bell {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: color 0.3s ease;
}

/* Red dot indicator for unread notifications */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background-color: #eb5070;
  border-radius: 50%;
  display: none;
}

.notification-badge.show {
  display: block;
}

/* Shake animation for notification bell */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.notification-bell.shake {
  animation: shake 0.5s ease-in-out;
  color: #eb5070;
}

/* Notification dropdown menu */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  overflow-y: auto;
  margin-top: 10px;
  display: none;
}

.notification-dropdown.show {
  display: block;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.notification-item:hover {
  background: var(--bg-item);
}

.notification-item.unread {
  background: var(--bg-item);
}

.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Notification type icons with colors */
.notification-icon.message {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.notification-icon.comment {
  background: rgba(15, 178, 161, 0.2);
  color: #0fb2a1;
}

.notification-icon.follow {
  background: rgba(235, 80, 112, 0.2);
  color: #eb5070;
}

.notification-icon.mention {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.notification-icon.report {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.notification-icon.badge {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.notification-icon.warning {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 4px;
}

/* Notification dropdown header */
.notification-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-clear {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.notification-clear:hover {
  color: var(--text-main);
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
  .notification-dropdown {
    width: 280px;
    right: -20px;
  }
}
