/* ========================================
   SCROLL TO TOP BUTTON
   Add this block to components.css
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: var(--space-6, 1.5rem);
    right: var(--space-6, 1.5rem);
    z-index: 999;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary, #1a56db);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

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

.scroll-to-top:hover {
    background: var(--color-secondary, #1e40af);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
}

/* Responsive - smaller on mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 42px;
        height: 42px;
        bottom: var(--space-4, 1rem);
        right: var(--space-4, 1rem);
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
