/*
 * Scroll To Top / Bottom — MundoNovelas / Zeina
 * Dwa jednakowe przyciski: na dół i na górę strony.
 */

/* Ukrywa wcześniejsze, mniejsze strzałki dodane w stylu Zeina. */
html body #mn-scroll-down-fixed,
html body #scroll_to_top,
html body a.scroll-top,
html body button.scroll-top,
html body .scroll-top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mn-scroll-navigation {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mn-scroll-navigation.is-hidden {
    display: none;
}

.mn-scroll-button {
    position: relative;
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff !important;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    background:
        radial-gradient(circle at 32% 25%, rgba(255, 255, 255, .24), transparent 31%),
        linear-gradient(145deg, #ed4bb7 0%, #b540c8 48%, #7a4be3 100%);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    box-shadow:
        0 12px 30px rgba(164, 54, 194, .34),
        0 0 0 5px rgba(237, 75, 183, .07),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease;
}

.mn-scroll-button::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .17) 48%, transparent 70%);
    transform: translateX(-130%);
    transition: transform .45s ease;
}

.mn-scroll-button svg {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .28));
}

.mn-scroll-button.is-hidden {
    display: none;
}

.mn-scroll-button:hover,
.mn-scroll-button:focus-visible {
    color: #fff !important;
    filter: brightness(1.08);
    outline: none;
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 16px 36px rgba(164, 54, 194, .44),
        0 0 0 6px rgba(237, 75, 183, .1),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

.mn-scroll-button:hover::before,
.mn-scroll-button:focus-visible::before {
    transform: translateX(130%);
}

.mn-scroll-button:active {
    transform: translateY(-1px) scale(.98);
}

@media (max-width: 749px) {
    .mn-scroll-navigation {
        right: 14px;
        bottom: 16px;
        gap: 9px;
    }

    .mn-scroll-button {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mn-scroll-button,
    .mn-scroll-button::before {
        transition: none;
    }
}
