/* I18n Modern Language Selector Styles */

/* Right side elements container */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 10;
}

/* Modern Language Selector */
.language-selector-modern {
  position: relative;
  z-index: 1000;
}

/* Language Toggle Button */
.language-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 22px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  outline: none;
  position: relative;
  z-index: 1001;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
}

.language-toggle-btn:focus {
  outline: none;
}

.language-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 152, 0, 1);
  transform: scale(1.02);
}

/* Language Text */
.language-text {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
  transition: color 0.3s ease;
}

.language-toggle-btn:hover .language-text {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}

/* Flag Circle */
.flag-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.language-toggle-btn:hover .flag-circle {
  border-color: rgba(255, 152, 0, 1);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.4);
  transform: scale(1.1);
}

.flag-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Language Modal */
.language-modal {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(40, 45, 50, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1002;
  min-width: 180px;
}

.language-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 152, 0, 0.3);
}

.language-modal-content {
  padding: 12px;
}

.language-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.language-modal.active .language-option {
  animation: slideInFromRight 0.3s ease forwards;
}

.language-modal.active .language-option:nth-child(1) {
  animation-delay: 0.05s;
}
.language-modal.active .language-option:nth-child(2) {
  animation-delay: 0.1s;
}
.language-modal.active .language-option:nth-child(3) {
  animation-delay: 0.15s;
}
.language-modal.active .language-option:nth-child(4) {
  animation-delay: 0.2s;
}
.language-modal.active .language-option:nth-child(5) {
  animation-delay: 0.25s;
}
.language-modal.active .language-option:nth-child(6) {
  animation-delay: 0.3s;
}
.language-modal.active .language-option:nth-child(7) {
  animation-delay: 0.35s;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Language Option */
.language-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: #ffffff;
  pointer-events: auto !important;
  cursor: pointer !important;
  border: 1px solid transparent;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}

.language-option:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.15),
    rgba(255, 152, 0, 0.25)
  );
  border-color: rgba(255, 152, 0, 0.4);
  color: #ffffff;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.2);
}

.language-option.active {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.2),
    rgba(255, 152, 0, 0.3)
  );
  border-color: rgba(255, 152, 0, 0.6);
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(255, 152, 0, 0.3);
}

.language-option .flag-circle {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.language-option:hover .flag-circle {
  border-color: rgba(255, 152, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
  transform: scale(1.1) rotate(5deg);
}

.language-option.active .flag-circle {
  border-color: rgba(255, 152, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.language-name {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.language-option:hover .language-name {
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
  transform: translateX(2px);
}

/* Dark theme adjustments */
.invert-header .language-toggle-btn {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.invert-header .language-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 152, 0, 1);
}

.invert-header .language-text {
  color: #fff;
}

.invert-header .language-modal {
  background: rgba(30, 35, 40, 0.95);
  border-color: rgba(255, 152, 0, 0.15);
}

.invert-header .language-option {
  color: #fff;
}

.invert-header .language-option:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.12),
    rgba(255, 152, 0, 0.2)
  );
  color: #ffffff;
  border-color: rgba(255, 152, 0, 0.3);
}

.invert-header .language-option.active {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.18),
    rgba(255, 152, 0, 0.28)
  );
  color: #ffffff;
  border-color: rgba(255, 152, 0, 0.5);
}

.invert-header .flag-circle {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Animation for language change */
.language-changing .flag-circle {
  animation: flagChange 0.4s ease-in-out;
}

@keyframes flagChange {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(0.8) rotate(180deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .flag-circle {
    width: 28px;
    height: 28px;
  }

  .language-option .flag-circle {
    width: 20px;
    height: 20px;
  }

  .language-name {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .flag-circle {
    width: 24px;
    height: 24px;
  }

  .language-modal {
    right: -10px;
    pointer-events: auto !important;
  }
}

/* --------------------------------------------------
   Slider Caption – Language-Specific Fit Rules
   Goal: Make translated titles/subtitles fit on one slide
   Notes:
   - Turkish (tr) and Arabic (sa) are OK → no overrides
   - For other languages we slightly reduce sizes and
     allow wrapping + hyphenation inside the 60px row.
   - We only target items that are NOT already marked
     with the explicit long-text helpers to avoid
     fighting those specific adjustments.
--------------------------------------------------- */

/* Shared helpers: allow long words to break/hyphenate */
.snap-slider-captions .slide-title span,
.snap-slider-captions .slide-subtitle span {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* Global fix: prevent top/bottom clipping and align numbers with text */
.snap-slider-captions-wrapper {
  height: 64px; /* a little taller for ascenders/diacritics */
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

.snap-slider-captions .slide-title,
.snap-slider-captions .slide-subtitle,
.snap-slider-captions .slide-current,
.snap-slider-captions .slide-counter {
  display: flex;
  align-items: center; /* vertical align numbers and text */
  height: 64px;
  line-height: 1.2; /* avoid glyph clipping */
}

/* Keep left blocks left-aligned and right blocks right-aligned */
.snap-slider-captions .slide-title,
.snap-slider-captions .slide-current {
  justify-content: flex-start;
}
.snap-slider-captions .slide-counter,
.snap-slider-captions .slide-subtitle {
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .snap-slider-captions-wrapper {
    height: 56px;
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 6%,
      rgba(0, 0, 0, 1) 94%,
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 6%,
      rgba(0, 0, 0, 1) 94%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .snap-slider-captions .slide-title,
  .snap-slider-captions .slide-subtitle,
  .snap-slider-captions .slide-current,
  .snap-slider-captions .slide-counter {
    height: 56px;
  }
}

/* English */
html[lang="en"] .snap-slider-captions .slide-title:not(.slide-title-long) {
  font-size: 20px;
  line-height: 28px;
}
html[lang="en"]
  .snap-slider-captions
  .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long) {
  font-size: 18px;
  line-height: 26px;
}

/* German */
html[lang="de"] .snap-slider-captions .slide-title:not(.slide-title-long) {
  font-size: 18px;
  line-height: 26px;
}
html[lang="de"]
  .snap-slider-captions
  .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long) {
  font-size: 16px;
  line-height: 24px;
}

/* French */
html[lang="fr"] .snap-slider-captions .slide-title:not(.slide-title-long) {
  font-size: 20px;
  line-height: 28px;
}
html[lang="fr"]
  .snap-slider-captions
  .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long) {
  font-size: 18px;
  line-height: 26px;
}

/* Spanish */
html[lang="es"] .snap-slider-captions .slide-title:not(.slide-title-long) {
  font-size: 20px;
  line-height: 28px;
}
html[lang="es"]
  .snap-slider-captions
  .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long) {
  font-size: 18px;
  line-height: 26px;
}

/* Russian */
html[lang="ru"] .snap-slider-captions .slide-title:not(.slide-title-long) {
  font-size: 18px;
  line-height: 26px;
}
html[lang="ru"]
  .snap-slider-captions
  .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long) {
  font-size: 16px;
  line-height: 24px;
}

/* Make sure tiny screens keep things readable */
@media (max-width: 1024px) {
  html[lang="en"] .snap-slider-captions .slide-title:not(.slide-title-long),
  html[lang="fr"] .snap-slider-captions .slide-title:not(.slide-title-long),
  html[lang="es"] .snap-slider-captions .slide-title:not(.slide-title-long) {
    font-size: 18px;
    line-height: 26px;
  }

  html[lang="de"] .snap-slider-captions .slide-title:not(.slide-title-long),
  html[lang="ru"] .snap-slider-captions .slide-title:not(.slide-title-long) {
    font-size: 17px;
    line-height: 24px;
  }

  html[lang="en"]
    .snap-slider-captions
    .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long),
  html[lang="fr"]
    .snap-slider-captions
    .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long),
  html[lang="es"]
    .snap-slider-captions
    .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long) {
    font-size: 16px;
    line-height: 24px;
  }

  html[lang="de"]
    .snap-slider-captions
    .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long),
  html[lang="ru"]
    .snap-slider-captions
    .slide-subtitle:not(.slide-subtitle-long):not(.slide-subtitle-extra-long) {
    font-size: 15px;
    line-height: 22px;
  }
}

/* Loading state */
.language-loading .language-toggle-btn {
  pointer-events: none;
  opacity: 0.6;
}

/* Accessibility improvements */
.language-modal {
  font-family: "Poppins", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .language-toggle-btn,
  .language-modal,
  .flag-circle,
  .language-option {
    transition: none;
  }

  .language-changing .flag-circle {
    animation: none;
  }
}

/* Click outside to close */
.language-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: transparent;
}

/* Alt menü öğeleri için özel kurallar - Basit çözüm */
.classic-menu .flexnav .sub-menu li a,
.classic-menu .flexnav .sub-sub-menu li a {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.classic-menu .flexnav .sub-menu [data-i18n]:not(.i18n-ready)::after,
.classic-menu .flexnav .sub-sub-menu [data-i18n]:not(.i18n-ready)::after {
  display: none !important;
}

.classic-menu .flexnav .sub-menu [data-i18n],
.classic-menu .flexnav .sub-sub-menu [data-i18n] {
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Smooth transitions for text changes */
[data-i18n] {
  transition: opacity 0.2s ease-in-out;
}

[data-i18n].changing {
  opacity: 0;
}

/* FOUC Prevention - Hide untranslated content initially */
html.lang-tr [data-i18n="nav.index"]:not(.i18n-ready)::after {
  content: "Anasayfa";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-tr [data-i18n="nav.projects"]:not(.i18n-ready)::after {
  content: "Projeler";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-tr [data-i18n="nav.about"]:not(.i18n-ready)::after {
  content: "Hakkımızda";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-tr [data-i18n="nav.resources"]:not(.i18n-ready)::after {
  content: "Kaynaklar";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-tr [data-i18n="buttons.letstalk"]:not(.i18n-ready)::after {
  content: "Konuşalım";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Russian FOUC Prevention */
html.lang-ru [data-i18n="nav.index"]:not(.i18n-ready)::after {
  content: "Главная";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-ru [data-i18n="nav.projects"]:not(.i18n-ready)::after {
  content: "Проекты";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-ru [data-i18n="nav.about"]:not(.i18n-ready)::after {
  content: "О нас";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-ru [data-i18n="nav.resources"]:not(.i18n-ready)::after {
  content: "Ресурсы";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-ru [data-i18n="buttons.letstalk"]:not(.i18n-ready)::after {
  content: "Давайте поговорим";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* German FOUC Prevention */
html.lang-de [data-i18n="nav.index"]:not(.i18n-ready)::after {
  content: "Startseite";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-de [data-i18n="nav.projects"]:not(.i18n-ready)::after {
  content: "Projekte";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-de [data-i18n="nav.about"]:not(.i18n-ready)::after {
  content: "Über uns";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-de [data-i18n="nav.resources"]:not(.i18n-ready)::after {
  content: "Ressourcen";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-de [data-i18n="buttons.letstalk"]:not(.i18n-ready)::after {
  content: "Sprechen wir";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spanish FOUC Prevention */
html.lang-es [data-i18n="nav.index"]:not(.i18n-ready)::after {
  content: "Inicio";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-es [data-i18n="nav.projects"]:not(.i18n-ready)::after {
  content: "Proyectos";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-es [data-i18n="nav.about"]:not(.i18n-ready)::after {
  content: "Acerca de";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-es [data-i18n="nav.resources"]:not(.i18n-ready)::after {
  content: "Recursos";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-es [data-i18n="buttons.letstalk"]:not(.i18n-ready)::after {
  content: "Hablemos";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arabic FOUC Prevention */
html.lang-sa [data-i18n="nav.index"]:not(.i18n-ready)::after {
  content: "الرئيسية";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-sa [data-i18n="nav.projects"]:not(.i18n-ready)::after {
  content: "المشاريع";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-sa [data-i18n="nav.about"]:not(.i18n-ready)::after {
  content: "حولنا";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-sa [data-i18n="nav.resources"]:not(.i18n-ready)::after {
  content: "الموارد";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-sa [data-i18n="buttons.letstalk"]:not(.i18n-ready)::after {
  content: "فلنتحدث";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* French FOUC Prevention */
html.lang-fr [data-i18n="nav.index"]:not(.i18n-ready)::after {
  content: "Accueil";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-fr [data-i18n="nav.projects"]:not(.i18n-ready)::after {
  content: "Projets";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-fr [data-i18n="nav.about"]:not(.i18n-ready)::after {
  content: "À propos";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-fr [data-i18n="nav.resources"]:not(.i18n-ready)::after {
  content: "Ressources";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.lang-fr [data-i18n="buttons.letstalk"]:not(.i18n-ready)::after {
  content: "Parlons";
  position: absolute;
  top: 0;
  left: 0;
  background: inherit;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make translatable elements positioned to support pseudo elements */
[data-i18n] {
  position: relative;
}

/* Hide original text when showing translation overlay */
html.lang-tr [data-i18n]:not(.i18n-ready) {
  color: transparent;
}

html.lang-ru [data-i18n]:not(.i18n-ready) {
  color: transparent;
}

html.lang-de [data-i18n]:not(.i18n-ready) {
  color: transparent;
}

html.lang-es [data-i18n]:not(.i18n-ready) {
  color: transparent;
}

html.lang-sa [data-i18n]:not(.i18n-ready) {
  color: transparent;
}

html.lang-fr [data-i18n]:not(.i18n-ready) {
  color: transparent;
}

/* Flag container styling - remove conflicting content rules */
#currentFlag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove flag flash prevention - let JavaScript handle this */
