/* Floating Social Button - v2.0.0 */
.fsb-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fsb-wrap.fsb-left {
    right: auto;
    left: 20px;
    align-items: flex-start;
}

/* Social network buttons (hidden by default) */
.fsb-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: gap 0.3s ease;
}

.fsb-wrap.fsb-left .fsb-socials {
    align-items: flex-start;
}

.fsb-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.7);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
    flex-direction: row-reverse;
    max-height: 0;
    overflow: hidden;
    margin: 0;
}

.fsb-wrap.fsb-left .fsb-social-item {
    flex-direction: row;
}

.fsb-social-item.fsb-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    max-height: 60px;
    margin: 0;
}

.fsb-social-label {
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.fsb-wrap.fsb-left .fsb-social-label {
    transform: translateX(-8px);
}

.fsb-social-item.fsb-visible .fsb-social-label {
    opacity: 1;
    transform: translateX(0);
}

.fsb-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.fsb-social-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 16px rgba(0,0,0,0.3);
}

.fsb-social-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Network colors */
.fsb-btn-whatsapp  { background: #25D366; }
.fsb-btn-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fsb-btn-facebook  { background: #1877F2; }
.fsb-btn-tiktok    { background: #010101; }
.fsb-btn-x         { background: #000; }
.fsb-btn-telegram  { background: #26A5E4; }
.fsb-btn-email     { background: #EA4335; }
.fsb-btn-youtube   { background: #FF0000; }
.fsb-btn-pinterest { background: #E60023; }
.fsb-btn-linkedin  { background: #0A66C2; }

/* Main WhatsApp toggle button */
.fsb-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37,211,102,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    flex-shrink: 0;
    border: none;
    outline: none;
}

.fsb-main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37,211,102,0.55);
}

.fsb-main-btn.fsb-open {
    background: #e74c3c;
    box-shadow: 0 4px 14px rgba(231,76,60,0.5);
    transform: rotate(45deg);
}

.fsb-main-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: absolute;
}

.fsb-main-btn .fsb-icon-whatsapp { opacity: 1; transform: scale(1) rotate(0); }
.fsb-main-btn .fsb-icon-close    { opacity: 0; transform: scale(0.5) rotate(-45deg); }

.fsb-main-btn.fsb-open .fsb-icon-whatsapp { opacity: 0; transform: scale(0.5); }
.fsb-main-btn.fsb-open .fsb-icon-close    { opacity: 1; transform: scale(1) rotate(-45deg); }

/* Pulse ring on main button */
.fsb-main-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid rgba(37,211,102,0.4);
    animation: fsb-pulse 2s ease infinite;
}

.fsb-main-btn.fsb-open::after {
    border-color: rgba(231,76,60,0.35);
    animation: none;
}

@keyframes fsb-pulse {
    0%   { transform: scale(1); opacity: 1; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Stagger delays for items appearing */
.fsb-social-item:nth-child(1) { transition-delay: 0.00s; }
.fsb-social-item:nth-child(2) { transition-delay: 0.05s; }
.fsb-social-item:nth-child(3) { transition-delay: 0.10s; }
.fsb-social-item:nth-child(4) { transition-delay: 0.15s; }
.fsb-social-item:nth-child(5) { transition-delay: 0.20s; }
.fsb-social-item:nth-child(6) { transition-delay: 0.25s; }
.fsb-social-item:nth-child(7) { transition-delay: 0.30s; }
.fsb-social-item:nth-child(8) { transition-delay: 0.35s; }
.fsb-social-item:nth-child(9) { transition-delay: 0.40s; }
.fsb-social-item:nth-child(10){ transition-delay: 0.45s; }

/* Mobile adjustments */
@media (max-width: 480px) {
    .fsb-social-label { display: none; }
    .fsb-social-btn { width: 44px; height: 44px; }
    .fsb-social-btn svg { width: 20px; height: 20px; }
    .fsb-main-btn { width: 54px; height: 54px; }
    .fsb-main-btn svg { width: 28px; height: 28px; }
}
