/* Translate Widget Component - StatusDraft */

:root {
  /* Brand Colors */
  --main-accent: #141EC8;
  --main-accent-glow: rgba(20, 30, 200, 0.4);

  /* Legacy aliases for compatibility */
  --ultramarine: var(--main-accent);
}

.translate-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.translate-toggle {
  width: 48px;
  height: 48px;
  background: var(--main-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--main-accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.translate-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px var(--main-accent-glow);
}

.translate-toggle svg {
  width: 24px;
  height: 24px;
  color: white;
}

.translate-dropdown {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.translate-widget.active .translate-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.translate-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #e5e5e5;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.translate-option:hover {
  background: rgba(20, 30, 200, 0.2);
  color: white;
}

.translate-option .flag {
  font-size: 1.25rem;
  line-height: 1;
}

/* Hide Google Translate banner and frame */
.goog-te-banner-frame,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-gadget {
  display: none !important;
}

/* Disable Google Translate highlight on hover */
.goog-text-highlight {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

font {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
