/* ========================================================= */
/* --- ERKAP KAPI - PREMİUM SCROLL TO TOP STYLES --- */
/* ========================================================= */

.scroll-top-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #11151a; /* Erkap Kapı Koyu Zemin */
    border: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* Sayfa aşağı inildiğinde görünür sınıfı */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* --- SVG İLERLEME HALKASI (ORANTILI ÖLÇEKLENEN) --- */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Başlangıç noktasını üste alır */
    pointer-events: none;
}

.progress-ring__circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

.progress-ring__circle {
    fill: none;
    stroke: #c59d5f; /* Altın Rengi */
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

/* --- İÇ İKON --- */
.scroll-btn-content {
    position: relative;
    z-index: 2;
    color: #e8cb93;
    font-size: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- HOVER VE ETKİLEŞİM EFEKTLERİ --- */
.scroll-top-btn:hover {
    background: #171c23;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(197, 157, 95, 0.3);
}

.scroll-top-btn:hover .scroll-btn-content {
    color: #ffffff;
    transform: translateY(-2px);
}

.scroll-top-btn:hover .progress-ring__circle {
    stroke: #e8cb93; /* Hover sırasında parlak altın */
}

/* --- TOOLTIP (SOLA AÇILAN ETİKET) --- */
.scroll-tooltip {
    position: absolute;
    right: 62px;
    background: #11151a;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(197, 157, 95, 0.3);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.scroll-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #11151a;
    border-top: 1px solid rgba(197, 157, 95, 0.3);
    border-right: 1px solid rgba(197, 157, 95, 0.3);
}

.scroll-top-btn:hover .scroll-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- MOBİL UYUMLULUK (Revize Edildi: SVG Bozulması Engellendi) --- */
@media screen and (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-btn-content {
        font-size: 13px;
    }

    .scroll-tooltip {
        display: none; /* Mobilde dokunmatik ekranlar için etiket kapatıldı */
    }
}