/* assets/css/lang.css — FINAL VERSION */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  user-select: none;
}

.lang-label {
  color: var(--text);
  transition: color 0.3s ease;
  opacity: 0.7;
  font-weight: 600;
}

.lang-label.active {
  color: var(--primary);
  opacity: 1;
}

.lang-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.lang-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lang-toggle.active {
  background: var(--primary);
}

.lang-toggle.active::before {
  transform: translateX(20px);
}

/* Mobile: Only show toggle, hide labels */
@media (max-width: 767px) {
  .lang-switch {
    position: static;
    margin-left: 1rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
  }

  .lang-label {
    display: none;
  }

  .lang-toggle {
    width: 40px;
    height: 22px;
  }

  .lang-toggle::before {
    width: 18px;
    height: 18px;
  }

  .lang-toggle.active::before {
    transform: translateX(18px);
  }
}