/* ═══════════════════════════════════════════
   eSarkari Translation Bar Styles
   Positioned directly below the Navbar
   ═══════════════════════════════════════════ */

/* Hide Google Translate default elements */
.goog-te-banner-frm, .goog-te-balloon-frm,
#goog-gt-tt, .goog-tooltip, .goog-tooltip:hover,
.goog-text-highlight, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* ── Translation Strip (below navbar) ── */
#translate-bar {
  width: 100%;
  background: linear-gradient(135deg, #110a14 0%, #1e0d24 100%);
  border-bottom: 1px solid rgba(208, 45, 129, 0.25);
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 99;
}

.tbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 20px;
  gap: 10px;
}

.tbar-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

.tbar-current {
  background: rgba(208, 45, 129, 0.12);
  border: 1px solid rgba(208, 45, 129, 0.3);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tbar-current:hover {
  background: rgba(208, 45, 129, 0.25);
  border-color: rgba(208, 45, 129, 0.55);
  box-shadow: 0 0 12px rgba(208, 45, 129, 0.15);
}

.tbar-chevron {
  transition: transform 0.25s ease;
}

/* ── Slide-in Language Panel ── */
.tbar-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tbar-panel.open {
  right: 0;
}

.tbar-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0f0a12, #2a1030);
  color: #fff;
  flex-shrink: 0;
}

.tbar-panel-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.tbar-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.tbar-panel-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Search */
.tbar-search-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.tbar-search-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tbar-search-wrap input:focus {
  border-color: #d02d81;
  box-shadow: 0 0 0 3px rgba(208, 45, 129, 0.12);
}

/* Language List */
.tbar-lang-list {
  overflow-y: auto;
  flex: 1;
}

.tbar-group-title {
  padding: 10px 20px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.tbar-lang-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
  gap: 10px;
}

.tbar-lang-item:hover {
  background: #fdf2f8;
}

.tbar-lang-item.active {
  background: rgba(208, 45, 129, 0.06);
}

.tbar-lang-native {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  min-width: 80px;
}

.tbar-lang-en {
  font-size: 0.85rem;
  color: #64748b;
  flex: 1;
}

.tbar-check {
  color: #d02d81;
  font-size: 1.1rem;
  font-weight: 700;
}

.tbar-no-result {
  text-align: center;
  padding: 30px 20px;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Backdrop */
.tbar-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.tbar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ── Mobile Responsive ── */
@media (max-width: 600px) {
  .tbar-inner {
    padding: 6px 12px;
    justify-content: center;
  }
  .tbar-label {
    font-size: 0.72rem;
  }
  .tbar-current {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .tbar-panel {
    width: 100%;
    right: -100%;
  }
}
