/* Veila App - Advanced Reasoning Display (Non-Message Specific) */

/* Thinking indicator animation */
.thinking-indicator {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.thinking-dot {
    width: 0.3rem;
    height: 0.3rem;
    background: var(--accent-electric);
    border-radius: 50%;
    animation: thinkingPulse 1.5s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes thinkingPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Streaming animation for reasoning header */
.ai-reasoning.streaming .reasoning-header h4 {
    background: linear-gradient(90deg, var(--accent-rose-gold), var(--accent-electric), var(--accent-rose-gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 2s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ai-reasoning.streaming .reasoning-content {
    min-height: 2rem;
}

/* Trace reference styling */
.trace-reference {
    color: var(--accent-electric);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.trace-reference:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-electric);
    transform: translateY(-1px);
    text-decoration: none;
}

.trace-reference::before {
    content: "🧠";
    font-size: 0.8rem;
}

/* Boost indicator */
.boost-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent-electric);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boost-indicator::before {
    content: "⚡";
    font-size: 0.8rem;
}

/* Score display */
.score-display {
    font-family: monospace;
    font-weight: bold;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.score-high { 
    background: rgba(34, 197, 94, 0.15); 
    color: var(--success); 
}

.score-medium { 
    background: rgba(251, 191, 36, 0.15); 
    color: var(--warning); 
}

.score-low { 
    background: rgba(239, 68, 68, 0.15); 
    color: var(--error); 
}

/* Tag display */
.reasoning-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--glass-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0.125rem;
    transition: all 0.2s ease;
}

.reasoning-tag:hover {
    background: var(--glass-hover);
    border-color: var(--accent-electric);
    color: var(--text-secondary);
}

/* Pattern indicators */
.pattern-match {
    background: linear-gradient(90deg, var(--accent-electric), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    animation: patternPulse 2s ease-in-out infinite;
}

@keyframes patternPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Validation actions - these are specific to reasoning and not duplicate */
.reasoning-validation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--glass-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
}

.reasoning-quality {
    display: flex;
    gap: 0.5rem;
}

.quality-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: var(--glass-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-electric);
}

.quality-btn.active {
    background: var(--accent-electric);
    color: white;
    border-color: var(--accent-electric);
}