/* Sociedade Tolkien Brasileira - Translation System */

.stb-translation-button {
  position: fixed;
  left: 25px;
  top: calc(50% - 154px);
  z-index: 9999;
  width: 45px;
  height: 45px;
  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: -16px;
  left: 3px;
  width: 39px;
  height: 1px;
  background: rgba(214, 181, 109, 0.65);
}

.stb-translation-panel {
  position: fixed;
  left: 86px;
  top: calc(50% - 170px);
  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 {
    left: 16px;
    top: auto;
    bottom: 240px;
    width: 40px;
    height: 40px;
  }

  .stb-translation-button::after {
    bottom: -13px;
    left: 4px;
    width: 32px;
  }

  .stb-translation-panel {
    left: 66px;
    right: 12px;
    bottom: 190px;
    top: auto;
    width: auto;
  }
}