/**
 * Elite Social Float - Styles
 * Matches Elite theme dark/gold aesthetic
 */

/* Main Container */
.elite-social-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

/* Toggle Button */
.elite-social-float .social-float-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.elite-social-float .social-float-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

.elite-social-float .social-float-toggle svg {
    color: #000;
    transition: all 0.3s ease;
}

.elite-social-float .social-float-toggle .icon-open {
    opacity: 1;
    transform: rotate(0deg);
}

.elite-social-float .social-float-toggle .icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

/* Active State */
.elite-social-float.active .social-float-toggle {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}

.elite-social-float.active .social-float-toggle svg {
    color: #D4AF37;
}

.elite-social-float.active .social-float-toggle .icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.elite-social-float.active .social-float-toggle .icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

/* Social Links Menu */
.elite-social-float .social-float-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elite-social-float.active .social-float-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual Social Links */
.elite-social-float .social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.5) translateY(10px);
}

.elite-social-float.active .social-link {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Stagger animation for menu items */
.elite-social-float.active .social-link:nth-child(1) {
    transition-delay: 0.05s;
}
.elite-social-float.active .social-link:nth-child(2) {
    transition-delay: 0.1s;
}
.elite-social-float.active .social-link:nth-child(3) {
    transition-delay: 0.15s;
}
.elite-social-float.active .social-link:nth-child(4) {
    transition-delay: 0.2s;
}

/* Individual Platform Colors */
.elite-social-float .social-link.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.elite-social-float .social-link.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.elite-social-float .social-link.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D5DC7 100%);
}

.elite-social-float .social-link.tiktok {
    background: linear-gradient(135deg, #000 0%, #25F4EE 50%, #FE2C55 100%);
}

/* Hover Effects */
.elite-social-float .social-link:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.elite-social-float .social-link svg {
    width: 22px;
    height: 22px;
}

/* Tooltip on hover */
.elite-social-float .social-link::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.elite-social-float .social-link:hover::before {
    opacity: 1;
    visibility: visible;
    right: 55px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .elite-social-float {
        bottom: 20px;
        right: 20px;
    }

    .elite-social-float .social-float-toggle {
        width: 50px;
        height: 50px;
    }

    .elite-social-float .social-link {
        width: 44px;
        height: 44px;
    }

    .elite-social-float .social-link svg {
        width: 20px;
        height: 20px;
    }

    .elite-social-float .social-link::before {
        display: none;
    }
}

/* Pulse Animation for Main Button */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.elite-social-float:not(.active) .social-float-toggle {
    animation: pulse-ring 2s infinite;
}

.elite-social-float:not(.active) .social-float-toggle:hover {
    animation: none;
}
