/* ========================================================================
   MADHAV — GLOBAL FLOATING SOCIALS
   One reusable design for Facebook / Instagram / WhatsApp on every page.
   Prefix md-social-float prevents page-specific CSS from changing it.
   ======================================================================== */
.md-social-float {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10030;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.md-social-float__link {
    position: relative;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 15px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 21px;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(11, 58, 99, .18);
    transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
    -webkit-tap-highlight-color: transparent;
}

.md-social-float__link i {
    color: #fff !important;
    font-size: 21px;
    line-height: 1;
}

.md-social-float__link--facebook { background: #1877f2; }
.md-social-float__link--instagram { background: linear-gradient(135deg, #feda75 0%, #d62976 32%, #962fbf 64%, #4f5bd5 100%); }
.md-social-float__link--whatsapp { background: #25d366; }

.md-social-float__link:hover,
.md-social-float__link:focus-visible {
    transform: translateX(-5px) scale(1.06);
    box-shadow: 0 15px 34px rgba(11, 58, 99, .25);
    filter: saturate(1.06);
    outline: none;
}

.md-social-float__label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translate(8px, -50%);
    padding: 7px 10px;
    border-radius: 9px;
    background: #0b3a63;
    color: #fff;
    font: 600 12px/1.2 Inter, Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(11, 58, 99, .16);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.md-social-float__link:hover .md-social-float__label,
.md-social-float__link:focus-visible .md-social-float__label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

@media (max-width: 767px) {
    .md-social-float {
        right: 9px;
        gap: 7px;
    }

    .md-social-float__link {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
        font-size: 18px;
        box-shadow: 0 8px 20px rgba(11, 58, 99, .16);
    }

    .md-social-float__link i { font-size: 18px; }
    .md-social-float__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .md-social-float__link,
    .md-social-float__label { transition: none; }
}
