/* ========================================================================
   GOOGLE TRANSLATE — Levercount fix
   -------------------------------------------------------------------------
   Dedicated translate-only stylesheet. No need to edit the main style.css.
   
   • .gt-wrap — fixed top-right button, never clipped by header/nav
   • Custom button replaces Google's non-scrollable native dropdown
   • .gt-dropdown — scrollable custom language list (vertical + touch)
   • Actual translation is performed by Google Translate via the googtrans cookie
   ======================================================================== */

/* Container — fixed top-right, not clipped by header/nav ancestors */
.gt-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
  font-family: 'Outfit', 'DM Sans', sans-serif;
}

/* Hide Google's native button; we render our own custom button instead */
.gt-wrap #google_translate_element {
  display: none !important;
}

/* Our custom button — Levercount accent colour, matches theme */
.gt-btn {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: unset !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.30) !important;
}
.gt-btn:hover {
  background: #059669 !important;
}

/* Hide Google's default banner; stop page from jumping */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* Custom dropdown — appears below the button */
.gt-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  width: 300px;
  max-height: 60vh;
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.45);
  z-index: 100001;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  overflow: hidden;
  flex-direction: column;
}
.gt-dropdown.open {
  display: flex;
}

.gt-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.gt-dropdown-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.gt-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
}

/* Scrollable language list — vertical scroll, touch-friendly */
.gt-lang-list {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  max-height: calc(60vh - 60px);
  padding: 6px 0;
  flex: 1;
}

.gt-lang-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #e8e8ef;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
}
.gt-lang-item:hover {
  background: #10b981;
  color: #ffffff;
}

/* Mobile adjustments — keep clear of hamburger menu */
@media (max-width: 991px) {
  .gt-wrap { top: 12px; right: 92px; }
  .gt-dropdown { top: 38px; right: 0; width: 280px; }
}
