/* ==========================================================================
   Floating Contact – Frontend Stilleri
   ========================================================================== */

#floating-contact-wrap {
    position: fixed !important;
    z-index: var(--fc-z-index, 99999) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--fc-gap, 12px) !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#floating-contact-wrap.fc-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Konumlandırma ── */
#floating-contact-wrap.fc-pos-bottom-right {
    bottom: var(--fc-bottom, 20px) !important;
    right: var(--fc-side, 20px) !important;
    align-items: flex-end !important;
}

#floating-contact-wrap.fc-pos-bottom-left {
    bottom: var(--fc-bottom, 20px) !important;
    left: var(--fc-side, 20px) !important;
    align-items: flex-start !important;
}

/* ── Buton Tasarımı ── */
.fc-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--fc-size, 54px) !important;
    height: var(--fc-size, 54px) !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
    outline: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.28s ease, 
                filter 0.2s ease !important;
}

.fc-btn:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
}

.fc-btn:active {
    transform: scale(0.94) !important;
}

/* ── WhatsApp Butonu ── */
.fc-btn-wa {
    background-color: var(--fc-wa-bg, #25D366) !important;
    color: var(--fc-wa-icon, #ffffff) !important;
}

/* ── Telefon Butonu ── */
.fc-btn-phone {
    background-color: var(--fc-phone-bg, #1452a4) !important;
    color: var(--fc-phone-icon, #ffffff) !important;
}

/* ── İkonlar ── */
.fc-btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
}

.fc-svg {
    width: calc(var(--fc-size, 54px) * 0.48) !important;
    height: calc(var(--fc-size, 54px) * 0.48) !important;
    fill: currentColor !important;
    display: block !important;
    transition: transform 0.25s ease !important;
}

/* ── Animasyonlar ── */

/* 1. Lift & Scale (Varsayılan ve Önerilen) */
.fc-anim-lift .fc-btn:hover {
    transform: translateY(-4px) scale(1.06) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32) !important;
}

.fc-anim-lift .fc-btn:hover .fc-svg {
    transform: scale(1.06) !important;
}

/* 2. Pulse (Sürekli Nabız) */
.fc-anim-pulse .fc-btn {
    animation: fc-pulse-anim 2.5s infinite ease-in-out !important;
}

.fc-anim-pulse .fc-btn:nth-child(2) {
    animation-delay: 1.25s !important;
}

@keyframes fc-pulse-anim {
    0% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 3. Glow */
.fc-anim-glow .fc-btn:hover {
    filter: brightness(1.12) !important;
    box-shadow: 0 0 20px currentColor !important;
}

/* ── Tooltip Balonu ── */
.fc-tooltip {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(15, 23, 42, 0.92) !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
    z-index: 100 !important;
}

/* Sağ alt için tooltip sol tarafta çıkar */
.fc-pos-bottom-right .fc-tooltip {
    right: calc(100% + 12px) !important;
    transform: translateY(-50%) translateX(6px) !important;
}

.fc-pos-bottom-right .fc-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 100% !important;
    transform: translateY(-50%) !important;
    border-width: 5px !important;
    border-style: solid !important;
    border-color: transparent transparent transparent rgba(15, 23, 42, 0.92) !important;
}

/* Sol alt için tooltip sağ tarafta çıkar */
.fc-pos-bottom-left .fc-tooltip {
    left: calc(100% + 12px) !important;
    transform: translateY(-50%) translateX(-6px) !important;
}

.fc-pos-bottom-left .fc-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: 100% !important;
    transform: translateY(-50%) !important;
    border-width: 5px !important;
    border-style: solid !important;
    border-color: transparent rgba(15, 23, 42, 0.92) transparent transparent !important;
}

.fc-btn:hover .fc-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(0) !important;
}

/* ── Cihaz Görünürlük Kuralları ── */
@media (min-width: 769px) {
    .fc-device-mobile_only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .fc-device-desktop_only {
        display: none !important;
    }

    /* Mobilde dokunmatik ekranlarda tooltip'i gizle */
    .fc-tooltip {
        display: none !important;
    }
}
