/* ========================================
   AI ASSISTANT CHAT STYLES
   ======================================== */

.ai-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    height: 500px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 2px solid #2d9e6f;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 999;
    box-shadow: 0 10px 40px rgba(45, 158, 111, 0.2);
    backdrop-filter: blur(10px);
    animation: slideInChat 0.4s ease-out;
}

.ai-chat.show {
    display: flex;
}

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

.ai-chat-header {
    background: #2d9e6f;
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(45, 158, 111, 0.8);
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 1rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s;
}

.close-chat:hover {
    transform: scale(1.2);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.ai-message {
    align-self: flex-start;
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #2d9e6f;
    color: #e8ecf5;
}

.user-message {
    align-self: flex-end;
    background: #2d9e6f;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
}

.chat-message p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ========================================
   AI CHAT SUGGESTIONS
   ======================================== */

.suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 158, 111, 0.3);
}

.suggestion-btn {
    background: rgba(45, 158, 111, 0.15);
    border: 1px solid #2d9e6f;
    color: #e8ecf5;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    user-select: none;
}

.suggestion-btn:hover {
    background: #2d9e6f;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(45, 158, 111, 0.3);
}

.suggestion-btn:active {
    transform: translateX(2px);
}

.suggestion-btn.hidden {
    display: none;
}

/* ========================================
   AI CHAT INPUT
   ======================================== */

.ai-chat-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(45, 158, 111, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 10px 10px;
}

.ai-chat-input input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid rgba(45, 158, 111, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #e8ecf5;
    font-family: inherit;
    transition: border-color 0.3s;
}

.ai-chat-input input:focus {
    outline: none;
    border-color: #2d9e6f;
}

.ai-chat-input input::placeholder {
    color: #a0a8c0;
}

#sendBtn {
    background: #2d9e6f;
    border: none;
    color: white;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#sendBtn:hover {
    background: #25a85f;
    transform: translateY(-2px);
}

#sendBtn:active {
    transform: translateY(0);
}

/* Scrollbar für Chat */
.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #2d9e6f;
    border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #25a85f;
}

/* ========================================
   RESPONSIVE AI CHAT
   ======================================== */

@media (max-width: 768px) {
    .ai-chat {
        width: calc(100% - 40px);
        height: 400px;
        bottom: 100px;
        left: 20px;
        right: 20px;
    }

    .suggestion-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .ai-chat-input {
        padding: 0.75rem;
        gap: 0.3rem;
    }

    .ai-chat-input input {
        padding: 0.4rem 0.8rem;
    }

    #sendBtn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}
