/* ==========================================================================
   Sağ altta sabit WhatsApp butonu
   Kapalı hâlde sadece ikon; üzerine gelince etiket açılır.
   ========================================================================== */

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;

    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    border-radius: 28px;

    background: #25D366;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .38);
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.wa-float:hover,
.wa-float:focus {
    background: #1eb457;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .5);
}

/* Klavye ile gezenler için görünür odak halkası */
.wa-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.wa-float i {
    flex: 0 0 24px;
    font-size: 26px;
    line-height: 1;
    text-align: center;
}

.wa-float__label {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    transition: max-width .28s ease, margin-left .28s ease, opacity .2s ease;
}

.wa-float:hover .wa-float__label,
.wa-float:focus .wa-float__label {
    max-width: 180px;
    margin-left: 10px;
    opacity: 1;
}

/* Dikkat çeken nabız halkası.
   Butonda overflow:hidden YOK; olsaydı halka kırpılırdı. */
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    animation: wa-pulse 2.6s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   Tema'nın "yukarı çık" düğmesi (#toTop) style.css içinde sağ alt köşeye
   sabitlenmiş (right:40px; bottom:15px) ve WhatsApp balonuyla üst üste
   biniyordu. Balon köşede kalır — asıl eylem çağrısı o — toTop üstüne alınır.
   Aynı özgüllük (#id) ama bu dosya sonra yüklendiği için burası geçerli olur.
   -------------------------------------------------------------------------- */
#toTop {
    right: 25px;   /* balonun yatay merkeziyle hizalanır: 22 + 56/2 - 50/2 */
    bottom: 90px;  /* balonun üst kenarı 78px; 12px boşluk bırakır */
}

/* Dokunmatik cihazlarda hover yok; etiket kapalı kalır, buton biraz küçülür */
@media (max-width: 767px) {
    .wa-float {
        right: 16px;
        bottom: 16px;
        height: 52px;
        padding: 0 14px;
    }

    .wa-float i {
        font-size: 24px;
    }

    #toTop {
        right: 17px;   /* 16 + 52/2 - 50/2 */
        bottom: 80px;  /* balonun üst kenarı 68px */
    }
}

@media (prefers-reduced-motion: reduce) {

    .wa-float,
    .wa-float__label {
        transition: none;
    }

    .wa-float::after {
        animation: none;
    }
}
