/* ==========================================================================
   YUKARI ÇIK BUTONU - SİBER KUMANDA / KAPSÜL TEMA (TEK BUTON)
   ========================================================================== */

.ae-scroll-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99997;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* KUMANDA ŞEKLİNDE KAPSÜL BUTON */
.ae-scroll-btn {
    position: relative;
    width: 44px;
    height: 60px; /* Yuvarlak yerine kumanda/kapsül formu için uzunluk */
    border-radius: 30px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 10, 25, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 176, 255, 0.35);
    color: #00f0ff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 176, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    overflow: hidden;
}

/* AKTİF OLUŞ ANIMASYONU */
.ae-scroll-btn.ae-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* HOVER VE NEON IŞILDAMA EFEKTİ */
.ae-scroll-btn:hover {
    background: rgba(0, 176, 255, 0.15);
    border-color: #00f0ff;
    color: #ffffff;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.6);
}

/* İÇERİDEKİ OK İÇİN HAREKETLİ ENERJİ ANİMASYONU */
.ae-scroll-btn i {
    transition: all 0.3s ease;
}

.ae-scroll-btn:hover i {
    animation: ae-arrow-fly 0.8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 8px #00f0ff);
}

@keyframes ae-arrow-fly {
    0% { transform: translateY(2px); }
    100% { transform: translateY(-4px); }
}

/* TOOLTIP (SOLA AÇILAN ETİKET) */
.ae-scroll-tooltip {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(3, 10, 25, 0.95);
    color: #00f0ff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.ae-scroll-tooltip::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(3, 10, 25, 0.95);
}

.ae-scroll-btn:hover .ae-scroll-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* MOBİL EKRAN UYUMU (MİNİK BOYUT) */
@media (max-width: 768px) {
    .ae-scroll-wrapper {
        bottom: 18px;
        right: 18px;
    }

    .ae-scroll-btn {
        width: 36px;
        height: 50px;
        font-size: 1rem;
        border-radius: 20px;
    }

    .ae-scroll-tooltip {
        display: none;
    }
}