/* ============================================================
 * ReviewI18n · 언어 스위처 스타일 v1.0.0
 * 브랜드: 흑백 + 네온그린(#00E640) 포인트
 * ============================================================ */

/* ─── 데스크톱 드롭다운 ─────────────────────────────────── */
.i18n-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 12px;
  z-index: 1000;
}

.i18n-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  letter-spacing: .5px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
  line-height: 1;
}
.i18n-current:hover {
  border-color: #00E640;
  background: #00E640;
  color: #000;
  box-shadow: 0 0 0 3px rgba(0,230,64,.2);
}
.i18n-current svg { flex-shrink: 0; }

.i18n-chevron {
  transition: transform .2s;
}
.i18n-dropdown.open ~ .i18n-current .i18n-chevron,
.i18n-current[aria-expanded="true"] .i18n-chevron {
  transform: rotate(180deg);
}

.i18n-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  overflow: hidden;
}
.i18n-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.i18n-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background .12s;
}
.i18n-option:hover {
  background: rgba(0,230,64,.08);
}
.i18n-option.active {
  color: #00E640;
  font-weight: 700;
  background: rgba(0,230,64,.05);
}
.i18n-option + .i18n-option {
  border-top: 1px solid rgba(0,0,0,.05);
}

/* ─── 다크 테마 헤더 대응 ───────────────────────────────── */
.topbar .i18n-current,
.landing-topbar .i18n-current,
.faq-topbar .i18n-current,
[style*="background:#111"] .i18n-current,
[style*="background:#0a0a0a"] .i18n-current {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.1);
  color: #fff;
}
.topbar .i18n-current:hover,
.landing-topbar .i18n-current:hover,
.faq-topbar .i18n-current:hover {
  border-color: #00E640;
  background: #00E640;
  color: #000;
}

/* ─── 모바일 인라인 그룹 ────────────────────────────────── */
.i18n-mobile-group {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  justify-content: center;
}
.i18n-mobile-btn {
  padding: 6px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 20px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  letter-spacing: .5px;
  color: inherit;
  cursor: pointer;
  transition: all .15s;
}
.i18n-mobile-btn.active {
  background: #00E640;
  color: #000;
  border-color: #00E640;
}
.i18n-mobile-btn:hover:not(.active) {
  border-color: #00E640;
}

/* ─── 반응형: 768px 이하에서 데스크톱 스위처 축소 ────────── */
@media (max-width: 768px) {
  .i18n-switcher {
    margin: 0 6px;
  }
  .i18n-current span {
    /* 모바일에서는 아이콘+코드만 표시 */
  }
}
