/**
 * Scroll to Top Button Styles
 * 
 * Description: Smooth scroll-to-top button with brand colors
 * Used in: features/scroll-to-top/scroll-to-top.php
 * Dependencies: Tailwind CSS, animations.css
 */

/* Scroll to top button positioning */
.scroll-to-top-btn {
    /* Position above sticky contact but below modals */
    z-index: 40;
    
    /* Smooth transitions for all states */
    transition: all var(--duration-normal, 300ms) var(--ease-smooth, cubic-bezier(0.4, 0, 0.2, 1));
    
    /* Initial hidden state */
    transform: translateY(20px);
}

/* Show state when scrolled */
.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effects */
.scroll-to-top-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(92, 225, 230, 0.3);
}

/* Active state */
.scroll-to-top-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Mobile adjustments - position above sticky contact */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 5.5rem; /* 88px - above sticky contact on mobile */
        right: 1rem;    /* 16px */
        width: 48px;
        height: 48px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .scroll-to-top-btn {
        bottom: 6rem;   /* 96px */
        right: 1.5rem;  /* 24px */
    }
}

/* Desktop adjustments */
@media (min-width: 1025px) {
    .scroll-to-top-btn {
        bottom: 6rem;   /* 96px - above sticky contact */
        right: 1.5rem;  /* 24px */
    }
}

/* Animation for scroll progress indicator (optional enhancement) */
.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(92, 225, 230, 0.3) var(--scroll-progress, 0deg), transparent var(--scroll-progress, 0deg));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.scroll-to-top-btn.show::before {
    opacity: 1;
}
