/* WhatsApp & Call Floating Button Plugin Styles */

#wcfb-floating-buttons {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Position Classes */
.wcfb-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.wcfb-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.wcfb-position-top-right {
    top: 20px;
    right: 20px;
}

.wcfb-position-top-left {
    top: 20px;
    left: 20px;
}

/* Button Container */
.wcfb-button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Base Button Styles */
.wcfb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.wcfb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.wcfb-button:active {
    transform: translateY(0);
}

/* WhatsApp Button */
.wcfb-whatsapp {
    background: #25D366;
    color: white;
}

.wcfb-whatsapp:hover {
    background: #128C7E;
    color: white;
}

/* Call Button */
.wcfb-call {
    background: #007bff;
    color: white;
}

.wcfb-call:hover {
    background: #0056b3;
    color: white;
}

/* Tooltip */
.wcfb-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wcfb-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
}

.wcfb-button:hover .wcfb-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Style Variations */

/* Modern Style */
.wcfb-style-modern .wcfb-button {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wcfb-style-modern .wcfb-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Minimal Style */
.wcfb-style-minimal .wcfb-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.wcfb-style-minimal .wcfb-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcfb-button {
        width: 55px;
        height: 55px;
    }
    
    .wcfb-style-modern .wcfb-button {
        width: 60px;
        height: 60px;
    }
    
    .wcfb-style-minimal .wcfb-button {
        width: 45px;
        height: 45px;
    }
    
    .wcfb-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .wcfb-position-bottom-right,
    .wcfb-position-bottom-left {
        bottom: 15px;
    }
    
    .wcfb-position-top-right,
    .wcfb-position-top-left {
        top: 15px;
    }
    
    .wcfb-position-bottom-right,
    .wcfb-position-top-right {
        right: 15px;
    }
    
    .wcfb-position-bottom-left,
    .wcfb-position-top-left {
        left: 15px;
    }
}

/* Animation for button appearance */
@keyframes wcfb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcfb-button {
    animation: wcfb-fadeInUp 0.5s ease-out;
}

.wcfb-button:nth-child(2) {
    animation-delay: 0.1s;
}

/* Hide on specific devices based on settings */
.wcfb-hide-mobile {
    display: none !important;
}

.wcfb-hide-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    .wcfb-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .wcfb-hide-desktop {
        display: none !important;
    }
}

/* Accessibility improvements */
.wcfb-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wcfb-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wcfb-button {
        transition: none;
    }
    
    .wcfb-button:hover {
        transform: none;
    }
    
    .wcfb-tooltip {
        transition: none;
    }
}
