/* ============================================
   LUXURY FLOATING BUTTONS - $99k Aesthetic
   ============================================ */

/* Container - Clean positioning */
.floating-widgets {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column-reverse;
    /* Stack from bottom */
    gap: 20px;
    z-index: 10000;
    pointer-events: none;
    /* Allow clicking through container */
}

.floating-widgets a {
    pointer-events: auto;
}

/* Base Luxury Button Style */
.float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: visible;
    /* For tooltips/glows */
}

.float-btn i {
    font-size: 1.6rem;
    transition: transform 0.4s ease;
    z-index: 2;
}

/* Hover - Magnetic Lift & Glow */
.float-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

/* 1. WhatsApp Button - Premium Green/Gold */
.float-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.9), rgba(18, 140, 126, 0.95));
    color: white;
}

.float-whatsapp:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4);
}

/* 2. Phone Button - Deep Charcoal/Gold */
.float-phone {
    background: linear-gradient(135deg, #2c3e50, #000000);
    color: #d4af37;
    /* Gold Icon */
    border-color: rgba(212, 175, 55, 0.3);
}

.float-phone:hover {
    background: linear-gradient(135deg, #000000, #2c3e50);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: #d4af37;
}

/* 3. Free Demo Button - The "Hero" Action */
.float-demo {
    width: auto;
    min-width: max-content;
    /* Pill shape */
    height: 65px;
    padding: 0 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    color: #000;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulseGold 3s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-demo span {
    display: block;
    font-size: 0.95rem;
    z-index: 2;
    white-space: nowrap;
}

.float-demo::before {
    content: '✨';
    margin-right: 8px;
    font-size: 1.2rem;
}

.float-demo:hover {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #d4af37;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.6);
    transform: translateY(-8px) scale(1.05);
}

/* Tooltip Labels (On Hover) */
.float-btn::after {
    content: attr(aria-label);
    position: absolute;
    right: 80px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.float-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Animations */
@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Entry Animation */
.floating-widgets a {
    animation: slideInUp 0.6s cubic-bezier(0.2, 1, 0.3, 1) backwards;
}

.floating-widgets a:nth-child(1) {
    animation-delay: 0.2s;
}

/* Demo */
.floating-widgets a:nth-child(2) {
    animation-delay: 0.3s;
}

/* Phone */
.floating-widgets a:nth-child(3) {
    animation-delay: 0.4s;
}

/* WhatsApp */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .floating-widgets {
        bottom: 80px;
        right: 15px;
        left: auto;
        gap: 12px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }

    .float-btn i {
        font-size: 1.2rem;
    }

    .float-demo {
        height: 50px;
        padding: 0 18px;
    }

    .float-demo span {
        font-size: 0.75rem;
    }

    /* Disable tooltip on mobile */
    .float-btn::after {
        display: none;
    }

    /* Reduce z-index slightly on blog pages to ensure content is accessible */
    body.blog-page .floating-widgets {
        bottom: 20px;
        right: 10px;
        gap: 10px;
    }

    body.blog-page .float-btn {
        width: 45px;
        height: 45px;
        opacity: 0.9;
    }

    body.blog-page .float-demo {
        height: 45px;
        padding: 0 16px;
    }
}