/* ============================================================
   BREW & CO. — Floating Controls & Ambient Overlays
   Circular Progress Back-to-Top Button, Ambient Elements & Responsive
   ============================================================ */

/* ── BACK TO TOP BUTTON ── */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid var(--color-border);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.progress-ring {
  position: absolute;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.15s ease;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
}

.back-to-top__arrow {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
}

/* ── RESPONSIVE FLOATING CONTROLS ── */
@media (max-width: 768px) {
  .back-to-top {
    bottom: calc(var(--space-4) + var(--safe-bottom));
    right: calc(var(--space-4) + var(--safe-right));
    width: 46px;
    height: 46px;
  }
}
