/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    z-index: 9999;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-button.bottom-right {
    right: 20px;
}

.whatsapp-button.bottom-left {
    left: 20px;
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    border-radius: 50%;
}

.whatsapp-button svg {
    width: 30px;
    height: 30px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
    }
    
    .whatsapp-button.bottom-right {
        right: 15px;
    }
    
    .whatsapp-button.bottom-left {
        left: 15px;
    }
    
    .whatsapp-button svg {
        width: 25px;
        height: 25px;
    }
}

/* Pulse animation effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-button {
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    animation: none;
}

/* Tooltip effect */
.whatsapp-button::before {
    content: "WhatsApp ile iletişime geçin";
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.whatsapp-button::after {
    content: "";
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.whatsapp-button:hover::before,
.whatsapp-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Sol taraf için tooltip ayarı */
.whatsapp-button.bottom-left::before {
    left: 0;
    transform: translateX(0);
}

.whatsapp-button.bottom-left::after {
    left: 20px;
    transform: translateX(0);
}