/* Bu dosya assets/whatsapp.css
  "Bakan bir daha baksın" dedirten WhatsApp Butonu Stilleri
*/

.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000; /* Her şeyin üstünde */
    
    /* Ana Buton Stili */
    width: 60px;
    height: 60px;
    background-color: #009441; /* Kurumsal Yeşil */
    color: #ffffff;
    border-radius: 50%;
    
    /* İkonu Ortala */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem; /* İkon boyutu */
    
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1) rotate(10deg); /* Hafifçe dönsün */
    box-shadow: 0 6px 16px rgba(0, 148, 65, 0.4); /* Yeşil gölge */
}

/* YANIP SÖNEN HARİKA EFEKT (Sonar Dalgaları)
  Butonun arkasında iki adet dalga oluşturuyoruz.
*/
.whatsapp-fab::before,
.whatsapp-fab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #009441;
    border-radius: 50%;
    z-index: -1; /* Butonun arkasında */
    
    /* Animasyon tanımı */
    animation: whatsappPulse 2.5s infinite ease-out;
    opacity: 0; /* Başlangıçta gizli */
}

/* İkinci dalga 1.25sn sonra (tam ortada) başlasın */
.whatsapp-fab::after {
    animation-delay: 1.25s;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.5); /* Dalga ne kadar büyüsün */
        opacity: 0;
    }
}

/* Mobilde butonu biraz küçültelim */
@media (max-width: 768px) {
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}