/* PC Navigation */
.Menubar {
  display: flex;
  font-size: 20px;
  gap: 9px;
  align-items: end;
  width: 40%;
}

.Menubar li {
  width: 100%;
  cursor: pointer;
  position: relative;
  text-align: center;
  padding-bottom: 4px;
}

.Menubar li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #3366e6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.Menubar li:hover::after {
  width: 80%;
}

.Menubar li:hover {
  color: #353535;
}
.mobile-bottom-nav {
  display: none;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  z-index: 1000;
  will-change: transform;
  transform: translateZ(0);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 12px 10px;
  display: none; /* 기본적으로 숨김 */
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #9e9e9e;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-bottom-nav__item img {
  width: 24px;
  height: 24px;
  /* 기본 상태의 이미지 색상 (#9e9e9e) */
  filter: brightness(0) saturate(100%) invert(68%) sepia(0%) saturate(0%)
    hue-rotate(147deg) brightness(87%) contrast(86%);
  transition: filter 0.3s ease;
}

.mobile-bottom-nav__item.active {
  color: #0f4ff4;
}

.mobile-bottom-nav__item.active img {
  /* 활성화 상태의 이미지 색상 (#0f4ff4) */
  filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(5456%)
    hue-rotate(223deg) brightness(97%) contrast(98%);
}

.mobile-bottom-nav__item span {
  font-size: 11px;
  transition: color 0.3s ease;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile Search Modal */

.search-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.back-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: -8px;
}

.back-btn img {
  width: 24px;
  height: 24px;
}

.searchInputs-wrapper {
  position: relative;
}

.searchBox {
  position: relative;
  width: 100%;
}

.searchInputs {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f9fafb;
  outline: none;
  transition: border-color 0.3s ease;
}

.searchInputs:focus {
  border-color: #3366e6;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

@media screen and (min-width: 500px) {
  .mobile-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .Menubar {
    width: 100%;
  }
}
/* 모바일 대응 (500px 이하) */
@media (max-width: 500px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .container {
    padding-bottom: 65px;
  }

  .Menubar {
    display: none;
  }

  .headers .logo {
    width: 40%;
  }

  .mobile-search-modal {
    display: block;
  }
}

/* 모바일 키보드 대응 */
@media (max-height: 500px) {
  .mobile-search-content {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* iOS 대응 */
@supports (-webkit-touch-callout: none) {
  .mobile-search-content {
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }
}

/* 애니메이션 키프레임 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}
