/**
 * FAQ-Badge Styles
 * 
 * Styling für FAQ-Konfidenz-Indikatoren und Feedback-Buttons
 * 
 * @package DualChatbot
 * @since 1.1.0
 */

/* ========================================================================
   FAQ Badge Container
   ======================================================================== */

.dcb-faq-badge {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(103, 126, 234, 0.2);
    font-size: 13px;
    animation: dcb-fade-in 0.3s ease-in-out;
}

@keyframes dcb-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Theme Support */
.dual-chatbot-dark-mode .dcb-faq-badge {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(156, 163, 175, 0.2);
}

/* ========================================================================
   Confidence Indicator
   ======================================================================== */

.dcb-faq-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.dcb-faq-confidence-icon {
    font-size: 16px;
    line-height: 1;
}

.dcb-faq-confidence-label {
    flex: 1;
    color: #374151;
    font-size: 12px;
}

.dual-chatbot-dark-mode .dcb-faq-confidence-label {
    color: #d1d5db;
}

.dcb-faq-confidence-score {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
}

.dual-chatbot-dark-mode .dcb-faq-confidence-score {
    background: #374151;
    color: #9ca3af;
}

/* Confidence Level Colors */

.dcb-faq-confidence-exact {
    color: #10b981;
}

.dcb-faq-confidence-exact .dcb-faq-confidence-score {
    background: #d1fae5;
    color: #065f46;
}

.dual-chatbot-dark-mode .dcb-faq-confidence-exact .dcb-faq-confidence-score {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.dcb-faq-confidence-semantic {
    color: #84cc16;
}

.dcb-faq-confidence-semantic .dcb-faq-confidence-score {
    background: #ecfccb;
    color: #3f6212;
}

.dual-chatbot-dark-mode .dcb-faq-confidence-semantic .dcb-faq-confidence-score {
    background: rgba(132, 204, 22, 0.2);
    color: #bef264;
}

.dcb-faq-confidence-fuzzy {
    color: #f59e0b;
}

.dcb-faq-confidence-fuzzy .dcb-faq-confidence-score {
    background: #fef3c7;
    color: #92400e;
}

.dual-chatbot-dark-mode .dcb-faq-confidence-fuzzy .dcb-faq-confidence-score {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.dcb-faq-confidence-context {
    color: #f97316;
}

.dcb-faq-confidence-context .dcb-faq-confidence-score {
    background: #ffedd5;
    color: #9a3412;
}

.dual-chatbot-dark-mode .dcb-faq-confidence-context .dcb-faq-confidence-score {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.dcb-faq-confidence-rag {
    color: #ef4444;
}

.dcb-faq-confidence-rag .dcb-faq-confidence-score {
    background: #fee2e2;
    color: #991b1b;
}

.dual-chatbot-dark-mode .dcb-faq-confidence-rag .dcb-faq-confidence-score {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* ========================================================================
   Feedback Buttons
   ======================================================================== */

.dcb-faq-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    transition: opacity 0.3s ease;
}

.dual-chatbot-dark-mode .dcb-faq-feedback {
    border-top-color: rgba(75, 85, 99, 0.5);
}

.dcb-faq-feedback-label {
    flex: 1;
    font-size: 11px;
    color: #6b7280;
}

.dual-chatbot-dark-mode .dcb-faq-feedback-label {
    color: #9ca3af;
}

.dcb-faq-feedback-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 0;
}

.dual-chatbot-dark-mode .dcb-faq-feedback-btn {
    background: #1f2937;
    border-color: #374151;
}

.dcb-faq-feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dcb-faq-feedback-btn:active {
    transform: scale(0.95);
}

.dcb-faq-feedback-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.dcb-faq-feedback-positive:hover {
    background: #d1fae5;
    border-color: #10b981;
}

.dual-chatbot-dark-mode .dcb-faq-feedback-positive:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #6ee7b7;
}

.dcb-faq-feedback-negative:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.dual-chatbot-dark-mode .dcb-faq-feedback-negative:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #fca5a5;
}

/* Success/Error Messages */

.dcb-faq-feedback-success {
    flex: 1;
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
    animation: dcb-fade-in 0.3s ease-in-out;
}

.dual-chatbot-dark-mode .dcb-faq-feedback-success {
    color: #6ee7b7;
}

.dcb-faq-feedback-error {
    color: #ef4444;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    animation: dcb-fade-in 0.3s ease-in-out;
}

.dual-chatbot-dark-mode .dcb-faq-feedback-error {
    color: #fca5a5;
}

/* ========================================================================
   Responsive Design
   ======================================================================== */

@media (max-width: 480px) {
    .dcb-faq-badge {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .dcb-faq-confidence-label {
        font-size: 11px;
    }
    
    .dcb-faq-feedback-label {
        font-size: 10px;
    }
    
    .dcb-faq-feedback-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* ========================================================================
   Accessibility Enhancements
   ======================================================================== */

.dcb-faq-feedback-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.dual-chatbot-dark-mode .dcb-faq-feedback-btn:focus {
    outline-color: #818cf8;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .dcb-faq-badge {
        border-width: 2px;
    }
    
    .dcb-faq-feedback-btn {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .dcb-faq-badge,
    .dcb-faq-feedback-success,
    .dcb-faq-feedback-error {
        animation: none;
    }
    
    .dcb-faq-feedback-btn {
        transition: none;
    }
    
    .dcb-faq-feedback-btn:hover {
        transform: none;
    }
    
    .dcb-faq-feedback-btn:active {
        transform: none;
    }
}
