/* Floating UI Styles */
.floating-ui {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 플로팅 메뉴 컨테이너 */
.floating-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 200px;
  background-color: #fff;
  width: 75px;
  padding-top: 20px;
  padding-bottom: 75px;
  transform: translateY(120px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(91px);
}

/* 개별 메뉴 아이템 */
.floating-menu-item {
  width: 54px;
  height: 54px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  border: none;
  outline: none;
  border-bottom: 1px solid #d8d8d8;
}

.floating-menu-item:hover {
  /* transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); */
}

.floating-menu-item img {
  height: 38px;
}

.floating-menu-item .menu-text {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* 메인 플로팅 버튼 (+ 버튼) */
.floating-main-btn {
  width: 75px;
  height: 75px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  position: relative;
}

.floating-main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.floating-main-btn .btn-icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}

/* 맨 위로 이동 버튼 */
.scroll-to-top {
  width: 75px;
  height: 75px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top img {
  width: 24px;
  height: 24px;
}

/* 반응형 */
@media (max-width: 768px) {
  .floating-ui {
    bottom: 20px;
    right: 16px;
  }

  .floating-menu {
    width: 48px;
    padding-bottom: 48px;
  }

  .floating-menu.active {
    transform: translateY(64px);
  }

  .floating-main-btn {
    width: 48px;
    height: 48px;
  }

  .floating-menu-item {
    height: 40px;
    width: 40px;
  }
  .floating-menu-item > img {
    height: 28px;
  }

  .scroll-to-top {
    width: 48px;
    height: 48px;
  }
}
