/* ============================================================
   Shared i18n dropdown styles — used by /agi /aigc /main pages
   Loaded via <link rel="stylesheet" href="/assets/i18n.css" />
   ============================================================ */

.lang-switch{
  position: relative;
  font-family: var(--mono, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace);
}
.lang-switch__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper, #f5f5f5);
  opacity: .75;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  background: transparent;
  transition: opacity .2s, color .2s, border-color .2s, background .2s;
}
.lang-switch__btn:hover{
  opacity: 1;
  color: var(--accent, #c8a76a);
  border-color: var(--accent, #c8a76a);
}
.lang-switch__btn[aria-expanded="true"]{
  opacity: 1;
  color: var(--accent, #c8a76a);
  border-color: var(--accent, #c8a76a);
}
.lang-switch__caret{
  width: 9px; height: 6px;
  transition: transform .2s;
}
.lang-switch__btn[aria-expanded="true"] .lang-switch__caret{ transform: rotate(180deg); }
.lang-switch__menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  list-style: none;
  margin: 0; padding: 6px;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  z-index: 80;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.lang-switch.is-open .lang-switch__menu{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang-switch__menu button{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper, #f5f5f5);
  opacity: .65;
  background: transparent;
  border: 0;
  border-radius: 4px;
  text-align: left;
  transition: opacity .15s, color .15s, background .15s;
}
.lang-switch__menu button:hover{
  opacity: 1;
  color: var(--accent, #c8a76a);
  background: rgba(255,255,255,.04);
}
.lang-switch__menu button.is-active{
  opacity: 1;
  color: var(--accent, #c8a76a);
}
.lang-switch__menu button .check{
  width: 10px; height: 10px;
  opacity: 0;
  color: var(--accent, #c8a76a);
}
.lang-switch__menu button.is-active .check{ opacity: 1; }

/* On light backgrounds (e.g. aigc topnav before scrolled), flip the chrome */
.topnav .lang-switch__btn,
.is-light .lang-switch__btn{
  color: var(--ink, #0a0a0a);
  border-color: rgba(10,10,10,.2);
}
.topnav .lang-switch__btn:hover,
.is-light .lang-switch__btn:hover{
  color: var(--ink, #0a0a0a);
  border-color: var(--ink, #0a0a0a);
}
.topnav .lang-switch__btn[aria-expanded="true"],
.is-light .lang-switch__btn[aria-expanded="true"]{
  color: var(--ink, #0a0a0a);
  border-color: var(--ink, #0a0a0a);
}

@media (max-width: 600px){
  .lang-switch__btn{ padding: 5px 10px; font-size: 10px; }
  .lang-switch__menu{ min-width: 148px; }
}
