/**
 * back-to-top.css
 * Path: public_html/css/back-to-top.css
 * Version: 2.0.2
 * 
 * Back to top button - centered, rectangular, arrow only
 */

.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9990;
    
    /* Rectangle shape */
    width: 50px;
    height: 44px;
    border-radius: 8px;
    
    /* Style */
    background: #3b82f6;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    
    /* Shadow */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    
    /* Center arrow */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Strip browser button chrome */
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    font-family: inherit;
    line-height: 1;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.back-to-top:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.back-to-top:active {
    transform: translateX(-50%) translateY(2px);
}

/* Mobile - larger touch target */
@media (max-width: 768px) {
    .back-to-top {
        width: 56px;
        height: 48px;
        font-size: 22px;
        bottom: 24px;
    }
}



/* Dark mode */
[data-theme="dark"] .back-to-top {
    background: #3b82f6;
}

[data-theme="dark"] .back-to-top:hover {
    background: #60a5fa;
}