@charset "UTF-8";

/* =========================================================
   ANTALYA TURLARI — YUKARI ÇIK BUTONU
   Component: ks27-back-to-top
   ========================================================= */

.ks27-back-to-top {
    --ks27-btt-size: 58px;
    --ks27-btt-progress: 0deg;

    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 999;

    width: var(--ks27-btt-size);
    height: var(--ks27-btt-size);
    display: grid;
    place-items: center;

    padding: 0;
    border: 1px solid rgba(103, 229, 240, .58);
    border-radius: 18px;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            rgba(23, 198, 218, .96),
            rgba(8, 109, 151, .94)
        );

    box-shadow:
        0 16px 34px rgba(0, 53, 83, .34),
        0 0 24px rgba(28, 218, 235, .22),
        inset 0 1px 0 rgba(255, 255, 255, .28);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    cursor: pointer;
    isolation: isolate;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(.92);

    transition:
        opacity .24s ease,
        visibility .24s ease,
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.ks27-back-to-top[hidden] {
    display: grid;
}

.ks27-back-to-top::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .14),
            rgba(255, 255, 255, 0) 48%
        );
}

.ks27-back-to-top::after {
    content: "";
    position: absolute;
    inset: -45%;
    z-index: -2;
    background:
        linear-gradient(
            115deg,
            transparent 38%,
            rgba(255, 255, 255, .32) 49%,
            transparent 60%
        );
    transform: translateX(-80%) rotate(8deg);
    transition: transform .55s ease;
}

.ks27-back-to-top__progress {
    position: absolute;
    inset: -1px;
    z-index: -3;
    border-radius: inherit;

    background:
        conic-gradient(
            #70eff8 var(--ks27-btt-progress),
            rgba(255, 255, 255, .12) 0
        );

    -webkit-mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 3px),
            #000 calc(100% - 2px)
        );
    mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 3px),
            #000 calc(100% - 2px)
        );
}

.ks27-back-to-top__icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
}

.ks27-back-to-top__icon svg {
    width: 25px;
    height: 25px;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 34, 51, .30));
    transition: transform .22s ease;
}

.ks27-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ks27-back-to-top:hover {
    border-color: rgba(180, 247, 252, .92);
    transform: translateY(-4px) scale(1.055);
    box-shadow:
        0 20px 42px rgba(0, 53, 83, .40),
        0 0 32px rgba(28, 218, 235, .32),
        inset 0 1px 0 rgba(255, 255, 255, .34);
}

.ks27-back-to-top:hover::after {
    transform: translateX(80%) rotate(8deg);
}

.ks27-back-to-top:hover .ks27-back-to-top__icon svg {
    transform: translateY(-2px);
}

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

.ks27-back-to-top:focus-visible {
    outline: 3px solid rgba(65, 226, 240, .38);
    outline-offset: 4px;
}

/* WhatsApp veya sabit mobil araçlarla çakışmayı önlemek için */
body.has-floating-whatsapp .ks27-back-to-top,
body.ks27-has-floating-whatsapp .ks27-back-to-top {
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px));
}

@media (max-width: 760px) {
    .ks27-back-to-top {
        --ks27-btt-size: 52px;

        right: max(14px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        border-radius: 16px;
    }

    .ks27-back-to-top::before {
        border-radius: 14px;
    }

    .ks27-back-to-top__icon svg {
        width: 23px;
        height: 23px;
    }

    body.has-floating-whatsapp .ks27-back-to-top,
    body.ks27-has-floating-whatsapp .ks27-back-to-top {
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px));
    }
}

@media (max-width: 420px) {
    .ks27-back-to-top {
        --ks27-btt-size: 48px;
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .ks27-back-to-top__icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks27-back-to-top,
    .ks27-back-to-top::after,
    .ks27-back-to-top__icon svg {
        transition: none;
    }
}

@media print {
    .ks27-back-to-top {
        display: none !important;
    }
}
