@charset "UTF-8";

.language-switcher {
  position: fixed;
  top: 8px;
  right: 20px;
  height: 42px;
  margin-top: 0;
  margin-left: 0;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  border: 1px solid #d7e0e6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(16, 24, 32, 0.08);
  z-index: 60;
}

.language-switcher__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 56px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #40515d;
  background: #f4f7f9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.language-switcher__trigger::after {
  color: #778794;
  content: "\2304";
  font-size: 0.9em;
  line-height: 1;
}

.language-switcher__trigger-value {
  color: #0f1f2d;
}

.language-switcher__trigger:hover,
.language-switcher:focus-within .language-switcher__trigger {
  color: #0b5fa8;
  background: #eaf4fc;
  outline: none;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -1px;
  display: grid;
  gap: 6px;
  width: var(--language-switcher-menu-width, 77px);
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #d7e0e6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease 0.2s, transform 0.18s ease 0.2s, visibility 0s linear 0.38s;
}

.language-switcher:hover .language-switcher__menu,
.language-switcher:focus-within .language-switcher__menu,
.language-switcher.is-open .language-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  padding: 3px 4px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: none;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.78);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.language-switcher__button::before {
  font-size: 0.92rem;
  line-height: 1;
}

.language-switcher__button[data-lang="tr"]::before {
  content: "\1F1F9\1F1F7";
}

.language-switcher__button[data-lang="en"]::before {
  content: "\1F1EC\1F1E7";
}

.language-switcher__button[data-lang="de"]::before {
  content: "\1F1E9\1F1EA";
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible {
  color: #ffffff;
  background: transparent;
  outline: none;
  opacity: 0.76;
}

.language-switcher__button.is-active {
  color: #ffffff;
  background: transparent;
  font-weight: 800;
}

@media (max-width: 760px) {
  .language-switcher {
    top: 12px;
    right: 20px;
    height: 38px;
    margin-top: 0;
    margin-left: 0;
    padding: 3px;
  }

  .language-switcher__trigger {
    min-width: 49px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .language-switcher__menu {
    top: calc(100% + 12px);
    right: -1px;
    width: var(--language-switcher-menu-width, 62px);
    min-width: 0;
  }

  .language-switcher__button {
    justify-content: center;
    min-width: 100%;
    min-height: 28px;
    padding: 3px 4px;
    font-size: 0.72rem;
  }

  .language-switcher__button::before {
    font-size: 0.82rem;
  }

}
