/* AI Product Q&A Styles */

.ai-product-qna-section {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ai-product-qna-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.ai-product-qna-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #555;
}

/* Existing Q&A List */
.qna-existing-questions {
    margin-bottom: 30px;
}

.qna-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qna-question {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.qna-question strong {
    color: #0073aa;
    margin-right: 8px;
}

.qna-answer {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    padding-left: 22px;
}

.qna-answer strong {
    color: #2ea44f;
    margin-right: 8px;
}

.qna-meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badges */
.new-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #fff3cd;
    color: #856404;
    margin-left: 10px;
}

/* Ask Question Form */
.qna-ask-question {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#qna-question {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

#qna-question:focus {
    outline: none;
    border-color: #0073aa;
}

.qna-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.word-count {
    font-size: 13px;
    color: #888;
}

.word-count.over-limit {
    color: #d63638;
    font-weight: 600;
}

#qna-form button[type="submit"] {
    padding: 10px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

#qna-form button[type="submit"]:hover {
    background: #005a87;
}

#qna-form button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qna-notice {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Messages */
.qna-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.qna-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.qna-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
}

/* No questions state */
.no-questions {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #d63638;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-product-qna-section {
        padding: 20px 15px;
    }
    
    .qna-item {
        padding: 15px;
    }
    
    .qna-answer {
        padding-left: 0;
    }
    
    .qna-form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    #qna-form button[type="submit"] {
        width: 100%;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qna-item {
    animation: slideDown 0.3s ease;
}