/* Dil seçici — ortama uyumlu varyantlar */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.lang-switch__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light, #64748b);
  opacity: 0.9;
}

.lang-switch__icon .icon {
  width: 16px;
  height: 16px;
}

.lang-switch__select {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 32px 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text, #1e293b);
  background-color: var(--bg-light, #f5f7fa);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lang-switch__select:hover {
  border-color: color-mix(in srgb, var(--accent, #2979ff) 40%, var(--border, #e2e8f0));
}

.lang-switch__select:focus {
  outline: none;
  border-color: var(--accent, #2979ff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2979ff) 22%, transparent);
}

/* Giriş kartı */
.lang-switch--auth {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--accent, #2979ff) 6%, var(--bg-light, #f8fafc));
  border: 1px solid color-mix(in srgb, var(--accent, #2979ff) 18%, var(--border, #e2e8f0));
  border-radius: 10px;
}

.lang-switch--auth .lang-switch__select {
  background-color: #fff;
}

/* Auth kart altındaki dil seçici sarıcısı (Hesabınız yok mu? satırının altı) */
.auth-lang-switch {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border, #e2e8f0);
}

.auth-lang-switch:empty {
  display: none;
}

.auth-lang-switch .lang-switch--auth {
  margin: 0;
}

/* Kullanıcı menüsü */
.user-menu-language {
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  margin-bottom: 2px;
}

.lang-switch--menu {
  gap: 6px;
}

.lang-switch--menu .lang-switch__select {
  padding: 7px 28px 7px 8px;
  font-size: 12px;
  border-radius: 6px;
  background-color: var(--bg-light, #f5f7fa);
}

/* Admin panel */
.lang-switch--admin {
  max-width: 280px;
  margin-bottom: 12px;
}

.lang-switch--admin .lang-switch__select {
  background-color: #fff;
}

/* Oda sahibi paneli */
.lang-switch--room-owner {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

/* Koyu tema */
body.dark-mode .lang-switch__select,
html.dark .lang-switch__select {
  background-color: var(--bg-light, #1e293b);
  color: var(--text, #f1f5f9);
  border-color: var(--border, #334155);
}

body.dark-mode .lang-switch--auth,
html.dark .lang-switch--auth {
  background: color-mix(in srgb, var(--accent, #2979ff) 12%, #1e293b);
}

html[dir='rtl'] .lang-switch__select {
  padding: 8px 10px 8px 32px;
  background-position: left 10px center;
}

/* Entity locale tabs (admin / oda) */
.i18n-entity-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border, #e2e8f0);
}

.i18n-entity-section h3,
.i18n-entity-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.i18n-entity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.i18n-entity-tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-white, #fff);
  color: var(--text-mid, #475569);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.i18n-entity-tab:hover {
  border-color: var(--accent, #2979ff);
  color: var(--accent, #2979ff);
}

.i18n-entity-tab.is-active {
  background: var(--accent, #2979ff);
  border-color: var(--accent, #2979ff);
  color: #fff;
}

.i18n-entity-fields .form-group {
  margin-bottom: 12px;
}

.i18n-entity-fields textarea,
.i18n-entity-fields input[type='text'] {
  width: 100%;
  box-sizing: border-box;
}

.i18n-entity-fields .ent-loc-rte-host {
  width: 100%;
  box-sizing: border-box;
}

.i18n-entity-fields .rte-host {
  max-width: 100%;
}

.i18n-entity-fields .rte-body {
  max-height: 160px;
}

.room-content-tr-block {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--bg-light, #f8fafc);
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
}

.room-content-tr-block .form-hint {
  margin-top: 4px;
}
