﻿/* ---------------------------------------------------------------
   WhatsApp sabit destek butonu (sag alt)
   Canli sohbet widget'inin yerine kullanilir.
   Ikon: Font Awesome 6.4.2 brands (yerel)
   --------------------------------------------------------------- */

.whatsappFixed {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99990;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    text-decoration: none;
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

    .whatsappFixed:hover,
    .whatsappFixed:focus {
        background-color: #1da851;
        color: #fff;
        transform: scale(1.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
        text-decoration: none;
    }

    .whatsappFixed:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 3px;
    }

    .whatsappFixed i {
        position: relative;
        z-index: 1;
        font-size: 32px;
        line-height: 1;
    }

/* Nabiz / halka animasyonu */
.whatsappFixed-dalga {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: .75;
    z-index: 0;
    animation: whatsappDalga 2s infinite cubic-bezier(.3, 0, .5, 1);
}

@keyframes whatsappDalga {
    0% {
        transform: scale(1);
        opacity: .75;
    }

    70% {
        transform: scale(1.9);
        opacity: 0;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

/* Mobil */
@media only screen and (max-width: 767px) {
    .whatsappFixed {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }

        .whatsappFixed i {
            font-size: 28px;
        }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    .whatsappFixed-dalga {
        animation: none;
    }

    .whatsappFixed {
        transition: none;
    }

        .whatsappFixed:hover,
        .whatsappFixed:focus {
            transform: none;
        }
}

/* Yazdirmada gizle */
@media print {
    .whatsappFixed {
        display: none !important;
    }
}
