/* ToolGuest language switcher banner styles.
 *
 * Self-contained, like assets/site-directory.css: the pages use several
 * design-token conventions (Tailwind utilities, --border/--muted custom
 * properties and plain colours), so the banner defines its own values and
 * matches dark mode on all three site conventions at once.
 *
 * Load with <link rel="stylesheet" href="/assets/lang-banner.css" />.
 */
.tg-langbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;
  width: min(680px, calc(100vw - 24px));
  transform: translate(-50%, 24px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  pointer-events: none;
}
.tg-langbar--in {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .tg-langbar { transition: none; }
}

.tg-langbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(9, 11, 16, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px;
  line-height: 1.35;
  color: #18181b;
}
.dark .tg-langbar__inner,
[data-theme="dark"] .tg-langbar__inner,
body.dark .tg-langbar__inner {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 22, 0.92);
  color: #f4f5f7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.tg-langbar__globe {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}
.tg-langbar__globe svg { width: 17px; height: 17px; }

.tg-langbar__text {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.tg-langbar__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-langbar__go,
.tg-langbar__stay,
.tg-langbar__close {
  font: inherit;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
}
.tg-langbar__go {
  padding: 7px 12px;
  border: 1px solid transparent;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.tg-langbar__go:hover { background: #4338ca; }
.tg-langbar__stay {
  padding: 7px 10px;
  border: 1px solid rgba(24, 24, 27, 0.16);
  background: transparent;
  color: inherit;
}
.dark .tg-langbar__stay,
[data-theme="dark"] .tg-langbar__stay,
body.dark .tg-langbar__stay { border-color: rgba(255, 255, 255, 0.18); }
.tg-langbar__stay:hover { background: rgba(127, 127, 127, 0.12); }
.tg-langbar__close {
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .62;
  text-decoration: underline;
}
.tg-langbar__close:hover { opacity: 1; }

@media (max-width: 560px) {
  .tg-langbar__inner { flex-wrap: wrap; }
  .tg-langbar__text { flex-basis: calc(100% - 42px); }
  .tg-langbar__actions { width: 100%; justify-content: flex-end; }
}
