/* User Menu Styles */

/* Always show buttons on login/signup/forgot-password pages */
.login-page .actions,
.signup-page .actions,
.forgot-password-page .actions {
  opacity: 1 !important;
  visibility: visible !important;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  text-decoration: none;
  position: relative;
}

.user-menu-btn:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.user-menu-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: width 0.3s ease;
}

.user-menu-btn:hover::after {
  width: 100%;
}

.user-name {
  color: inherit;
}

.dropdown-arrow {
  color: inherit;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.user-menu-btn.active .dropdown-arrow,
.user-dropdown.show + .user-menu-btn .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(5, 6, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

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

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dropdown-item:hover {
  background: rgba(0, 255, 255, 0.1);
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.dropdown-item#logoutBtn {
  color: #ff6b6b;
}

.dropdown-item#logoutBtn:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff8787;
}

/* Responsive */
@media (max-width: 768px) {
  .user-menu-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .user-dropdown {
    right: 0;
    min-width: 120px;
  }
}

