/* پرسش و پاسخ - استایل فرانت‌اند */

.pqa-container {
    max-width: 100%;
    padding: 10px 0;
}

.pqa-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.pqa-header h3 {
    font-size: 20px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pqa-description {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ===== لیست سوالات ===== */
.pqa-questions-list {
    margin-bottom: 30px;
}

.pqa-question-item {
    background: #fafcfd;
    border: 1px solid #eef2f5;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.pqa-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.pqa-question-author {
    font-weight: 900;
    color: #1a1a1a;
    font-size: 15px;
}

.pqa-question-date {
    font-size: 12px;
    color: #aaa;
}

/* ===== سوالات با border قرمز سمت چپ ===== */
.pqa-question-text {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    padding-left: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ===== پاسخ‌ها بدون border ===== */
.pqa-answer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 18px;
    margin-top: 15px;
}

.pqa-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.pqa-answer-author {
    font-weight: 900;
    color: #023d1f;
    font-size: 14px;
}

.pqa-answer-date {
    font-size: 11px;
    color: #999;
}

.pqa-answer-text {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== بدون سوال ===== */
.pqa-no-questions {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #fafcfd;
    border-radius: 16px;
    border: 1px dashed #dce1e9;
}

.pqa-no-questions p {
    margin: 0;
    font-size: 15px;
}

/* ===== فرم ثبت سوال ===== */
.pqa-submit-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed #e0e0e0;
}

.pqa-submit-section h4 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.pqa-submit-form {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #eef2f6;
}

.pqa-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.pqa-form-group.full-width {
    width: 100%;
}

.pqa-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.pqa-form-group label .required {
    color: #dc3545;
}

.pqa-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dce1e9;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    font-family: inherit;
    min-height: 80px;
    resize: vertical;
}

.pqa-form-group textarea:focus {
    outline: none;
    border-color: #ee0435;
}

.pqa-submit-btn {
    background: #ee0435;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 40px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}

.pqa-submit-btn:hover {
    background: #c0042a;
}

.pqa-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== پیام‌های فرم ===== */
.pqa-form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.pqa-form-message.success {
    display: block;
    background: #e6f9ed;
    color: #0b5e42;
    border: 1px solid #b8e6cf;
}

.pqa-form-message.error {
    display: block;
    background: #fee9e7;
    color: #a02c2c;
    border: 1px solid #fad1cd;
}

/* ===== پیام لاگین ===== */
.pqa-login-notice {
    background: #fff8e1;
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid #ffe0b2;
    text-align: center;
    margin: 20px 0;
}

.pqa-login-notice p {
    margin: 0;
    font-size: 16px;
    color: #4a4a4a;
}

.pqa-login-notice a {
    color: #ee0435;
    font-weight: 700;
    text-decoration: none;
}

/* ===== شمارش کاراکتر ===== */
.pqa-char-count {
    text-align: left;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.pqa-char-count.warning {
    color: #f59e0b;
}

.pqa-char-count.danger {
    color: #dc3545;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .pqa-question-item {
        padding: 15px;
    }
    
    .pqa-question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pqa-submit-form {
        padding: 18px;
    }
    
    .pqa-submit-btn {
        width: 100%;
    }
}