/* ============================================
   IRON EMPIRE GYM - WHATSAPP CONTACT BUTTON
   Direct link to Mr. Karis for membership inquiries
   ============================================ */

/* WhatsApp Button Container */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: 9998;
}

/* WhatsApp Float Button */
.whatsapp-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Pulse Animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsappPulse 2s infinite;
}

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

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip - Adjusted for Left Side Appearance */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    /* Appears to the left of the button */
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1d24;
    color: #f5f5f5;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    right: -6px;
    /* Arrow on right side pointing to button */
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #1a1d24;
    border-right: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 80px;
    /* Slight slide in effect */
}

/* Badge (optional notification) */
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid #0d0d0d;
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-button {
        right: 15px;
        left: auto;
        bottom: 15px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        right: 10px;
        left: auto;
        bottom: 10px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* Accessibility */
.whatsapp-float:focus {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}

/* Print - Hide on print */
@media print {
    .whatsapp-button {
        display: none;
    }
}