/* Language toggle (ΕΛ | EN) in the top bar.
   Segmented control in the style of shadcn/ui and Radix Toggle Group,
   written natively so it needs no extra library (keeps the CSP and page weight as they are). */
.lang-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  height: 44px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.11);
  font: 800 12px/1 'Outfit', 'Manrope', system-ui, sans-serif;
  letter-spacing: .08em;
  isolation: isolate;
  transition: border-color .25s, background .25s, transform .25s;
}
.lang-toggle:hover {
  background: rgba(255,255,255,.075);
  border-color: rgba(217,145,255,.54);
  transform: translateY(-1px);
}
.lang-toggle a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(244,236,255,.62);
  text-decoration: none;
  transition: color .35s cubic-bezier(.16,1,.3,1);
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle a:hover { color: #fff; }
.lang-toggle[data-active="el"] a[lang="el"],
.lang-toggle[data-active="en"] a[lang="en"] { color: #170521; }
.lang-toggle a:focus-visible { outline: 2px solid #e4b0ff; outline-offset: 2px; }
.lang-toggle__thumb {
  position: absolute;
  z-index: 0;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, #e4b0ff, #a72cff);
  box-shadow: 0 0 22px rgba(167,44,255,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.lang-toggle[data-active="en"] .lang-toggle__thumb { transform: translateX(100%); }
.lang-toggle:hover .lang-toggle__thumb { box-shadow: 0 0 30px rgba(167,44,255,.6), inset 0 1px 0 rgba(255,255,255,.35); }

@media (max-width: 700px) {
  .lang-toggle { height: 40px; padding: 3px; }
  .lang-toggle a { min-width: 38px; padding: 0 8px; }
  .lang-toggle__thumb { top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); }
}
@media (prefers-reduced-motion: reduce) {
  .lang-toggle, .lang-toggle__thumb, .lang-toggle a { transition: none; }
}
