/* /public/assets/css/back-to-top.css
   -------------------------------------------------------
   Back-to-top floating button + circular progress ring.
   - Progress ring stroke uses brand blue: #0099ff
*/

#backToTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

html[data-theme="light"] #backToTop{
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.04);
}

#backToTop.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop .btt-icon{
  position: relative;
  z-index: 2;
  font-weight: 800;
  line-height: 1;
  font-size: 16px;
}

/* SVG ring sits on top but doesn't block clicks */
#backToTop svg{
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  z-index: 1;
  pointer-events: none;
}

#backToTop .ring-bg{
  stroke: rgba(255,255,255,0.18);
}
html[data-theme="light"] #backToTop .ring-bg{
  stroke: rgba(0,0,0,0.14);
}

#backToTop .ring{
  stroke: #0099ff;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 60ms linear;
}

/* small screens */
@media (max-width: 480px){
  #backToTop{
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }
  #backToTop svg{
    width: 48px;
    height: 48px;
  }
}
