/**
 * ============================================================================
 * BACK TO TOP BUTTON COMPONENT
 * Smooth scroll to top functionality
 * ============================================================================
 */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-2xl);
    left: var(--spacing-md);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-pink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-pink-hover);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top i {
    font-size: 1.125rem;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .back-to-top {
        bottom: calc(var(--mobile-cta-height) + var(--spacing-md));
        width: 44px;
        height: 44px;
    }
}