/* 언어 선택 드롭다운 — border-radius 3px (UI 가이드) */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  color: #9333ea;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lang-switcher-btn:hover {
  background: #f3e8ff;
  border-color: rgba(192, 132, 252, 0.5);
}

.lang-switcher-btn:focus {
  outline: none;
  box-shadow: none;
  border-color: #ddd;
}

.lang-switcher-btn:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: #9333ea;
}

.lang-switcher-svg {
  display: block;
}

.lang-switcher-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  max-height: min(320px, 60vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(59, 7, 100, 0.12);
  z-index: 10050;
  padding: 4px 0;
}

.lang-switcher--open .lang-switcher-menu {
  display: block;
}

.lang-switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  height: auto;
  padding: 8px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.lang-switcher-item:hover,
.lang-switcher-item:focus {
  background: #faf5ff;
  outline: none;
  box-shadow: none;
}

.lang-switcher-item--active {
  color: #9333ea;
  font-weight: 600;
}

.lang-switcher-item-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lang-switcher-item-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: #888;
}

.lang-switcher-check {
  display: inline-flex;
  color: #9333ea;
  flex-shrink: 0;
}

/* 랜딩 헤더 */
.lang-switcher--landing .lang-switcher-btn {
  background: rgba(255, 255, 255, 0.9);
}

/* 앱 헤더 */
.lang-switcher--app .lang-switcher-btn {
  background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 480px) {
  .lang-switcher-menu {
    min-width: 180px;
  }
}
