/* Yüzen iletişim butonları — uydu/radar temalı dairesel ikon + her zaman görünür etiket */
.kaya-floating-contact a {
    position: fixed;
    bottom: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), filter .22s ease;
}
.kaya-floating-contact a:hover {
    transform: translateY(-3px);
    filter: saturate(1.15);
}
.kaya-floating-contact a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 999px;
}
/* İkon kabarcığı — dairesel, radar temalı. FontAwesome glifi .fa:before kullanır,
   bu yüzden dekorasyonlar bu wrapper'a konur; .fa i'nin kendi :before'ına dokunulmaz. */
.kaya-fab-icon {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255,255,255,.45);
    box-sizing: border-box;
}
.kaya-fab-icon i {
    font-size: 22px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
/* Dış çerçeve: uydu çanağı kadranı — çentikli halka + dönen radar taraması */
.kaya-fab-icon:before {
    content: "";
    position: absolute;
    inset: -9px;
    z-index: -1;
    border-radius: 50%;
    background:
        /* radar tarama huzmesi */
        conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.75) 34deg, rgba(255,255,255,0) 60deg),
        /* kadran çentikleri */
        repeating-conic-gradient(rgba(255,255,255,.55) 0deg 2deg, rgba(255,255,255,0) 2deg 15deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
    animation: kayaRadarSweep 4.5s linear infinite;
    opacity: .85;
}
.kaya-floating-contact a:hover .kaya-fab-icon:before {
    opacity: 1;
    animation-duration: 1.6s;
}
/* Sinyal dalgası — ikon çerçevesinden dışarı açılan halkalar */
.kaya-fab-icon:after {
    content: "";
    position: absolute;
    inset: -9px;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
    animation: kayaSignalWave 2.8s ease-out infinite;
}
/* Etiket: her zaman görünür pill — arka planı ikonla aynı renk */
.kaya-fab-label {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 8px 22px rgba(0,0,0,.32);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
/* Telefon — sağ alt köşe, ikon dışta (sağda), etiket sayfa içine (sola) doğru */
.kaya-floating-contact .kaya-call {
    right: 18px;
    right: calc(18px + env(safe-area-inset-right, 0px));
    flex-direction: row-reverse;
}
.kaya-floating-contact .kaya-call .kaya-fab-icon,
.kaya-floating-contact .kaya-call .kaya-fab-label {
    background: linear-gradient(135deg, #0A2FA8, #0B6FD8);
}
.kaya-floating-contact .kaya-call .kaya-fab-icon {
    background:
        linear-gradient(135deg, rgba(255,255,255,.2), transparent 45%, rgba(255,255,255,.08)),
        linear-gradient(135deg, #0A2FA8, #0B6FD8);
    box-shadow: 0 10px 24px rgba(0,0,0,.28), 0 0 14px rgba(0,213,255,.55), 0 0 34px rgba(22,93,255,.4);
}
.kaya-floating-contact .kaya-call .kaya-fab-icon:after { color: rgba(0,213,255,.85); }
/* WhatsApp — sol alt köşe, ikon dışta (solda), etiket sayfa içine (sağa) doğru */
.kaya-floating-contact .kaya-whatsapp {
    left: 18px;
    left: calc(18px + env(safe-area-inset-left, 0px));
}
.kaya-floating-contact .kaya-whatsapp .kaya-fab-icon,
.kaya-floating-contact .kaya-whatsapp .kaya-fab-label {
    background: linear-gradient(135deg, #07733A, #12A44F);
}
.kaya-floating-contact .kaya-whatsapp .kaya-fab-icon {
    background:
        linear-gradient(135deg, rgba(255,255,255,.2), transparent 45%, rgba(255,255,255,.08)),
        linear-gradient(135deg, #07733A, #12A44F);
    box-shadow: 0 10px 24px rgba(0,0,0,.28), 0 0 14px rgba(37,211,102,.55), 0 0 34px rgba(37,211,102,.4);
}
.kaya-floating-contact .kaya-whatsapp .kaya-fab-icon:after { color: rgba(37,211,102,.85); animation-delay: 1.4s; }

@keyframes kayaRadarSweep {
    to { transform: rotate(360deg); }
}
@keyframes kayaSignalWave {
    0%   { transform: scale(1);   opacity: .7; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .kaya-floating-contact a,
    .kaya-fab-icon:before,
    .kaya-fab-icon:after {
        animation: none;
        transition: none;
    }
    .kaya-fab-icon:after { display: none; }
}
@media (max-width: 575px) {
    .kaya-floating-contact {
        gap: 16px;
    }
    .kaya-floating-contact a {
        gap: 8px;
    }
    .kaya-fab-icon {
        width: 48px;
        height: 48px;
    }
    .kaya-fab-icon i {
        font-size: 19px;
    }
    .kaya-fab-label {
        padding: 7px 12px;
        font-size: 12px;
    }
    /* Dar ekranda etiketler ortada çakışmasın diye telefon butonu yukarı taşınır */
    .kaya-floating-contact .kaya-call {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }
}
