/* ===== DIL SECICI ===== */

.lang-switcher {
  position: relative;
}

/* Bayrak ikonu (SVG img) */
.lang-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Buton */
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.lang-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lang-switcher-btn .lang-code {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lang-switcher-btn .lang-arrow {
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Dropdown */
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(30, 20, 60, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.lang-dropdown.open {
  display: block;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  font-family: inherit;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.lang-item.active {
  background: rgba(102, 126, 234, 0.3);
  color: white;
}

.lang-item .lang-name {
  flex: 1;
}

/* Scrollbar */
.lang-dropdown::-webkit-scrollbar {
  width: 4px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ===== ANASAYFA: basligin ustunde sag tarafa ===== */
.lang-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .lang-switcher-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .lang-flag-img {
    width: 18px;
    height: 12px;
  }

  .lang-dropdown {
    min-width: 160px;
    max-height: 280px;
  }
}
