/* User Avatar and Dropdown styles */

.user-avatar {
  position: relative;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.avatar-btn:hover {
  border-color: #555;
  color: #e0e0e0;
}

.avatar-btn.known {
  background: #2a2a2a;
  color: #e0e0e0;
}

.avatar-btn.google-auth {
  background: #2a3a4a;
  border-color: #4285f4;
}

.avatar-btn.google-auth img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Avatar Dropdown */
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.15s;
  z-index: 200;
}

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

.avatar-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #333;
}

.avatar-dropdown-header .user-name {
  color: #e0e0e0;
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 4px;
}

.avatar-dropdown-header .user-detail {
  color: #666;
  font-size: 0.6875rem;
  display: block;
  margin-top: 4px;
}

.avatar-dropdown-header .user-detail-label {
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.avatar-dropdown-item {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: #888;
  cursor: pointer;
  transition: all 0.15s;
}

.avatar-dropdown-item:hover {
  background: #222;
  color: #e0e0e0;
}

.avatar-dropdown-item:last-child {
  border-radius: 0 0 4px 4px;
}

/* Google OAuth Styles */
.avatar-dropdown-item.google-signin {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.avatar-dropdown-item.google-signin:hover {
  background: #1a3a1a;
}

/* Verified user styles */
.avatar-btn.verified {
  position: relative;
  border-color: #4CAF50;
}

.avatar-btn .verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #4CAF50;
  color: white;
  font-size: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.avatar-dropdown-header .verified-text {
  color: #4CAF50;
  font-size: 0.75em;
  font-weight: normal;
  margin-left: 4px;
}

.auth-upgrade-prompt {
  display: block;
  color: #4285f4;
  font-size: 0.6875rem;
  margin-top: 8px;
  cursor: pointer;
  transition: color 0.15s;
}

.auth-upgrade-prompt:hover {
  color: #5a9cf6;
  text-decoration: underline;
}
