/* =====================================================
   XPROBOT — LANGUAGE SWITCHER STYLES
   Works on all 3 pages (index / presentation / whitepaper)
   ===================================================== */

/* ── BASE SWITCHER ───────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

/* ── BUTTON ──────────────────────────────────────────── */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  line-height: 1;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

/* ── ACTIVE STATE ────────────────────────────────────── */
.lang-btn--active {
  background: linear-gradient(135deg, #6366f1, #00d4ff);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.45);
}

.lang-btn--active:hover {
  background: linear-gradient(135deg, #4f46e5, #00b8e0);
}

/* ── FLAG & LABEL ────────────────────────────────────── */
.lang-flag  { font-size: 0.9rem; line-height: 1; }
.lang-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }

/* ══════════════════════════════════════════════════════
   PAGE-SPECIFIC POSITIONING
══════════════════════════════════════════════════════ */

/* ── INDEX.HTML — inside .nav-inner ─────────────────── */
.nav-inner .lang-switcher {
  margin-left: auto;
  margin-right: 0.8rem;
}

/* ── WHITEPAPER — inside .wp-nav-actions ────────────── */
.wp-nav-actions .lang-switcher {
  margin-right: 0.5rem;
}

/* ── PRESENTATION — fixed position ──────────────────── */
.lang-switcher--pres {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(5, 10, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── LIGHT THEME (index.html uses light nav) ─────────── */
.navbar .lang-switcher {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar .lang-btn {
  color: rgba(0, 0, 0, 0.45);
}

.navbar .lang-btn:hover {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.06);
}

.navbar .lang-btn--active {
  color: #fff !important;
  background: linear-gradient(135deg, #6366f1, #00d4ff);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide label on very small screens, show flag only */
  .lang-label { display: none; }
  .lang-btn   { padding: 5px 8px; }

  .nav-inner .lang-switcher {
    margin-right: 0.5rem;
  }

  .lang-switcher--pres {
    top: 0.7rem;
  }
}

@media (max-width: 480px) {
  .lang-flag { font-size: 1rem; }
}

/* ── TRANSITION on lang change ───────────────────────── */
[data-i18n],
[data-i18n-text] {
  transition: opacity 0.18s ease;
}
