/* ============================================================
   i18n.css — dil seçici (custom dropdown) + Arapça (RTL)
   ============================================================ */

/* --- Dil seçici kapsayıcı --- */
.st-language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 15px;
}

/* Üst barın taşma kesmesi açılır menüyü kırpmasın */
.st-site-header .st-top-header {
  overflow: visible;
}

/* --- Açma düğmesi --- */
.st-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 20px;
  color: #1c2b45;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.st-lang-toggle:hover,
.st-lang-dropdown.is-open .st-lang-toggle {
  color: #1c76e3;
  border-color: #1c76e3;
  box-shadow: 0 3px 10px rgba(28, 118, 227, 0.15);
}

.st-lang-toggle:focus-visible {
  outline: 2px solid #1c76e3;
  outline-offset: 2px;
}

.st-lang-globe {
  width: 15px;
  height: 15px;
  flex: none;
}

.st-lang-chevron {
  width: 9px;
  height: 6px;
  flex: none;
  transition: transform 0.25s ease;
}

.st-lang-dropdown.is-open .st-lang-chevron {
  transform: rotate(180deg);
}

/* --- Açılır menü --- */
.st-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(15, 35, 65, 0.18), 0 2px 8px rgba(15, 35, 65, 0.08);
  z-index: 10000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.st-lang-dropdown.is-open .st-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Menü öğeleri --- */
.st-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 7px;
  color: #1c2b45;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.st-lang-option:hover,
.st-lang-option:focus-visible {
  background: #f1f5fa;
  outline: none;
}

.st-lang-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.st-lang-native {
  font-weight: 600;
  white-space: nowrap;
}

.st-lang-localized {
  font-size: 12px;
  color: #8494ab;
  white-space: nowrap;
}

.st-lang-check {
  width: 14px;
  height: 14px;
  flex: none;
  color: #1c76e3;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.st-lang-option.is-active .st-lang-check {
  opacity: 1;
}

.st-lang-option.is-active .st-lang-native {
  color: #1c76e3;
}

/* ============================================================
   RTL (Arapça) düzenlemeleri
   html[dir="rtl"] i18n.js tarafından otomatik eklenir.
   ============================================================ */

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .st-language-switcher {
  margin-left: 0;
  margin-right: 15px;
}

html[dir="rtl"] .st-lang-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-right: 0;
}

html[dir="rtl"] .st-lang-menu {
  padding-right: 6px;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

/* --- Küçük ekranlar: İngilizce alt etiketi gizle --- */
@media (max-width: 575px) {
  .st-lang-localized {
    display: none;
  }
}


/* ============================================================
   Site özel stilleri — hastane logoları + resmî kurum logoları
   ============================================================ */

/* --- Sözleşmeli hastaneler carousel logoları --- */
.st-hospital-logo {
  max-height: 60px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- Footer: resmî kurum logoları (HealthTürkiye, UŞHAŞ) --- */
.st-official-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 0 10px;
  margin-top: 30px;
  border-top: 1px solid #e6eaf0;
}

.st-official-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 10px 22px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.st-official-logo:hover {
  box-shadow: 0 8px 24px rgba(15, 35, 65, 0.12);
  transform: translateY(-2px);
}

.st-official-logo img {
  max-height: 48px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* UŞHAŞ logosu beyaz varyant olduğu için koyu zemin */
.st-official-logo-dark {
  background: #101d42;
  border-color: #101d42;
}

@media (max-width: 575px) {
  .st-official-logo {
    height: 60px;
    padding: 8px 16px;
  }

  .st-official-logo img {
    max-height: 40px;
    max-width: 140px;
  }
}
