/**
 * 사용자 드롭다운 메뉴 공통 스타일
 */

/* 헤더 아이콘 공통 스타일 (로그인 버튼 제외) */
#header-nav .nav-link:not(#memberLogin) {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 0.25rem;
  transition: all 0.2s ease;
}

#header-nav .nav-link:hover {
  border-color: #9CA3AF;
  background: #F9FAFB;
}

#header-nav .nav-link svg,
#header-nav .nav-link i {
  color: #6B7280;
}

#header-nav .nav-link:hover svg,
#header-nav .nav-link:hover i {
  color: #374151;
}

/* 사용자 드롭다운 트리거 */
.user-dropdown-trigger {
  padding: 0.25rem !important;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: all 0.2s ease;
  overflow: hidden;
  font-size: 0.9rem;
}

.user-avatar-sm:hover {
  border-color: #6B7280;
  color: #374151;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 드롭다운 메뉴 */
.user-dropdown-menu {
  min-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 2000;
  right: 0 !important;
  left: auto !important;
}

.user-dropdown-content {
  background: #fff;
}

/* 프로필 헤더 */
.user-dropdown-header {
  padding: 1.5rem;
  text-align: center;
  background: #F8F9FA;
  border-bottom: 1px solid #E9ECEF;
}

.user-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-size: 1.5rem;
  color: #94A3B8;
}

.user-dropdown-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1E293B;
  margin-bottom: 0.25rem;
}

.user-dropdown-email {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0;
}

/* 메뉴 바디 */
.user-dropdown-body {
  padding: 0.75rem;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  color: #1E293B;
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-dropdown-item:hover {
  background: #F8FAFC;
  color: #1E293B;
}

.user-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.user-dropdown-item span {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}

.user-dropdown-arrow {
  color: #CBD5E1;
  font-size: 1.25rem;
}

/* 푸터 */
.user-dropdown-footer {
  padding: 0.75rem;
  border-top: 1px solid #E2E8F0;
}

.user-logout-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: #FEF2F2;
  color: #EF4444;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-logout-btn:hover {
  background: #FEE2E2;
}

/* 관리자 링크 */
.admin-link {
  padding: 0.25rem !important;
}

.admin-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22C55E;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.admin-icon-box:hover {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
