/* ========================================
   DASHBOARD MODULE STYLES
   User Menu, Avatar, Messages Panel
   ======================================== */

/* Tooltip styles are now inline in dashboard.js for better specificity */

/* Reaction Tooltips (moved from releases.css) */
.reaction-tooltip {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.92);
  padding: 8px 12px;
  padding-bottom: 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.reaction-tooltip::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 10px;
  background: transparent;
}

.reaction-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.92);
}

.reaction-primary:hover .reaction-tooltip,
.reaction-item:hover .reaction-tooltip,
.reaction-tooltip:hover {
  opacity: 1;
  pointer-events: all;
}

.reaction-tooltip a {
  color: #c084fc;
  text-decoration: underline;
  font-weight: 600;
}

.reaction-tooltip a:hover {
  color: #ffffff;
}

/* User Menu Hover Effects */
.menu-grid-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.menu-grid-item:hover span {
  color: #ffffff;
}

#userAvatar:hover #avatarImage {
  opacity: 0.8;
}

#adminMenuItem a:hover {
  background: rgba(255, 71, 87, 0.12) !important;
}

#userMenu a[href*="discord"]:hover,
#userMenu a[onclick*="localStorage.clear"]:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Menu animation */
@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#userMenu[style*="display: block"] {
  animation: menuSlideIn 0.2s ease-out;
}

/* Messages Panel Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

#messagesPanel button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

#messagesList::-webkit-scrollbar {
  width: 6px;
}

#messagesList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

#messagesList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

#messagesList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Avatar notification badge animation (Discord-like) */
#avatarNotificationBadge {
  animation: notificationPulse 2s ease-in-out infinite;
}

#messagesBadge {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 2px 16px rgba(239, 68, 68, 0.9);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
