/* Darkfoo LLM Integration Styles - Fixed Version */

.llm-response-container {
    margin: 15px 0;
    background: rgba(0, 184, 196, 0.05);
    border: 1px solid rgba(0, 184, 196, 0.2);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    animation: llm-response-fade-in 0.5s ease-in;
}

.llm-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 184, 196, 0.1);
    border-bottom: 1px solid rgba(0, 184, 196, 0.2);
}

.llm-response-content {
    padding: 15px;
    line-height: 1.6;
    color: var(--neon-cyan);
}

.llm-copy-btn {
    background: rgba(0, 184, 196, 0.2);
    border: 1px solid rgba(0, 184, 196, 0.4);
    color: var(--neon-cyan);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.llm-copy-btn:hover {
    background: rgba(0, 184, 196, 0.3);
    box-shadow: 0 0 10px rgba(0, 184, 196, 0.5);
    transform: scale(1.05);
}

.llm-copy-btn:active {
    transform: scale(0.95);
}

.llm-code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-green);
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
    overflow-x: auto;
}

.llm-code-block::before {
    content: "CODE OUTPUT";
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--dark-bg);
    padding: 0 8px;
    font-size: 0.7rem;
    color: var(--neon-green);
    letter-spacing: 0.1em;
}

.llm-code-block pre {
    margin: 0;
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.llm-inline-code {
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--neon-yellow);
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.llm-thinking {
    color: var(--neon-cyan);
    font-style: italic;
    opacity: 0.8;
    margin: 5px 0;
}

.thinking-dots {
    animation: thinking-pulse 1.5s infinite;
}

@keyframes thinking-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.llm-error-container {
    margin: 10px 0;
    padding: 15px;
    background: rgba(240, 0, 204, 0.1);
    border: 1px solid rgba(240, 0, 204, 0.3);
    border-radius: 5px;
    animation: llm-error-flash 0.3s ease-in;
}

@keyframes llm-error-flash {
    0% { background: rgba(240, 0, 204, 0.2); }
    100% { background: rgba(240, 0, 204, 0.1); }
}

.llm-status-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--neon-cyan);
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.llm-chat-activation {
    background: rgba(121, 34, 189, 0.1);
    border: 1px solid rgba(121, 34, 189, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    animation: llm-chat-glow 2s ease-in-out;
}

@keyframes llm-chat-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(121, 34, 189, 0.3); }
    50% { box-shadow: 0 0 20px rgba(121, 34, 189, 0.6); }
}

/* Neural chat mode styling */
.terminal-container.neural-mode .terminal-prompt {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 5px var(--neon-purple) !important;
}

.terminal-container.neural-mode .terminal-input {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(121, 34, 189, 0.3);
}

.terminal-container.neural-mode {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(121, 34, 189, 0.4);
}

/* Animations */
@keyframes llm-response-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced scrollbar for LLM content */
.llm-response-content::-webkit-scrollbar {
    width: 6px;
}

.llm-response-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.llm-response-content::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

.llm-response-content::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .llm-response-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .llm-copy-btn {
        align-self: stretch;
    }
    
    .llm-code-block {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Special styling for different response types */
.llm-response-container.code-response {
    border-color: var(--neon-green);
}

.llm-response-container.code-response .llm-response-header {
    background: rgba(0, 255, 0, 0.05);
    border-bottom-color: rgba(0, 255, 0, 0.2);
}

.llm-response-container.chat-response {
    border-color: var(--neon-purple);
}

.llm-response-container.chat-response .llm-response-header {
    background: rgba(121, 34, 189, 0.05);
    border-bottom-color: rgba(121, 34, 189, 0.2);
}