/**
 * Back to Top Button CSS
 * Created: 2026-01-23
 * Feature: Floating Back to Top icon with pill button
 *
 * UNIQUE: This is the ONLY floating icon that keeps its pill button visible on mobile
 *
 * REFACTORED: Phase 2 Icon Standardization (2026-02-01)
 * Base properties moved to floating-icons-base.css
 * This file contains ONLY back-to-top-specific overrides and unique styles.
 */

/* ============================================
   BACK TO TOP CONTAINER
   Base container from floating-icons-base.css
   ============================================ */
.back-to-top-container {
  bottom: 145px;
  z-index: 9550;
}

/* ============================================
   CIRCULAR ICON (Purple gradient)
   Base circle (with !important) from floating-icons-base.css
   ============================================ */
.back-to-top-icon,
.back-to-top-icon.btn-standard,
button.back-to-top-icon,
button.back-to-top-icon.btn-standard {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  box-shadow: 0 0 20px rgba(142, 68, 173, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: backToTopGlow 3s ease-in-out infinite;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
}

.back-to-top-icon:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.9), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Base focus from floating-icons-base.css */

/* Base FA from floating-icons-base.css */
.back-to-top-icon i {
  color: #ffffff;
}

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

@keyframes backToTopGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(155, 89, 182, 0.9), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   RESPONSIVE DESIGN (MOBILE)
   UNIQUE: Pill button REMAINS VISIBLE on mobile
   ============================================ */
@media (max-width: 768px) {
  /* Mobile gap=12px from floating-icons-base.css */

  /* UNIQUE BEHAVIOR: Keep pill visible on mobile */
  .pill-btn-back-to-top {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 12px;
  }

  /* Mobile circle size (45px) handled by floating-icons-base.css */
  /* Mobile FA size (20px) handled by floating-icons-base.css */
}

/* Reduced motion handled by floating-icons-base.css */
/* Additional pill-btn reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pill-btn-back-to-top {
    animation: none;
    transition: none;
  }
}
