/* WhatsApp Contact Button Styles */

.wcb-fixed-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* RTL Support for Persian Language */
.wcb-fixed-button.wcb-rtl {
    left: auto;
    right: 20px;
}

.wcb-button-link {
    display: block;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: #25D366;
    position: relative;
    overflow: hidden;
}

.wcb-button-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.wcb-button-link:active {
    transform: scale(0.95);
}

.wcb-button-image {
    border-radius: 50%;
    display: block;
    object-fit: cover;
    transition: all 0.3s ease;
    /* Dynamic sizing will be applied via JavaScript */
}

.wcb-button-link:hover .wcb-button-image {
    transform: rotate(5deg);
}

/* Pulse animation for attention */
@keyframes wcb-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wcb-fixed-button.wcb-pulse .wcb-button-link {
    animation: wcb-pulse 2s infinite;
}

/* Mobile responsiveness - will be handled by JavaScript for dynamic sizing */
@media (max-width: 768px) {
    .wcb-fixed-button {
        bottom: 15px;
        left: 15px;
    }
    
    .wcb-fixed-button.wcb-rtl {
        left: auto;
        right: 15px;
    }
    
    .wcb-button-link {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .wcb-fixed-button {
        bottom: 10px;
        left: 10px;
    }
    
    .wcb-fixed-button.wcb-rtl {
        left: auto;
        right: 10px;
    }
    
    .wcb-button-link {
        padding: 4px;
    }
}

/* Accessibility improvements */
.wcb-button-link:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wcb-button-link {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wcb-button-link,
    .wcb-button-image,
    .wcb-fixed-button {
        transition: none;
    }
    
    .wcb-fixed-button.wcb-pulse .wcb-button-link {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wcb-button-link {
        background: #128C7E;
    }
    
    .wcb-button-link:hover {
        box-shadow: 0 6px 20px rgba(18, 140, 126, 0.4);
    }
}
