/* ============================================================
   NaviGo Tech Solutions - Global Internationalization (i18n)
   Multi-Currency & Multilingual Styles (with RTL Arabic Support)
   ============================================================ */

/* Top bar switcher container */
.i18n-bar-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.i18n-selector-wrap {
  position: relative;
  display: inline-block;
}

.i18n-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.4;
  outline: none;
  white-space: nowrap;
}

.i18n-btn:hover,
.i18n-btn:focus {
  background: rgba(30, 144, 255, 0.25);
  border-color: #1E90FF;
  color: #fff;
}

/* Light navbar fallback (if mounted outside dark top-bar) */
.navbar-main .i18n-btn,
nav.navbar:not(.top-bar) .i18n-btn {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
}
.navbar-main .i18n-btn:hover,
nav.navbar:not(.top-bar) .i18n-btn:hover {
  background: rgba(30, 144, 255, 0.12);
  border-color: #1E90FF;
  color: #1E90FF;
}

@media (max-width: 768px) {
  .i18n-bar-controls {
    gap: 6px;
    margin-left: auto;
  }
  .i18n-btn {
    font-size: 0.72rem;
    padding: 3px 8px;
  }
}
@media (max-width: 480px) {
  .top-bar-inner {
    justify-content: space-between;
  }
  .i18n-btn {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
}

.i18n-btn i.fa-chevron-down {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.i18n-selector-wrap.open .i18n-btn i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.i18n-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0b1526;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  min-width: 195px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  z-index: 10001;
  display: none;
  animation: i18nFadeIn 0.18s ease forwards;
}

.i18n-dropdown::-webkit-scrollbar {
  width: 5px;
}
.i18n-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
.i18n-dropdown::-webkit-scrollbar-thumb {
  background: #1E90FF;
  border-radius: 3px;
}

.i18n-selector-wrap.open .i18n-dropdown {
  display: block;
}

@keyframes i18nFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.i18n-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.i18n-option:hover {
  background: rgba(30, 144, 255, 0.18);
  color: #fff;
}

.i18n-option.active {
  background: #1E90FF;
  color: #fff;
  font-weight: 700;
}

.i18n-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.i18n-flag {
  font-size: 1rem;
  line-height: 1;
}

.i18n-code {
  font-weight: 700;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Floating Mobile Quick Switcher */
.i18n-floating-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  display: none;
  background: #071524;
  border: 1px solid rgba(30, 144, 255, 0.4);
  border-radius: 30px;
  padding: 6px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .i18n-bar-controls {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
}

/* Hide Google Translate Default Top Bar & Elements */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0px !important;
}
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
.skiptranslate {
  display: inline;
}
#google_translate_element {
  display: none;
}

/* RTL (Right to Left) Styles for Arabic */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', 'Heebo', 'Rubik', 'Segoe UI', Tahoma, sans-serif;
}

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

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

html[dir="rtl"] .navbar-brand {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .navbar-nav {
  margin-right: auto !important;
  margin-left: 0 !important;
  padding-right: 0;
}

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

html[dir="rtl"] .me-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

html[dir="rtl"] .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

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

/* Blog Articles RTL Styling */
html[dir="rtl"] .article-wrap {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .article-wrap ul,
html[dir="rtl"] .article-wrap ol {
  padding-left: 0;
  padding-right: 28px;
}

html[dir="rtl"] .ng-callout-box {
  border-left: none;
  border-right: 4px solid #0284C7;
  border-radius: 14px 0 0 14px;
}

/* Geo Welcome Pill Banner (Polite Top Banner on First Detect) */
.geo-welcome-banner {
  background: linear-gradient(90deg, #0b1526 0%, #11284a 100%);
  border-bottom: 1px solid rgba(30, 144, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.82rem;
  display: none;
  animation: geoSlideDown 0.3s ease;
}

.geo-welcome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-welcome-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.geo-welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.geo-welcome-btn {
  background: #1E90FF;
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.geo-welcome-btn:hover {
  background: #0070DD;
  color: #fff;
}

.geo-welcome-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.geo-welcome-close:hover {
  color: #fff;
}

@keyframes geoSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
