/* ==========================================
   PREFAB: Back to Top
   Gorgetesre megjeleno "vissza fel" gomb
   ========================================== */

.pf-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  display: grid;
  place-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.pf-back-to-top:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-3px);
}

.pf-back-to-top svg {
  width: 18px;
  height: 18px;
}

/* Progress ring valtozat */
.pf-back-to-top--progress {
  background: rgba(0,0,0,0.6);
}

.pf-back-to-top--progress svg.progress-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
}

.pf-back-to-top--progress .progress-ring-circle {
  fill: none;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 2;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.1s linear;
}

/* Vilagos valtozat */
.pf-back-to-top--light {
  background: rgba(255,255,255,0.9);
  color: #1e1d14;
  border-color: rgba(0,0,0,0.08);
}

.pf-back-to-top--light:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
