/* ============================================================
   FLOATING WIDGETS  —  WhatsApp + Chatbot (coming soon)
   widgets/floating-widgets.css
   ============================================================ */

/* --- Container that stacks all floating buttons --- */
.fw-stack {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    /* children opt-in */
}

/* ---- Shared button base ---- */
.fw-btn {
    pointer-events: all;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: none;
    outline: none;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
}

.fw-btn:hover {
    transform: scale(1.12);
}

/* ---- Tooltip label ---- */
.fw-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 17, 22, 0.88);
    color: #fff;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-50%) translateX(6px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fw-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---- WhatsApp button ---- */
.fw-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.18);
}

.fw-whatsapp:hover {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6),
        0 3px 12px rgba(0, 0, 0, 0.22);
}

.fw-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    display: block;
}

/* ---- Pulse ring animation ---- */
.fw-whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: fw-pulse 2.4s ease-out infinite;
}

@keyframes fw-pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    70% {
        transform: scale(1.65);
        opacity: 0;
    }

    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

/* ---- Chatbot button (placeholder, hidden until you add the chatbot) ---- */
.fw-chatbot {
    background: linear-gradient(135deg, #4F6EF7 0%, #7C3AED 100%);
    box-shadow: 0 4px 20px rgba(79, 110, 247, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.18);
    display: none;
    /* show when chatbot is ready */
}

.fw-chatbot:hover {
    box-shadow: 0 6px 28px rgba(79, 110, 247, 0.6),
        0 3px 12px rgba(0, 0, 0, 0.22);
}

.fw-chatbot svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    display: block;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 600px) {
    .fw-stack {
        bottom: 20px;
        right: 18px;
        gap: 12px;
    }

    .fw-btn {
        width: 50px;
        height: 50px;
    }

    .fw-btn::before {
        display: none;
        /* hide tooltip on mobile */
    }
}