/* ============================================
   BASE.CSS - Shared styles across pages
   ============================================ */

/* ============================================
   SHARED ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dangerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 40, 40, 0.85), 0 0 22px rgba(255, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 14px rgba(255, 40, 40, 0), 0 0 36px rgba(255, 0, 0, 0.95);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 40, 40, 0), 0 0 22px rgba(255, 0, 0, 0.8);
    }
}

@keyframes dontTouchFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
        max-width: 420px;
        margin-right: 0;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    100% {
        opacity: 0;
        transform: scale(0.88);
        max-width: 0;
        margin-right: -0.2rem;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.floating-actions {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 6rem auto;
    width: fit-content;
}

.back-to-top,
.dont-touch-btn {
    display: block;
    font-family: var(--font-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: max-content;
}

.floating-actions .back-to-top {
    transition: transform 0.45s ease, margin 0.45s ease;
}

.back-to-top {
    background: linear-gradient(135deg, #555555, #333333);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #666666, #444444);
}

.dont-touch-btn {
    background: linear-gradient(135deg, #ff0000, #9e0000);
    border-color: rgba(255, 80, 80, 0.75);
    animation: dangerPulse 1s infinite ease-in-out;
}

.dont-touch-btn:hover {
    background: linear-gradient(135deg, #ff2a2a, #b30000);
}

.dont-touch-btn.is-hidden {
    display: none;
}

.dont-touch-btn.is-hiding {
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    animation: dontTouchFadeOut 0.45s ease forwards;
}

@media (max-width: 768px) {
    .floating-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
