/* ==========================================================================
   PeixeBot — CSS do Widget de Chatbot do Santos FC
   peixebot.com.br
   ========================================================================== */

/* Botão Flutuante de Abrir o Chat */
#peixe-bot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #1e1e1e 100%);
    color: #ffffff;
    border: 2px solid #e5c158; /* Dourado Santos */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

#peixe-bot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(229, 193, 88, 0.4);
}

#peixe-bot-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #e5c158;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #000;
}

/* Janela Principal do Chat */
#peixe-bot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    visibility: hidden;
    border: 1px solid #e2e8f0;
}

#peixe-bot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Cabeçalho do Chat */
.peixe-bot-header {
    background: #000000;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #e5c158;
}

.peixe-bot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.peixe-bot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111;
    border: 1.5px solid #e5c158;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.peixe-bot-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.peixe-bot-subtitle {
    font-size: 11px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.peixe-bot-online-dot {
    width: 7px;
    height: 7px;
    background-color: #48bb78;
    border-radius: 50%;
    display: inline-block;
}

.peixe-bot-close {
    background: transparent;
    border: none;
    color: #cbd5e0;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.peixe-bot-close:hover {
    color: #ffffff;
}

/* Área de Mensagens */
.peixe-bot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f8fafc;
}

/* Balões de Mensagens */
.peixe-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
    animation: peixeFadeIn 0.2s ease forwards;
}

@keyframes peixeFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.peixe-msg-bot {
    align-self: flex-start;
    background: #ffffff;
    color: #1a202c;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.peixe-msg-user {
    align-self: flex-end;
    background: #000000;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Sugestões Rápidas (Chips) */
.peixe-bot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
}

.peixe-chip {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.peixe-chip:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Input e Envio */
.peixe-bot-input-area {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
}

.peixe-bot-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.peixe-bot-input:focus {
    border-color: #000000;
}

.peixe-bot-send {
    background: #000000;
    color: #e5c158;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-size: 15px;
}

.peixe-bot-send:hover {
    background: #222222;
    transform: scale(1.05);
}

/* Typing indicator */
.peixe-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    width: fit-content;
    align-self: flex-start;
}

.peixe-typing span {
    width: 6px;
    height: 6px;
    background-color: #a0aec0;
    border-radius: 50%;
    animation: peixeBounce 1.2s infinite ease-in-out;
}

.peixe-typing span:nth-child(2) { animation-delay: 0.2s; }
.peixe-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes peixeBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    #peixe-bot-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 84px;
        height: 75vh;
    }
}
