﻿/* ==========================================================================
   Componenta: Buton Flotant (FAB) pentru WhatsApp
   ========================================================================== */

.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    /* Inițial ascuns, va fi afișat cu JS */
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .fab-container.visible {
        opacity: 1;
        transform: scale(1);
    }

.fab-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #25D366; /* Culoarea oficială WhatsApp */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    animation: pulse 2s infinite ease-in-out;
}

    .fab-whatsapp:hover {
        background-color: #128C7E; /* O nuanță mai închisă la hover */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        transform: translateY(-3px);
        animation-play-state: paused; /* Oprește animația la hover pentru un control mai bun */
    }

    .fab-whatsapp svg {
        width: 36px;
        height: 36px;
        fill: #FFFFFF;
    }

/* Animație subtilă pentru a atrage atenția */
@keyframes pulse {
    0% {
        /* MODIFICAT: Opacitatea inițială a umbrei a fost redusă (de la 0.7 la 0.5) */
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        /* MODIFICAT: Raza de expansiune a umbrei a fost redusă (de la 15px la 10px) */
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}