/* ============================================
   WHATSAPP FLOATING BUTTON STYLES - TIME TO WIN
   ============================================ */

.floating-wa {
    position: fixed;
    z-index: 9999;
    cursor: pointer;
}

/* Size variations */
.floating-wa-small .wa-button {
    width: 50px;
    height: 50px;
}

.floating-wa-medium .wa-button {
    width: 60px;
    height: 60px;
}

.floating-wa-large .wa-button {
    width: 70px;
    height: 70px;
}

/* Button styles */
.wa-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.wa-button:hover {
    transform: scale(1.1);
}

.wa-button i {
    color: white;
}

/* Icon sizes */
.floating-wa-small .wa-button i {
    font-size: 24px;
}

.floating-wa-medium .wa-button i {
    font-size: 28px;
}

.floating-wa-large .wa-button i {
    font-size: 32px;
}

/* Position variations */
.floating-wa.bottom-right {
    bottom: 30px;
    right: 30px;
}

.floating-wa.bottom-left {
    bottom: 30px;
    left: 30px;
}

.floating-wa.top-right {
    top: 30px;
    right: 30px;
    bottom: auto;
}

.floating-wa.top-left {
    top: 30px;
    left: 30px;
    bottom: auto;
}

/* ============================================
   TOOLTIP STYLES - TIME TO WIN
   ============================================ */

.wa-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1B3B2B;
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    z-index: 10000;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1B3B2B;
}

/* ============================================
   TOOLTIP DISPLAY MODES
   ============================================ */

/* HOVER MODE - Only show on hover */
.tooltip-mode-hover .wa-tooltip {
    opacity: 0;
    visibility: hidden;
}

.tooltip-mode-hover:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* ALWAYS MODE - Always visible */
.tooltip-mode-always .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* CLICK MODE - Show on click, hide after 3 seconds */
.tooltip-mode-click .wa-tooltip {
    opacity: 0;
    visibility: hidden;
}

.tooltip-mode-click.show-tooltip .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* ============================================
   TOOLTIP DEVICE VISIBILITY
   ============================================ */

/* Hide tooltip on desktop if class present */
.tooltip-desktop-hide .wa-tooltip {
    display: none !important;
}

/* Hide tooltip on mobile if class present */
@media (max-width: 768px) {
    .tooltip-mobile-hide .wa-tooltip {
        display: none !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Pulse Animation */
.floating-wa.pulse .wa-button {
    animation: waPulse 1.5s infinite;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ring Animation */
.floating-wa.ring .wa-button {
    position: relative;
}

.floating-wa.ring .wa-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.5;
    animation: waRing 1.5s infinite;
}

@keyframes waRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Bounce Animation */
.floating-wa.bounce .wa-button {
    animation: waBounce 2s infinite;
}

@keyframes waBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .floating-wa.bottom-right,
    .floating-wa.bottom-left {
        bottom: 80px;
    }
    
    .floating-wa-medium .wa-button {
        width: 55px;
        height: 55px;
    }
    
    .floating-wa-medium .wa-button i {
        font-size: 24px;
    }
    
    /* Hide tooltip on mobile by default (can be overridden) */
    .floating-wa .wa-tooltip {
        display: none;
    }
    
    /* Show tooltip on mobile only if tooltip-mobile class is NOT present */
    .floating-wa:not(.tooltip-mobile-hide) .wa-tooltip {
        display: none;
    }
}

/* Desktop tooltip visibility - show by default */
@media (min-width: 769px) {
    .floating-wa.tooltip-desktop-hide .wa-tooltip {
        display: none !important;
    }
}