/* Smart Publish AI - Chatbot Stílusok */

#spc-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#spc-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#spc-chat-toggle:hover {
    transform: scale(1.05);
}

#spc-chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

#spc-chat-container.spc-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.spc-chat-header {
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spc-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spc-avatar {
    background: rgba(255,255,255,0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.spc-title {
    display: flex;
    flex-direction: column;
}

.spc-title strong {
    font-size: 15px;
    line-height: 1.2;
}

.spc-status {
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.spc-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

#spc-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#spc-chat-close:hover {
    opacity: 1;
}

#spc-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spc-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.spc-message p {
    margin: 0 0 8px 0;
}
.spc-message p:last-child {
    margin-bottom: 0;
}
.spc-message ul, .spc-message ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.spc-message.spc-bot {
    background: #ffffff;
    color: #334155;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.spc-message.spc-user {
    background: #e2e8f0;
    color: #0f172a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.spc-chat-input-area {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#spc-chat-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.2s;
}

#spc-chat-input:focus {
    border-color: #94a3b8;
}

#spc-chat-send {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#spc-chat-send:hover {
    transform: scale(1.1);
}

#spc-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spc-chat-footer {
    text-align: center;
    padding: 8px;
    font-size: 10px;
    color: #94a3b8;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.spc-typing {
    display: flex;
    gap: 4px;
    padding: 15px 16px;
    align-items: center;
}

.spc-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: spc-bounce 1.4s infinite ease-in-out both;
}

.spc-dot:nth-child(1) { animation-delay: -0.32s; }
.spc-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes spc-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    #spc-chat-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        max-height: 600px;
    }
}