/* ==========================================================================
   Language Switcher Styles (English & Armenian)
   ========================================================================== */

/* Topbar right container for social links and language switcher */
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: nowrap;
}

/* Ensure social links never wrap onto second line */
.topbar-social-links {
  text-align: right;
  white-space: nowrap;
}

.topbar-social-links ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.topbar-social-links ul li {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Divider & Topbar Language Switcher */
.lang-switcher-topbar {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switcher-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2px 3px;
  gap: 2px;
  user-select: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  line-height: 1;
  border: none;
  background: transparent;
  font-family: inherit;
}

.lang-btn .flag-icon {
  display: inline-flex;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.lang-btn .flag-icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.lang-btn.active {
  background: var(--accent-color, #CD6600);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(205, 102, 0, 0.4);
}

/* Floating Language Badge (Mobile & Responsive Quick Toggle) */
.lang-switcher-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  background: rgba(17, 35, 93, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 6px;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.lang-switcher-float .lang-btn {
  font-size: 12px;
  padding: 5px 10px;
  color: #ffffff;
}

@media (min-width: 992px) {
  .lang-switcher-float {
    display: none; /* Hide floating badge on desktop where topbar is visible */
  }
}

@media (max-width: 991px) {
  .lang-switcher-topbar {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .topbar .row {
    justify-content: center !important;
  }
  .topbar-right {
    margin-top: 8px;
    justify-content: center !important;
  }
}

/* Prevent Google Translate banner and tooltip artifacts */
body {
  top: 0 !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
