/* =====================================================
   EUNAHADA i18n UI (공통) — 지구본 언어 버튼 + 모바일 Language
   product.html 의 이식본과 동일 스타일 (2026-07-30)
   ===================================================== */

/* nav 최우측 flex 아이템 (구 Manager 버튼 자리) */
.lang-selector { position: relative; z-index: 1002; }

.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 12px;
  background: transparent;
  color: var(--black);
  border: 1px solid var(--blue);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}
.lang-btn svg { width: 17px; height: 17px; display: block; color: var(--blue-dark); transition: color 0.3s; }
.lang-btn .lang-code {
  font-size: 0.72rem; letter-spacing: 1.5px; font-weight: 500;
  text-transform: uppercase;
}
.lang-btn:hover { background: var(--blue); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(140,180,213,0.3); }
.lang-btn:hover svg { color: #fff; }
.lang-btn:active { transform: translateY(0) scale(0.97); }

.lang-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 150px; padding: 8px 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(140,180,213,0.18);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(140,180,213,0.18);
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px 18px;
  background: transparent; border: none;
  font-family: inherit; font-size: 0.85rem;
  color: var(--black); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-menu button:hover { background: #f0f6fc; }
.lang-menu button.active { color: var(--blue-dark); font-weight: 700; background: rgba(140,180,213,0.08); }

/* RTL(아랍어) 대응 */
html[dir="rtl"] .lang-menu { right: auto; left: 0; }

/* 데스크톱: 햄버거 안 Language 숨김 */
@media (min-width: 901px) { .mobile-lang { display: none !important; } }

/* 모바일: 상단 지구본 숨기고 햄버거 메뉴 최하단에서 선택 */
@media (max-width: 900px) {
  .lang-selector { display: none !important; }
  .mobile-lang {
    display: block !important;
    margin-top: 28px; padding-top: 24px;
    border-top: 1px solid rgba(140,180,213,0.25);
  }
  .mobile-lang-title {
    display: block; margin-bottom: 14px;
    font-size: 0.68rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gray);
  }
  .mobile-lang-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .mobile-lang-btns button {
    padding: 9px 14px;
    background: transparent;
    border: 1px solid rgba(140,180,213,0.4);
    border-radius: 6px;
    font-family: inherit; font-size: 0.82rem;
    color: var(--black); cursor: pointer;
    transition: all 0.25s;
  }
  .mobile-lang-btns button.active {
    background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 500;
  }
}
