﻿/* Professional Floating Social Bar - Without Share Button */
.social-float-panel {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

/* Icons Wrapper - Always Visible */
.social-icons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    visibility: visible;
}

/* Individual Icon Items */
.social-icon-item {
    position: relative;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    cursor: pointer;
}

.icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

    .icon-container i {
        font-size: 24px;
        position: absolute;
        transition: all 0.3s ease;
    }

        .icon-container i.fa-whatsapp {
            color: #25D366;
        }

        .icon-container i.fa-instagram {
            color: #E4405F;
        }

        .icon-container i.fa-facebook-f {
            color: #1877F2;
        }

        .icon-container i.fa-youtube {
            color: #FF0000;
        }

.symbol-emoji {
    font-size: 20px;
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

/* Hover Effects */
.social-icon-item:hover {
    width: 160px;
    padding: 0 20px;
    justify-content: flex-start;
    border-radius: 30px;
}

    .social-icon-item:hover .icon-container i {
        opacity: 0;
        transform: scale(0.5);
    }

    .social-icon-item:hover .symbol-emoji {
        opacity: 1;
        transform: scale(1);
    }

.social-label {
    position: absolute;
    left: 55px;
    opacity: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-icon-item:hover .social-label {
    opacity: 1;
    transform: translateX(5px);
}

/* Hover Background Animation */
.hover-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-icon-item:hover .hover-bg {
    left: 100%;
}

/* Brand Colors on Hover */
.social-icon-item[data-social="WhatsApp"]:hover {
    background: #25D366;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

    .social-icon-item[data-social="WhatsApp"]:hover .social-label {
        color: white;
    }

.social-icon-item[data-social="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    box-shadow: 0 5px 20px rgba(214, 41, 118, 0.4);
}

    .social-icon-item[data-social="Instagram"]:hover .social-label {
        color: white;
    }

.social-icon-item[data-social="Facebook"]:hover {
    background: #1877F2;
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.4);
}

    .social-icon-item[data-social="Facebook"]:hover .social-label {
        color: white;
    }

.social-icon-item[data-social="YouTube"]:hover {
    background: #FF0000;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

    .social-icon-item[data-social="YouTube"]:hover .social-label {
        color: white;
    }

/* Animation Classes */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
        transform: scale(1);
    }
}

@keyframes iconSwap {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }

    51% {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes symbolAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

.social-icon-item {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
}

    .social-icon-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .social-icon-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .social-icon-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .social-icon-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    /* Auto Animation */
    .social-icon-item.auto-highlight {
        animation: pulseGlow 0.8s ease;
    }

    .social-icon-item.auto-switch .icon-container i {
        animation: iconSwap 0.4s ease;
    }

    .social-icon-item.auto-switch .symbol-emoji {
        animation: symbolAppear 0.4s ease;
    }

    /* Tooltip */
    .social-icon-item::before {
        content: attr(data-social);
        position: absolute;
        right: 70px;
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        letter-spacing: 0.5px;
        font-family: 'Segoe UI', sans-serif;
        z-index: 100;
    }

    .social-icon-item:hover::before {
        opacity: 1;
        transform: translateX(-10px);
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-float-panel {
        right: 15px;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .social-icons-wrapper {
        flex-direction: row;
        gap: 10px;
        background: rgba(255, 255, 255, 0.95);
        padding: 12px 15px;
        border-radius: 50px;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .social-icon-item {
        width: 45px;
        height: 45px;
    }

    .icon-container i {
        font-size: 20px;
    }

    .symbol-emoji {
        font-size: 18px;
    }

    .social-icon-item:hover {
        width: 130px;
    }

    .social-label {
        font-size: 12px;
        left: 50px;
    }

    /* Mobile tooltip adjustment */
    .social-icon-item::before {
        right: auto;
        left: 60px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .social-icon-item {
        background: rgba(30, 30, 40, 0.95);
        backdrop-filter: blur(10px);
    }

    .social-label {
        color: #e0e0e0;
    }

    @media (max-width: 768px) {
        .social-icons-wrapper {
            background: rgba(30, 30, 40, 0.95);
        }
    }
}

/* Performance Optimizations */
.social-icon-item,
.icon-container i,
.symbol-emoji {
    will-change: transform;
    backface-visibility: hidden;
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success Toast */
.success-toast {
    position: fixed;
    right: 100px;
    top: 50%;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: 'Segoe UI', sans-serif;
    pointer-events: none;
}

    .success-toast.show {
        opacity: 1;
        transform: translateX(0);
    }

/* Desktop: Vertical layout */
@media (min-width: 769px) {
    .social-icons-wrapper {
        flex-direction: column;
    }
}
