/* public/css/navbar.css - 完全匹配 React 版本 */

/* Navbar 容器 - 直接對應 NavbarContainer */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
  box-shadow: none;
}

/* 滾動時的樣式 - 對應 React 的 $scrolled 條件 */
.navbar-container.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo 區域 - 對應 LogoLink */
.logo-link {
  position: relative;
  width: 15rem;
  height: 3rem;
}

.logo-link a {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 導航右側 - 對應 NavbarRight */
.navbar-right {
  display: flex;
  align-items: center;
}

/* 導航選單 - 對應 NavbarList */
.navbar-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 導航項目 - 對應 NavItem */
.nav-item {
  margin: 0 1.5rem;
  text-align: center;
  padding: 0.7rem 1rem;
  min-width: 4.5rem;
  border-radius: 20px;
  transition: all 0.3s;
  background-color: transparent;
}

/* 活躍狀態 - 對應 React 的 $isActive */
.nav-item.active {
  background-color: #b8272e;
}

/* 懸停效果 */
.nav-item:hover {
  background-color: #f0f0f0;
}

.nav-item.active:hover {
  background-color: #ff0000;
}

/* 導航連結 - 對應 NavLink */
.nav-link {
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  color: #000000;
}

.nav-link.active {
  color: #f5f5f5;
}

/* 語言切換器 - 對應 SwitcherContainer */
.language-switcher {
  position: relative;
  display: inline-block;
}

/* 語言按鈕 - 對應 DropdownToggle */
.language-button {
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  align-items: center;
  color: #b8272e;
  font-size: 0.8rem;
  display: flex;
  gap: 8px;
}

/* 國旗圖標 - 對應 Flag */
.flag-icon {
  width: 22px;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 箭頭 - 對應 Arrow */
.arrow {
  margin-left: 8px;
  font-size: 10px;
}

/* 語言下拉選單 - 對應 DropdownMenu */
.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1001;
  min-width: 120px;
  padding: 5px 0;
  margin: 2px 0 0;
  background-color: rgba(255, 255, 255, 0.635);
  list-style: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

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

/* 語言選項 - 對應 MenuItem */
.language-option {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  color: #b8272e;
  text-decoration: none;
  font-size: 12px;
  gap: 8px;
}

.language-option:hover {
  text-decoration: underline;
}

.language-option.active {
  font-weight: bold;
}
