/* Social Chat Widget Styles */
.social-chat-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position variants */
.social-chat-widget[data-position="bottom-right"] {
    bottom: 20px;
    right: 20px;
}

.social-chat-widget[data-position="bottom-left"] {
    bottom: 20px;
    left: 20px;
}

.social-chat-widget[data-position="top-right"] {
    top: 20px;
    right: 20px;
}

.social-chat-widget[data-position="top-left"] {
    top: 20px;
    left: 20px;
}

/* Main button styles */
.social-chat-main-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}

.social-chat-main-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-chat-main-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.social-chat-main-button:hover::before {
    opacity: 1;
}

.social-chat-main-button:active {
    transform: scale(0.95);
}

.social-chat-main-button i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-chat-widget.expanded .social-chat-main-button i {
    transform: rotate(45deg);
}

/* Button list container */
.social-chat-button-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position button list based on widget position */
.social-chat-widget[data-position="bottom-right"] .social-chat-button-list,
.social-chat-widget[data-position="bottom-left"] .social-chat-button-list {
    bottom: 80px;
}

.social-chat-widget[data-position="top-right"] .social-chat-button-list,
.social-chat-widget[data-position="top-left"] .social-chat-button-list {
    top: 80px;
}

.social-chat-widget[data-position="bottom-right"] .social-chat-button-list {
    right: 0;
}

.social-chat-widget[data-position="bottom-left"] .social-chat-button-list {
    left: 0;
}

.social-chat-widget[data-position="top-right"] .social-chat-button-list {
    right: 0;
}

.social-chat-widget[data-position="top-left"] .social-chat-button-list {
    left: 0;
}

.social-chat-widget.expanded .social-chat-button-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual chat button styles */
.social-chat-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
}

.social-chat-button.visible {
    transform: scale(1);
    opacity: 1;
}

.social-chat-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-chat-button:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.social-chat-button:hover::before {
    opacity: 1;
}

.social-chat-button:active {
    transform: scale(0.9);
}

.social-chat-button i {
    font-size: 20px;
    z-index: 1;
    position: relative;
}

/* Pulse animation for main button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.social-chat-main-button {
    animation: pulse 2s infinite;
}

.social-chat-widget.expanded .social-chat-main-button {
    animation: none;
}

/* Tooltip styles */
.social-chat-button::after {
    content: attr(title);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* Tooltip positioning based on widget position */
.social-chat-widget[data-position="bottom-right"] .social-chat-button::after,
.social-chat-widget[data-position="top-right"] .social-chat-button::after {
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.social-chat-widget[data-position="bottom-left"] .social-chat-button::after,
.social-chat-widget[data-position="top-left"] .social-chat-button::after {
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.social-chat-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive design */
@media (max-width: 768px) {
    .social-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .social-chat-widget[data-position="bottom-left"] {
        left: 15px;
    }
    
    .social-chat-widget[data-position="top-right"] {
        top: 15px;
    }
    
    .social-chat-widget[data-position="top-left"] {
        top: 15px;
        left: 15px;
    }
    
    .social-chat-main-button {
        width: 55px;
        height: 55px;
    }
    
    .social-chat-button {
        width: 45px;
        height: 45px;
    }
    
    .social-chat-button i {
        font-size: 18px;
    }
    
    /* Hide tooltips on mobile */
    .social-chat-button::after {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-chat-button::after {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .social-chat-widget,
    .social-chat-main-button,
    .social-chat-button,
    .social-chat-button-list {
        transition: none;
        animation: none;
    }
    
    .social-chat-main-button {
        animation: none;
    }
}

