/* =========================================
   Social Float Bar — Shared Across All Pages
   ========================================= */

.social-float-bar {
    position: fixed;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: rgba(12, 15, 22, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
}

.social-float-bar a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
}

/* Tooltip */
.social-float-bar a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    white-space: nowrap;
    padding: 6px 14px;
    background: rgba(12, 15, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.social-float-bar a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Call */
.float-call {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.float-call i {
    transform: scaleX(-1);
}

.float-call:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* WhatsApp */
.float-whatsapp {
    background: #25d366;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

.float-whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Instagram */
.float-insta {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 3px 12px rgba(225, 48, 108, 0.3);
}

.float-insta:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
}

/* JustDial */
.float-justdial {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.3);
    font-weight: 800;
    font-family: var(--font-display), sans-serif;
}

.float-justdial:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

.float-justdial .jd-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Mobile: Bottom Navigation Bar — Premium Design */
@media (max-width: 768px) {
    .social-float-bar {
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        gap: 0;
        min-height: 60px;
        padding: 6px 12px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 13, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
    }

    .social-float-bar a {
        width: auto;
        height: auto;
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 18px;
        padding: 0;
        position: relative;
    }

    /* Divider between icons */
    .social-float-bar a+a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 15%;
        bottom: 15%;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    }

    /* Icon circle glow */
    .social-float-bar a i,
    .social-float-bar a .jd-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .float-call i {
        background: rgba(16, 185, 129, 0.12);
        color: #10b981 !important;
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
    }

    .float-whatsapp i {
        background: rgba(37, 211, 102, 0.12);
        color: #25d366 !important;
        box-shadow: 0 0 16px rgba(37, 211, 102, 0.15);
        animation: whatsappPulse 2.5s ease-in-out infinite;
    }

    .float-insta i {
        background: rgba(225, 48, 108, 0.12);
        color: #e1306c !important;
        box-shadow: 0 0 16px rgba(225, 48, 108, 0.15);
    }

    .float-justdial .jd-icon {
        background: rgba(33, 150, 243, 0.12);
        box-shadow: 0 0 16px rgba(33, 150, 243, 0.15);
        padding: 6px;
        /* give spacing for bg glow */
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    /* Labels */
    .social-float-bar a::after {
        position: static;
        display: block;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        background: none;
        border: none;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        backdrop-filter: none;
    }

    .float-call::after {
        color: rgba(16, 185, 129, 0.7) !important;
    }

    .float-whatsapp::after {
        color: rgba(37, 211, 102, 0.7) !important;
    }

    .float-insta::after {
        color: rgba(225, 48, 108, 0.7) !important;
    }

    .float-justdial::after {
        color: rgba(33, 150, 243, 0.7) !important;
    }

    /* Override default icon colors in mobile */
    .float-call {
        color: #10b981 !important;
    }

    .float-whatsapp {
        color: #25d366 !important;
    }

    .float-insta {
        color: #e1306c !important;
    }

    .float-justdial {
        color: #2196F3 !important;
    }

    /* Tap feedback */
    .social-float-bar a:active {
        transform: scale(0.9);
    }

    .social-float-bar a:active i,
    .social-float-bar a:active .jd-icon {
        transform: scale(1.1);
    }

    /* WhatsApp pulse animation */
    @keyframes whatsappPulse {

        0%,
        100% {
            box-shadow: 0 0 16px rgba(37, 211, 102, 0.15);
        }

        50% {
            box-shadow: 0 0 24px rgba(37, 211, 102, 0.35),
                0 0 48px rgba(37, 211, 102, 0.1);
        }
    }
}