﻿
/* =========================================================
   RDS FLOATING SOCIAL MEDIA
   PREMIUM DESIGN
   ALWAYS VISIBLE
   FULL RESPONSIVE
   ========================================================= */
/* =========================================================
   MAIN FLOATING CONTAINER
   ========================================================= */
.rds-floating-social {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px 8px 9px 7px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-right: none;
    border-radius: 18px 0 0 18px;
    box-shadow: -5px 8px 28px rgba(0, 0, 0, 0.17);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   SOCIAL ITEM
   ========================================================= */

.rds-floating-social-item {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    transition: width 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}


/* =========================================================
   ICON
   ========================================================= */

.rds-social-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    z-index: 2;
    transition: transform 0.25s ease;
}


/* =========================================================
   TEXT
   ========================================================= */

.rds-social-text {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) translateX(12px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s ease;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.rds-social-whatsapp {
    background: linear-gradient( 135deg, #20c863, #25d366 );
}


/* =========================================================
   FACEBOOK
   ========================================================= */

.rds-social-facebook {
    background: linear-gradient( 135deg, #166fe5, #1877f2 );
}


/* =========================================================
   INSTAGRAM
   ========================================================= */

.rds-social-instagram {
    background: linear-gradient( 135deg, #833ab4 0%, #c13584 30%, #e1306c 50%, #fd1d1d 72%, #fcb045 100% );
}


/* =========================================================
   DESKTOP HOVER
   ========================================================= */

@media (min-width: 769px) {

    .rds-floating-social-item:hover {
        width: 140px;
        justify-content: flex-start;
        transform: translateX(-4px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    }


        .rds-floating-social-item:hover
        .rds-social-icon {
            transform: scale(1.12);
        }


        .rds-floating-social-item:hover
        .rds-social-text {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }
}


/* =========================================================
   SOFT HOVER SHINE
   ========================================================= */

@media (min-width: 769px) {

    .rds-floating-social-item::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.25), transparent );
        transform: skewX(-20deg);
        transition: left 0.5s ease;
    }


    .rds-floating-social-item:hover::after {
        left: 130%;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .rds-floating-social {
        top: auto;
        right: 10px;
        bottom: 82px;
        transform: none;
        padding: 7px;
        gap: 7px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 18px;
        box-shadow: 0 7px 25px rgba(0, 0, 0, 0.18);
    }


    .rds-floating-social-item {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }


    .rds-social-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 20px;
    }


    .rds-social-text {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .rds-floating-social {
        right: 8px;
        bottom: 72px;
        padding: 6px;
        gap: 6px;
        border-radius: 16px;
    }


    .rds-floating-social-item {
        width: 43px;
        height: 43px;
        border-radius: 12px;
    }


    .rds-social-icon {
        width: 43px;
        height: 43px;
        min-width: 43px;
        font-size: 19px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .rds-floating-social {
        right: 6px;
        bottom: 65px;
        padding: 5px;
        gap: 5px;
        border-radius: 14px;
    }


    .rds-floating-social-item {
        width: 39px;
        height: 39px;
        border-radius: 10px;
    }


    .rds-social-icon {
        width: 39px;
        height: 39px;
        min-width: 39px;
        font-size: 17px;
    }
}


/* =========================================================
   TOUCH FEEDBACK
   ========================================================= */

.rds-floating-social-item:active {
    transform: scale(0.93);
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

.rds-floating-social-item:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.25);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rds-floating-social-item,
    .rds-social-icon,
    .rds-social-text {
        transition: none !important;
    }
}


