/* Sociedade Tolkien Brasileira - Translation System */

.stb-translation-button {
  position: fixed;
  right: 26px;
  bottom: 160px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border: none;
  padding: 0;
  background: transparent url("/translation/translation-button.png") center / contain no-repeat;
  cursor: pointer;
  transition: all .3s ease;
}

.stb-translation-button:hover {
  transform: translateY(-4px);
}

.stb-translation-button::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 3px;
  width: 38px;
  height: 1px;
  background: rgba(214, 181, 109, 0.65);
}

.stb-translation-panel {
  position: fixed;
  right: 84px;
  bottom: 150px;
  z-index: 9999;
  width: 240px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(201, 174, 106, 0.45);
  color: #f5f1e8;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  font-family: Arial, sans-serif;
  display: none;
}

.stb-translation-panel.active {
  display: block;
}

.stb-translation-panel h3 {
  margin: 0 0 12px;
  color: #d6b56d;
  font-size: 16px;
  font-weight: 600;
}

.stb-translation-panel button {
  width: 100%;
  margin: 5px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(214,181,109,0.35);
  background: #1c1c1c;
  color: #f5f1e8;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.stb-translation-panel button:hover {
  background: #2a2418;
  color: #d6b56d;
}

/* Oculta elementos visuais do Google Translate */

#google_translate_element {
  display: none !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

body {
  top: 0 !important;
}

body > .skiptranslate {
  display: none !important;
}

@media (max-width: 700px) {
  .stb-translation-button {
    right: 22px;
    bottom: 150px;
    width: 38px;
    height: 38px;
  }

  .stb-translation-button::after {
    bottom: -6px;
    left: 3px;
    width: 32px;
  }

  .stb-translation-panel {
    right: 70px;
    left: 12px;
    bottom: 140px;
    top: auto;
    width: auto;
  }
}

.stb-translation-panel { max-height: calc(100vh - 190px); overflow-y: auto; }
.stb-translation-panel h4 { margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid rgba(214,181,109,0.25); color: #d6b56d; font-size: 14px; font-weight: 600; }
.stb-translation-panel button.is-on { background: #2a2418; color: #d6b56d; border-color: rgba(214,181,109,0.85); }
.stb-translation-panel .stb-elf-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: #b8b0a2; }
