/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.chat-toggle:active {
    transform: scale(0.95);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.chat-toggle.active svg {
    transform: rotate(45deg);
}

.chat-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chat-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-option svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* WhatsApp */
.chat-option.whatsapp {
    background: #25d366;
}

.chat-option.whatsapp:hover {
    background: #20ba5a;
}

/* Messenger */
.chat-option.messenger {
    background: #0084ff;
}

.chat-option.messenger:hover {
    background: #0066cc;
}

/* Discord */
.chat-option.discord {
    background: #5865f2;
}

.chat-option.discord:hover {
    background: #4752c4;
}

/* Tooltip */
.chat-option::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.chat-option::before {
    content: "";
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-option:hover::after,
.chat-option:hover::before {
    opacity: 1;
    visibility: visible;
}

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

.chat-toggle.pulse {
    animation: pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
    }

    .chat-option {
        width: 45px;
        height: 45px;
    }

    .chat-option svg {
        width: 24px;
        height: 24px;
    }

    .chat-toggle svg {
        width: 26px;
        height: 26px;
    }
}
