/* =============================================
   i18n.css — Language switcher & RTL styles
   ============================================= */

/* Language switcher button */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #f0f0f0);
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  margin-left: 8px;
}

.lang-switcher:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

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

.lang-switcher .lang-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* RTL mode */
html[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', 'Inter', sans-serif;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .l-nav-links {
  flex-direction: row-reverse;
}

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

html[dir="rtl"] .l-hero-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .vision-banner-top {
  flex-direction: row-reverse;
}

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

html[dir="rtl"] .l-section-head.center,
html[dir="rtl"] .l-section-sub.center {
  text-align: center;
}

html[dir="rtl"] .l-cards-3,
html[dir="rtl"] .l-cards-2 {
  direction: rtl;
}

html[dir="rtl"] ul {
  padding-right: 18px;
  padding-left: 0;
}

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

html[dir="rtl"] .l-floating-cta {
  left: 24px;
  right: auto;
}

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

html[dir="rtl"] .vision-banner-stats {
  flex-direction: row-reverse;
}

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

/* Language transition */
[data-i18n], [data-i18n-html] {
  transition: opacity 0.2s ease;
}

.lang-switching [data-i18n],
.lang-switching [data-i18n-html] {
  opacity: 0;
}
