/*
 * Passion In Design WhatsApp Plugin CSS
 * Enhanced with sonar/ripple effects and smooth animations
 */
.pid-whatsapp-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    /*flex-direction: column;*/
    flex-direction: column-reverse;
    gap: 15px;
}

/* WhatsApp Button */
.btn.pid-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    background: linear-gradient(135deg, #25d366 0%, #14a090 100%);
    color: white;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 48px;
    height: 48px;
    position: relative;
    overflow: hidden;
}

/* Email Button */
.btn.pid-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #EA4335;
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
    background-color: #25d366;
    background: linear-gradient(135deg, #25d366 0%, #14a090 100%);
    color: white;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 48px;
    height: 48px;
    position: relative;
    overflow: hidden;
}

/* Sonar/Ripple effect - WhatsApp */
.btn.pid-whatsapp::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    opacity: 0;
}

/* Sonar/Ripple effect - Email */
.btn.pid-email::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    opacity: 0;
}

.btn.pid-whatsapp:hover::before,
.btn.pid-email:hover::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* WhatsApp Hover */
.btn.pid-whatsapp:hover {
    background-color: #128c7e;
    background: linear-gradient(135deg, #25d366 0%, #075e54 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

/* Email Hover */
.btn.pid-email:hover {
    background-color: #C5221F;
    background: linear-gradient(135deg, #EA4335 0%, #A50E0E 100%);
    background: linear-gradient(135deg, #25d366 0%, #075e54 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.6);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.btn.pid-whatsapp:active,
.btn.pid-email:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.btn.pid-whatsapp svg,
.btn.pid-email svg {
    width: 28px;
    height: 28px;
    fill: white;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn.pid-whatsapp:hover svg,
.btn.pid-email:hover svg {
    transform: scale(1.1);
}

/* Pulse animation for WhatsApp */
@keyframes pid-pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Pulse animation for Email */
@keyframes pid-pulse-email {
    /*0% {*/
    /*    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4), 0 0 0 0 rgba(234, 67, 53, 0.7);*/
    /*}*/
    /*70% {*/
    /*    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4), 0 0 0 10px rgba(234, 67, 53, 0);*/
    /*}*/
    /*100% {*/
    /*    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4), 0 0 0 0 rgba(234, 67, 53, 0);*/
    /*}*/
        0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn.pid-whatsapp {
   animation: pid-pulse-whatsapp 2s ease-out 3s 1;
}

.btn.pid-email {
   animation: pid-pulse-email 2s ease-out 3s 1;
}

.btn.pid-whatsapp:hover {
    animation: pid-pulse-whatsapp 2s infinite;
}

.btn.pid-email:hover {
    animation: pid-pulse-email 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pid-whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
    
    .btn.pid-whatsapp,
    .btn.pid-email {
        width: 55px;
        height: 55px;
        padding: 12px;
    }
    
    .btn.pid-whatsapp svg,
    .btn.pid-email svg {
        width: 24px;
        height: 24px;
    }
}

/* Accessibility improvements */
.btn.pid-whatsapp:focus {
    outline: 3px solid #25d366;
    outline-offset: 2px;
}

.btn.pid-email:focus {
    outline: 3px solid #EA4335;
    outline-offset: 2px;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .btn.pid-whatsapp,
    .btn.pid-email {
        animation: none;
        transition: none;
    }
    
    .btn.pid-whatsapp::before,
    .btn.pid-email::before {
        transition: none;
    }
    
    .btn.pid-whatsapp:hover,
    .btn.pid-email:hover {
        transform: scale(1.02);
    }
}