﻿/* ===== Floating Social Media Buttons with Actual Logos ===== */
.floating-social {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: floatUpDown 3s ease-in-out infinite;
}

.floating-social-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 3px solid white;
    cursor: pointer;
    background: white;
}

    .floating-social-btn:hover {
        transform: scale(1.18) translateX(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

/* Logo Images */
.social-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
    z-index: 2;
}

.floating-social-btn:hover .social-logo {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Individual Button Styles with Logos */
.floating-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: #25D366;
}

    .floating-whatsapp .social-logo {
        width: 34px;
        height: 34px;
    }

.floating-phone {
    background: linear-gradient(135deg, #34B7F1 0%, #0A8BC4 100%);
    border-color: #34B7F1;
}

.floating-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D5EB6 100%);
    border-color: #1877F2;
}

    .floating-facebook .social-logo {
        width: 28px;
        height: 28px;
    }

.floating-instagram {
    background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    border-color: #DD2A7B;
}

    .floating-instagram .social-logo {
        width: 30px;
        height: 30px;
    }

/* WhatsApp Pulse Animation */
.floating-whatsapp {
    animation: whatsappPulse 2.5s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Button Labels */
.social-label {
    position: absolute;
    right: 75px;
    background: white;
    padding: 12px 20px;
    border-radius: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
    z-index: 9998;
    min-width: 160px;
    text-align: center;
}

.floating-social-btn:hover .social-label {
    opacity: 1;
    transform: translateX(0);
}

/* Specific Label Colors with Icons */
.floating-whatsapp .social-label {
    color: #128C7E;
    border: 2px solid #25D366;
    background: #E8F7EB;
}

    .floating-whatsapp .social-label::before {
        content: "💬 ";
    }

.floating-phone .social-label {
    color: #0A8BC4;
    border: 2px solid #34B7F1;
    background: #E8F4FC;
}

    .floating-phone .social-label::before {
        content: "📞 ";
    }

.floating-facebook .social-label {
    color: #1877F2;
    border: 2px solid #1877F2;
    background: #E8F0FE;
}

    .floating-facebook .social-label::before {
        content: "👍 ";
    }

.floating-instagram .social-label {
    color: #DD2A7B;
    border: 2px solid #DD2A7B;
    background: #FCE8F2;
}

    .floating-instagram .social-label::before {
        content: "📷 ";
    }

/* Float Animation */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid white;
}

    .scroll-top:hover {
        transform: translateY(-5px) scale(1.15);
        background: linear-gradient(135deg, #45a049 0%, #1B5E20 100%);
        box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
    }

.scroll-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.scroll-top:hover .scroll-logo {
    transform: translateY(-3px);
}

/* Button Order Animation */
.floating-social-btn {
    animation: slideInRightBtn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(100px);
}

.floating-whatsapp {
    animation-delay: 0.1s;
}

.floating-phone {
    animation-delay: 0.2s;
}

.floating-facebook {
    animation-delay: 0.3s;
}

.floating-instagram {
    animation-delay: 0.4s;
}

@keyframes slideInRightBtn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Notification Styles */
.floating-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    font-weight: 600;
    max-width: 350px;
}

    .floating-notification.notification-success {
        background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    }

    .floating-notification.notification-whatsapp {
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    }

.notification-close {
    cursor: pointer;
    margin-left: 15px;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

    .notification-close:hover {
        opacity: 1;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-social {
        right: 15px;
        bottom: 85px;
        gap: 10px;
    }

    .floating-social-btn {
        width: 58px;
        height: 58px;
    }

    .social-logo {
        width: 28px;
        height: 28px;
    }

    .floating-whatsapp .social-logo {
        width: 30px;
        height: 30px;
    }

    .floating-facebook .social-logo {
        width: 24px;
        height: 24px;
    }

    .social-label {
        display: none; /* Hide labels on mobile */
    }

    .scroll-top {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
    }

    .scroll-logo {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .floating-social {
        right: 12px;
        bottom: 75px;
        gap: 8px;
    }

    .floating-social-btn {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }

    .social-logo {
        width: 26px;
        height: 26px;
    }

    .floating-whatsapp .social-logo {
        width: 28px;
        height: 28px;
    }

    .scroll-top {
        width: 50px;
        height: 50px;
    }

    .scroll-logo {
        width: 20px;
        height: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .floating-social-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }

    .scroll-top:active {
        transform: scale(0.9);
    }

    /* Show labels on long press */
    .floating-social-btn {
        touch-action: manipulation;
    }
}

/* Logo Fallback */
.floating-social-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50%;
    z-index: 1;
}

/* Hover Glow Effect */
.floating-social-btn:hover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
}
