.language-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-width: 220px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.language-popup.fade-out {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  visibility: hidden;
}

.language-popup-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: white;
  position: relative;
}

.language-icon {
  font-size: 18px;
  margin-right: 10px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.language-text {
  flex: 1;
}

.language-title {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.language-subtitle {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 1px;
}

.close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

#google_translate_element {
  padding: 0 16px 12px;
  background: rgba(255,255,255,0.95);
  margin: 0;
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(10px);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.language-popup.expanded #google_translate_element {
  max-height: 80px;
  padding: 12px 16px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Google Translate Styling */
.goog-logo-link { display: none !important; }
.goog-te-gadget { 
  font-size: 0 !important;
  padding: 12px 0 8px !important;
}
.goog-te-gadget > span > a { display: none !important; }
.goog-te-gadget .goog-te-combo { 
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: white !important;
  color: #334155 !important;
  width: 100% !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  transition: all 0.2s ease !important;
}
.goog-te-gadget .goog-te-combo:hover {
  border-color: #667eea !important;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15) !important;
}
.goog-te-gadget .goog-te-combo:focus {
  outline: none !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .language-popup {
    right: 16px;
    bottom: 16px;
    min-width: 200px;
  }
  .language-popup-header {
    padding: 10px 14px;
  }
  .language-icon {
    font-size: 16px;
    margin-right: 8px;
  }
  .language-title {
    font-size: 13px;
  }
  .language-subtitle {
    font-size: 10px;
  }
}