﻿.language-picker {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 116px;
  height: 38px;
  padding: 0 9px;
  color: #eaf1ed;
  border: 1px solid rgba(119, 147, 135, 0.24);
  border-radius: 9px;
  background: rgba(8, 16, 14, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.language-picker-icon {
  color: #54e57c;
  font-size: 14px;
  line-height: 1;
}

.language-picker select {
  width: 100%;
  min-width: 0;
  padding: 0 20px 0 0;
  color: inherit;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-picker select option {
  color: #eef5f1;
  background: #0b1512;
}

.language-switching body {
  opacity: 0.82;
  transition: opacity 80ms ease;
}

.nav-links {
  min-width: 0;
}

.nav-links a {
  white-space: nowrap;
}

.hero-copy,
.section-copy,
.section-heading,
.plan-card,
.feature-card {
  min-width: 0;
}

.hero-copy h1,
.section-copy h2,
.section-heading h2,
.plan-card h3,
.feature-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.button,
.nav-download,
.nav-login {
  text-align: center;
}

.language-picker-header {
  margin-left: auto;
}

.language-picker-floating {
  position: fixed;
  top: 18px;
  right: 20px;
}

@media (max-width: 1180px) {
  .navbar {
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .language-picker {
    min-width: 96px;
  }
}

@media (max-width: 980px) {
  .language-picker-header {
    order: 2;
    margin-left: auto;
  }

  .menu-button {
    order: 3;
  }

  .nav-links {
    order: 4;
  }
}

@media (max-width: 560px) {
  .language-picker {
    min-width: 88px;
  }

  .language-picker select {
    font-size: 11px;
  }

  .language-picker-floating {
    top: 10px;
    right: 10px;
  }
}

/* Keep the mobile language picker beside the fixed menu button. */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .language-picker-header {
    position: fixed;
    top: max(15px, env(safe-area-inset-top));
    right: calc(max(12px, env(safe-area-inset-right)) + 52px);
    z-index: 1000;
    width: 96px;
    min-width: 96px;
    margin: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

