/* Floating Elements Styles */

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: fab-float 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.whatsapp-fab a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.whatsapp-fab a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #128C7E, #25D366);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.whatsapp-fab a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab a:hover::before {
    opacity: 1;
}

.whatsapp-fab a:active {
    transform: translateY(-1px) scale(1.05);
}

.whatsapp-fab i, .whatsapp-fab svg {
    z-index: 2;
    position: relative;
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

.whatsapp-fab i {
    width: 28px;
    height: 28px;
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
}

/* Pulse animation for attention */
.whatsapp-fab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: fab-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* Floating animation */
@keyframes fab-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation */
@keyframes fab-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Tooltip */
.whatsapp-fab::before {
    content: 'Conversar no WhatsApp';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-fab::before::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid #2c3e50;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.whatsapp-fab:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-fab a {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-fab i {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-fab::after {
        width: 55px;
        height: 55px;
    }
    
    /* Hide tooltip on mobile */
    .whatsapp-fab::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-fab {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-fab a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-fab i {
        width: 22px;
        height: 22px;
    }
    
    .whatsapp-fab::after {
        width: 50px;
        height: 50px;
    }
}

/* Print styles - hide FAB when printing */
@media print {
    .whatsapp-fab {
        display: none;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab {
        animation: none;
    }
    
    .whatsapp-fab::after {
        animation: none;
    }
    
    .whatsapp-fab a {
        transition: transform 0.2s ease;
    }
    
    .whatsapp-fab a:hover {
        transform: scale(1.05);
    }
} 