/* Language Selector Styles */
.language-selector {
  position: absolute;
  top: 0px;
  right: 16px;
  z-index: 1000;
}

.language-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-width: 80px;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.language-box:hover {
  border-color: #118ab2;
  box-shadow: 0 2px 4px rgba(17, 138, 178, 0.1);
}

.language-box.active {
  border-color: #118ab2;
  box-shadow: 0 2px 8px rgba(17, 138, 178, 0.15);
}

.flag-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Popover içindeki flag ikonları için özel boyut */
.language-option .flag-icon {
  width: 28px;
  height: 28px;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.language-box.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Language Popover */
.language-popover {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  width: max-content;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
  z-index: 1001;
}

.language-popover.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f1f3f4;
  white-space: nowrap;
  min-height: 48px;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: #f8f9fa;
}

.language-option.selected {
  background-color: #e8f4f8;
  color: #118ab2;
  font-weight: 500;
}

.language-option span {
  font-size: 16px;
  font-weight: 400;
  color: #344054;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.language-option.selected span {
  color: #118ab2;
  font-weight: 500;
}

.fxt-content {
  position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  .language-selector {
    top: 8px;
    right: 8px;
  }

  .language-box {
    padding: 6px 10px;
    min-width: 70px;
  }

  .flag-icon {
    width: 20px;
    height: 20px;
  }

  .language-option .flag-icon {
    width: 24px;
    height: 24px;
  }

  .language-popover {
    min-width: 120px;
  }

  .language-option {
    padding: 10px 14px;
    min-height: 44px;
  }

  .language-option span {
    font-size: 15px;
  }
}
