/* ==============================================
   AHMED PAPER DECORATIONS
   WhatsApp Floating Button
   ============================================== */


/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: var(--z-whatsapp);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}


/* ==========================================
   WHATSAPP TOOLTIP (Message)
   ========================================== */

.whatsapp-tooltip {
    background: var(--color-white);
    color: var(--color-black);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    box-shadow: var(--shadow-xl);
    white-space: nowrap;
    position: relative;
    animation: slideInRight 0.5s ease;
    max-width: 250px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--color-white);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-tooltip-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================
   WHATSAPP BUTTON
   ========================================== */

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
    position: relative;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-full);
    background: var(--color-whatsapp);
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-btn:hover {
    background: var(--color-whatsapp-dark);
    color: var(--color-white);
    transform: scale(1.1);
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    /* Adjust back to top button */
    .back-to-top {
        bottom: 95px !important;
    }
}

@media (max-width: 575px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .back-to-top {
        bottom: 80px !important;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}