/**
 * CİVELEK SİGORTA - Professional WhatsApp Button
 * Modern and animated WhatsApp floating button
 */

.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3DF274, #25D366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(61, 242, 116, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(61, 242, 116, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-btn i {
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover i {
    transform: rotate(15deg);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(61, 242, 116, 0.4), 0 0 0 0 rgba(61, 242, 116, 0.7);
    }
    70% {
        box-shadow: 0 4px 20px rgba(61, 242, 116, 0.4), 0 0 0 10px rgba(61, 242, 116, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(61, 242, 116, 0.4), 0 0 0 0 rgba(61, 242, 116, 0);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    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;
    font-family: 'DM Sans', sans-serif;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 25px;
        right: 350px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: #1a1a1a;
        border: 1px solid #333;
    }
    
    .whatsapp-tooltip::before {
        border-right-color: #1a1a1a;
    }
}
