﻿.whatsapp-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* İçeriği sağa yasla */
    background-color: #25d366;
    height: 60px;
    min-width: 60px; /* Kapalıyken tam yuvarlak olması için */
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 5px;
    overflow: hidden;
}

/* Üzerine gelince metin alanını genişlet */
.whatsapp-container:hover .whatsapp-button {
    padding-left: 25px;
    padding-right: 5px;
    background-color: #1ebea5;
}

.whatsapp-text {
    color: white;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    width: 0; /* Başlangıçta genişlik yok */
    transition: all 0.4s ease;
    pointer-events: none;
}

.whatsapp-container:hover .whatsapp-text {
    opacity: 1;
    width: 140px; /* Metne göre genişlik ayarı */
    margin-right: 10px;
}

.whatsapp-icon-box {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* İkonun ezilmesini engelle */
    position: relative;
}

    .whatsapp-icon-box i {
        color: #25d366;
        font-size: 30px;
        z-index: 2;
    }

/* Nabız Efekti */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
    z-index: 1;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
 
@media (max-width: 768px) {
    .whatsapp-text {
        display: none !important;
    }

    .whatsapp-container:hover .whatsapp-button {
        width: 60px;
        padding: 5px;
    }
}
