/* Button Contact Plugin - CSS Styles */

/* Container for all contact buttons */
.btn-contact-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual button style */
.btn-contact-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Link styling */
.btn-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-contact-link:hover {
    transform: scale(1.1);
}

.btn-contact-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Facebook button background */
.btn-contact-facebook .btn-contact-link {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

/* Phone button background */
.btn-contact-phone .btn-contact-link {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Icon styling */
.btn-contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* Ripple wave effect */
.btn-contact-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    z-index: 1;
}

/* Facebook ripple */
.btn-contact-facebook .btn-contact-ripple {
    background: rgba(24, 119, 242, 0.4);
}

/* Phone ripple */
.btn-contact-phone .btn-contact-ripple {
    background: rgba(37, 211, 102, 0.4);
}

/* Ripple animation */
.btn-contact-ripple::before,
.btn-contact-ripple::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ripple-wave 2s infinite;
}

.btn-contact-facebook .btn-contact-ripple::before,
.btn-contact-facebook .btn-contact-ripple::after {
    background: rgba(24, 119, 242, 0.3);
}

.btn-contact-phone .btn-contact-ripple::before,
.btn-contact-phone .btn-contact-ripple::after {
    background: rgba(37, 211, 102, 0.3);
}

.btn-contact-ripple::after {
    animation-delay: 1s;
}

@keyframes ripple-wave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Tooltip styling */
.btn-contact-tooltip {
    position: absolute;
    left: 70px;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

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

.btn-contact-item:hover .btn-contact-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-contact-wrapper {
        bottom: 15px;
        left: 15px;
    }
    
    .btn-contact-link {
        width: 50px;
        height: 50px;
    }
    
    .btn-contact-icon {
        width: 24px;
        height: 24px;
    }
    
    .btn-contact-ripple {
        width: 50px;
        height: 50px;
    }
    
    .btn-contact-tooltip {
        display: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .btn-contact-ripple::before,
    .btn-contact-ripple::after {
        animation: none;
    }
    
    .btn-contact-link:hover {
        transform: none;
    }
}
