/* ===============================================================
 * Floating WhatsApp FAB
 * Her sayfada sağ-alt sabit, pulse ring + tooltip
 * =============================================================== */

.wa-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0,0,0,.15);
    z-index: 9998;
    text-decoration: none !important;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
    animation: waFloat 4s ease-in-out infinite;
}
.wa-fab:hover,
.wa-fab:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 12px 34px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0,0,0,.2);
    color: #fff !important;
    text-decoration: none !important;
    outline: none;
}
.wa-fab-icon {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Pulse ring */
.wa-fab-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: waPulse 2s ease-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: .8; }
    80% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.wa-fab:hover { animation: none; }
.wa-fab:hover .wa-fab-ring { animation-play-state: paused; }

/* Tooltip (desktop only) */
.wa-fab::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #1A1A1A;
    color: #fff;
    padding: 9px 14px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.wa-fab::after {
    content: "";
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #1A1A1A;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    pointer-events: none;
}
.wa-fab:hover::before,
.wa-fab:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.wa-fab:hover::after,
.wa-fab:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile */
@media (max-width: 768px) {
    .wa-fab {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .wa-fab-icon { width: 26px; height: 26px; }
    .wa-fab::before, .wa-fab::after { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wa-fab, .wa-fab-ring { animation: none !important; }
}
