/* ============================================
   BACK TO TOP CSS - CHURROS TUBE
   Botão voltar ao topo com animação
   ============================================ */

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-all);
}

/* Estado visível */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover */
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

/* ========== ÍCONE ========== */
.back-to-top svg,
.back-to-top i {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
    color: var(--text-light);
    font-size: 24px;
    transition: var(--transition-transform);
}

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

/* ========== EFEITO PULSE SUTIL ========== */
.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 2s ease-in-out infinite;
    z-index: -1;
}

.back-to-top:hover::before {
    animation: none;
}

/* ========== VERSÃO COM PROGRESSO ========== */
.back-to-top.with-progress {
    background: transparent;
    border: 3px solid rgba(212, 20, 90, 0.2);
}

.back-to-top.with-progress::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
    transition: transform 0.1s linear;
}

.back-to-top.with-progress .back-to-top-inner {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 767px) {
    .back-to-top {
        bottom: 90px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg,
    .back-to-top i {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .back-to-top {
        bottom: 85px;
        left: 15px;
        width: 42px;
        height: 42px;
    }

    .back-to-top svg,
    .back-to-top i {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }
}

/* ========== ACESSIBILIDADE ========== */
.back-to-top:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* @media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity var(--transition-base), visibility var(--transition-base);
        transform: none;
    }

    .back-to-top.show {
        transform: none;
    }

    .back-to-top:hover {
        transform: none;
    }

    .back-to-top::before {
        animation: none;
    }
} */