/* ==========================================================================
   Voice Typer Global Localization & Language Switcher Styles
   ========================================================================== */

/* 1. Complete Suppression of Third-Party Google Translate Elements & Banners */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0px !important;
  position: static !important;
}

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

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

#google_translate_element {
  display: none !important;
}

.skiptranslate:not(.vt-lang-container) {
  display: none !important;
}

/* 2. Header Navbar Language Picker */
.vt-lang-nav-item {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.vt-lang-picker {
  position: relative;
  font-family: Degular, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
}

.vt-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 999px;
  padding: 0.55em 1em;
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 4px 0px #000000;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1;
}

.vt-lang-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 5px 0px #000000;
  background: #faf9fc;
}

.vt-lang-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.vt-lang-flag {
  font-size: 1.15em;
  line-height: 1;
}

.vt-lang-arrow {
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.vt-lang-picker.is--open .vt-lang-arrow {
  transform: rotate(180deg);
}

.vt-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 6px 8px 0px #000000;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vt-lang-picker.is--open .vt-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vt-lang-option {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.85em;
  border-radius: 10px;
  color: #111827;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.vt-lang-option:hover {
  background: #f3f0ff;
  color: #5844ed;
}

.vt-lang-option.is--active {
  background: #ffd24a;
  color: #000000;
  font-weight: 800;
}

/* 3. Floating Quick-Switch Pill (Mobile & Universal) */
.vt-floating-lang {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  font-family: Degular, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
}

.vt-floating-lang .vt-lang-btn {
  background: #ffffff;
  padding: 0.7em 1.15em;
  box-shadow: 4px 6px 0px #000000;
  border: 2.5px solid #000000;
}

.vt-floating-lang .vt-lang-dropdown {
  bottom: calc(100% + 10px);
  top: auto;
  right: 0;
  transform: translateY(6px);
}

.vt-floating-lang.is--open .vt-lang-dropdown {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .vt-floating-lang {
    bottom: 16px;
    right: 16px;
  }
  .vt-floating-lang .vt-lang-btn {
    padding: 0.6em 0.9em;
    font-size: 0.88em;
  }
  .vt-lang-nav-item {
    margin: 8px 0;
  }
}
