/* ==========================================================================
   THEUZINHOTV - BOTÃO FLUTUANTE VOLTAR AO TOPO (BACK-TO-TOP.CSS)
   ==========================================================================
   Componente flutuante moderno, ultraleve e responsivo com glassmorphism,
   efeito hover premium em azul neon e rolagem suave com alta performance.
   ========================================================================== */

.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full, 50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.55), 0 0 14px rgba(var(--accent-rgb, 0, 132, 255), 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s,
              background var(--transition-fast, 0.2s ease),
              border-color var(--transition-fast, 0.2s ease),
              box-shadow var(--transition-fast, 0.2s ease);
  -webkit-tap-highlight-color: transparent;
}

.back-to-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--accent-blue, #0084ff);
  border-color: var(--accent-cyan, #38bdf8);
  color: var(--accent-on-primary, #ffffff);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb, 0, 132, 255), 0.45), 0 0 18px rgba(var(--accent-rgb, 0, 132, 255), 0.35);
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.95);
}

.back-to-top-btn:focus-visible {
  outline: 2px solid var(--accent-blue, #0084ff);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-btn,
  .back-to-top-btn svg {
    transition: none;
  }

  .back-to-top-btn:hover,
  .back-to-top-btn:hover svg,
  .back-to-top-btn:active {
    transform: none;
  }
}
