/* ─────────────────────────────────────────────────────────────
   AISearchLab Translate — Frontend CSS
   Language switcher tab bar on research/wiki single posts
   ─────────────────────────────────────────────────────────────*/

/* ── Lang switcher bar ───────────────────────────────────────── */
.aisl-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0 0 2rem 0;
  padding: 0;
  background: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.aisl-lang-switcher__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-right: 1rem;
  padding: 0.6rem 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.aisl-lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.aisl-lang-btn:hover {
  color: #111;
  text-decoration: none;
}

.aisl-lang-btn.is-active,
.aisl-lang-btn[aria-current="true"] {
  color: #111;
  border-bottom-color: #111;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .aisl-lang-switcher {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .aisl-lang-btn {
    color: rgba(255, 255, 255, 0.55);
  }
  .aisl-lang-btn:hover,
  .aisl-lang-btn.is-active {
    color: #fff;
    border-bottom-color: #fff;
  }
  .aisl-lang-switcher__label {
    color: rgba(255, 255, 255, 0.35);
  }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .aisl-lang-switcher__label {
    display: none;
  }
  .aisl-lang-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* ── hreflang notice (hidden, SEO use only) ──────────────────── */
.aisl-lang-meta {
  display: none;
}
