/* ========================================
   BACK TO TOP BUTTON COMPONENT
   ======================================== */

/**
 * Minimalistic reusable back-to-top button component
 * 
 * Usage in HTML:
 * <a href="#" class="btn btn-lg btn-primary rounded-0 btn-lg-square back-to-top">
 *   <i class="fa fa-angle-double-up"></i>
 * </a>
 * 
 * JavaScript (app.js) handles show/hide on scroll
 */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40, 120, 235, 0.25);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    padding: 0 !important;
    line-height: 1 !important;
    /* Hidden by default, shown via JS after 200px scroll */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top i {
    display: block;
    line-height: 1;
}

.back-to-top:hover {
    background: #1a5bb8;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(40, 120, 235, 0.3);
    text-decoration: none;
}

.back-to-top:focus {
    outline: 2px solid #2878eb;
    outline-offset: 2px;
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
}