/* ================================================
   TPSNIPER i18n — Language Switcher Styles v2
   ================================================ */

.i18n-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.i18n-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1;
}

.i18n-switcher-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.i18n-switcher-btn.active {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.i18n-switcher-btn.active:hover {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
}

.i18n-flag {
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.i18n-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ================================================
   SIDEBAR CONTEXT (app pages)
   — lipit de butonul Logout
   ================================================ */

.sidebar .i18n-switcher {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 6px;
}

.sidebar .i18n-switcher-btn {
  flex: 1;
  justify-content: center;
  padding: 6px 10px;
}

/* ================================================
   FLOATING FALLBACK — AUTH PAGES
   — sus-dreapta, compact
   ================================================ */

.i18n-switcher-floating {
  position: fixed;
  top: 16px;
  right: 16px;
  left: auto;
  bottom: auto;
  z-index: 9998;
  background: rgba(18, 20, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ================================================
   LANDING NAV CONTEXT
   ================================================ */

.nav-actions .i18n-switcher {
  margin-right: 4px;
}

/* ================================================
   MOBILE
   ================================================ */

@media (max-width: 720px) {
  .i18n-switcher {
    padding: 2px;
    gap: 2px;
  }

  .i18n-switcher-btn {
    padding: 4px 7px;
    font-size: 9px;
  }

  .i18n-code {
    font-size: 9px;
  }

  .i18n-flag {
    font-size: 10px;
  }

  .i18n-switcher-floating {
    top: 10px;
    right: 10px;
  }
}
