/* ═══════════════════════════════════════════════════════
   Plato Bilişim Group — i18n Language Switcher Styles
   Modern, glassmorphism, RTL-ready dil seçici stilleri
   ═══════════════════════════════════════════════════════ */

/* ─── Language Switcher Container ─── */
.lang-switcher {
  position: relative;
  margin-left: 12px;
  z-index: 1100;
}

/* ─── Trigger Button ─── */
.lang-switcher__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-soft, #b0b8c8);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lang-switcher__trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--text, #e2e8f0);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1),
              0 4px 16px rgba(0, 0, 0, 0.15);
}

.lang-switcher.is-open .lang-switcher__trigger {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent, #38bdf8);
}

.lang-switcher__globe {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lang-switcher__trigger:hover .lang-switcher__globe {
  opacity: 1;
}

.lang-switcher__flag {
  font-size: 16px;
  line-height: 1;
}

.lang-switcher__label {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.lang-switcher__caret {
  opacity: 0.5;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.lang-switcher.is-open .lang-switcher__caret {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* ─── Dropdown Panel ─── */
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: rgba(15, 18, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.lang-switcher.is-open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ─── Language Option ─── */
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-soft, #b0b8c8);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.lang-option:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text, #e2e8f0);
}

.lang-option.is-active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent, #38bdf8);
}

.lang-option__flag {
  font-size: 20px;
  line-height: 1;
}

.lang-option__label {
  flex: 1;
}

.lang-option__check {
  color: var(--accent, #38bdf8);
  flex-shrink: 0;
}

/* ─── Language Switch Transition ─── */
.lang-switching [data-i18n],
.lang-switching [data-i18n-html],
.lang-switching [data-i18n-placeholder] {
  animation: langFade 0.35s ease;
}

@keyframes langFade {
  0% { opacity: 0.3; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── RTL Support ─── */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 12px;
}

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

html[dir="rtl"] .lang-option {
  text-align: right;
  flex-direction: row-reverse;
}

html[dir="rtl"] .primary-nav__list {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero__inner {
  direction: rtl;
}

html[dir="rtl"] .intro {
  direction: rtl;
}

html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .card__cta svg,
html[dir="rtl"] .btn svg.icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .breadcrumb ol {
  direction: rtl;
}

html[dir="rtl"] .site-header__inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .footer-grid__col ul {
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"] .hero__content {
  text-align: right;
}

html[dir="rtl"] .hero__actions {
  justify-content: flex-start;
}

html[dir="rtl"] .hero__stats {
  justify-content: flex-start;
}

html[dir="rtl"] .density-band {
  direction: rtl;
}

html[dir="rtl"] .form__row {
  direction: rtl;
}

html[dir="rtl"] .portfolio-card__head {
  flex-direction: row-reverse;
}

html[dir="rtl"] .portfolio-card__foot {
  direction: rtl;
}

html[dir="rtl"] .section__head {
  text-align: right;
}

html[dir="rtl"] .section__head--center {
  text-align: center;
}

html[dir="rtl"] .anatolia__inner {
  direction: rtl;
}

html[dir="rtl"] .anatolia__highlights {
  direction: rtl;
}

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

html[dir="rtl"] .pf-item {
  text-align: right;
}

html[dir="rtl"] .principle {
  text-align: right;
}

html[dir="rtl"] .tech-cell {
  text-align: right;
}

/* ─── Mobile: Hide label on small screens ─── */
@media (max-width: 768px) {
  .lang-switcher__label {
    display: none;
  }

  .lang-switcher__globe {
    display: none;
  }

  .lang-switcher__trigger {
    padding: 6px 8px;
    gap: 4px;
  }

  .lang-switcher__dropdown {
    right: -10px;
  }

  html[dir="rtl"] .lang-switcher__dropdown {
    left: -10px;
    right: auto;
  }

  .lang-switcher {
    margin-left: 8px;
  }

  html[dir="rtl"] .lang-switcher {
    margin-right: 8px;
    margin-left: 0;
  }
}

/* ─── Smooth Font Loading for Arabic ─── */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');
}

html[lang="ar"] body {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
}

html[lang="ru"] body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Navbar düzeltmeleri */
.primary-nav__list {
    gap: 12px !important;
}
.primary-nav__item a {
    white-space: nowrap !important;
}
.primary-nav__item {
    flex-shrink: 0; /* Elemanların sıkışıp daralmasını engeller */
}
