/**
 * Chatbot Flutuante - Black Coins
 * Estilos do bot de chat flutuante
 */

/* Container Principal */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Avatar do Bot (Robôzinho) */
.chatbot-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #db0000 0%, #a00000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(219, 0, 0, 0.4), 0 0 30px rgba(219, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chatbot-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.chatbot-avatar img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.chatbot-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(219, 0, 0, 0.6), 0 0 40px rgba(219, 0, 0, 0.5);
}

/* Animação de Pulso */
.chatbot-avatar.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(219, 0, 0, 0.4), 0 0 30px rgba(219, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(219, 0, 0, 0.6), 0 0 50px rgba(219, 0, 0, 0.5);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animação Flutuante */
.chatbot-avatar.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Popup do Chatbot */
.chatbot-popup {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #101014;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.chatbot-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #db0000, transparent);
    box-shadow: 0 0 20px rgba(219, 0, 0, 0.6);
}

.chatbot-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Header do Popup */
.chatbot-header {
    background: rgba(219, 0, 0, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(219, 0, 0, 0.2);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(219, 0, 0, 0.5), transparent);
}

.chatbot-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.chatbot-close {
    background: transparent;
    border: none;
    color: #cbcbcb;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chatbot-close i {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.chatbot-close:hover {
    background: rgba(219, 0, 0, 0.2);
    color: #db0000;
    transform: rotate(90deg);
}

/* Body do Popup */
.chatbot-body {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(219, 0, 0, 0.5);
    border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: rgba(219, 0, 0, 0.7);
}

/* Mensagem de Boas-vindas */
.chatbot-greeting {
    margin-bottom: 20px;
}

.chatbot-messages {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-message {
    color: #cbcbcb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    min-height: 40px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border-left: 1px solid #db0000;
    white-space: pre-line;
}

.chatbot-message i {
    color: #25d366;
    margin-left: 4px;
}

.chatbot-message.typing::after {
    content: '|';
    animation: blink 1s infinite;
    color: #db0000;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Botões */
.chatbot-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.chatbot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.chatbot-btn:hover::before {
    left: 100%;
}

.chatbot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.chatbot-btn i {
    font-size: 1.1em;
}

.chatbot-btn-primary {
    background: linear-gradient(135deg, #db0000 0%, #a00000 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(219, 0, 0, 0.3);
}

.chatbot-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff0000 0%, #db0000 100%);
}

.chatbot-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.chatbot-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2de574 0%, #25d366 100%);
}

.chatbot-btn-menu {
    background: rgba(24, 24, 28, 0.8);
    color: #ffffff;
    text-align: left;
    justify-content: flex-start;
}

.chatbot-btn-menu:hover {
    background: rgba(35, 35, 41, 0.8);
    transform: translateY(-2px);
}

.chatbot-btn-secondary {
    background: rgba(24, 24, 28, 0.8);
    color: #f1f3f5;
}

.chatbot-btn-secondary:hover {
    background: rgba(35, 35, 41, 0.8);
    border-color: rgba(219, 0, 0, 0.5);
    transform: translateY(-2px);
}

.chatbot-btn-link {
    background: transparent;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px;
    text-transform: none;
    letter-spacing: 0;
    justify-content: center;
}

.chatbot-btn-link:hover {
    text-decoration: none;
    background: rgba(35, 35, 41, 0.8);
}

/* Responsivo */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-avatar {
        width: 60px;
        height: 60px;
    }

    .chatbot-popup {
        width: 320px;
        max-width: calc(100vw - 30px);
        bottom: 80px;
    }

    .chatbot-header h3 {
        font-size: 1.1rem;
    }

    .chatbot-body {
        padding: 20px;
    }

    .chatbot-message {
        font-size: 0.9rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .chatbot-popup {
        width: calc(100vw - 20px);
        right: -10px;
    }
}

/* Indicador de Notificação (opcional) */
.chatbot-avatar::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #db0000;
    border-radius: 50%;
    border: 3px solid #101014;
    opacity: 0;
    animation: notificationPulse 2s infinite;
}

.chatbot-popup.show ~ .chatbot-avatar::after {
    opacity: 0;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}




