/* Scroll to Top Button Styles - Woodworking Dynamics Theme */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-green, #999900);
    color: var(--white, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(153, 153, 0, 0.3);
    text-decoration: none;
}

.scroll-to-top:hover {
    background-color: var(--brand-green-dark, #737300);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(153, 153, 0, 0.4);
    color: var(--white, #ffffff);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* Accessibility improvements */
.scroll-to-top:focus {
    outline: 3px solid var(--brand-green-light, #b3b300);
    outline-offset: 3px;
}

/* Animation when appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-to-top.show {
    animation: fadeInUp 0.4s ease;
}
