/*!
 * DargwaDict — navigation bar and language switcher
 */

.navbar {
  border: 0px solid rgba(0, 0, 0, 0);
  background: #70cbce;
  margin: auto;
  min-height: 100px;
  padding-top: 15px;
  padding-bottom: 15px;
  position: fixed;
  top: -60px;
  transition: top 0.4s ease 0s;
}

.navbar.open {
  top: 0;
}

.navbar-inverse .navbar-nav > li > a, .navbar-nav a {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 1px;
}

.navbar-inverse .navbar-nav > li > a:hover {
  color: #ffffff;
  opacity: 0.6;
}

.nav > li > a {
  position: relative;
  display: block;
  padding: 10px 10px;
}

.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
  border-color: #4ec3cd;
}

.navbar-inverse .navbar-toggle {
  border-color: transparent;
}

.logo img {
  margin-top: 6px;
}

.nav-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-nav > li > a {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  white-space: nowrap;
  transition: all 0.3s ease;
  background-color: transparent !important;
}

.navbar-nav > li.active > a,
.navbar-nav > li > a.active {
  color: #ffffff !important;
  background-color: transparent !important;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 2px;
  border-radius: 0;
}

.navbar-nav > li > a:hover {
  color: #ffffff !important;
  opacity: 0.85;
  background-color: transparent !important;
  text-decoration: none;
}

.language-switcher {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.lang-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.lang-btn.active {
  background-color: #e0e0e0;
  color: #000000;
  cursor: default;
}

.lang-btn:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.lang-separator {
  color: #ffffff;
  opacity: 0.7;
  font-size: 18px;
  font-weight: 500;
}

/* ---------------- Мобильная адаптация ---------------- */
@media (max-width: 768px) {
  .navbar {
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .navbar-nav > li > a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .lang-btn {
    font-size: 14px;
    padding: 6px 10px;
  }

  .lang-separator {
    font-size: 14px;
  }

  .nav-flex-container {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .navbar-nav > li > a {
    font-size: 13px;
    padding: 6px 10px;
  }
}
