/* Nazarto Q&A Forum Styles */
.nazarto-qa-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: Tahoma, Vazirmatn, system-ui, sans-serif;
    direction: rtl;
    line-height: 1.7;
}

.nazarto-qa-title {
    font-size: 1.7rem;
    color: #1e293b;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* فرم پرسش */
.nazarto-ask-form,
.nazarto-answer-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 30px;
}

.nazarto-ask-form h3,
.nazarto-answer-form h3 {
    margin: 0 0 15px;
    font-size: 1.15rem;
}

.nazarto-ask-form input[type="text"],
.nazarto-ask-form select,
.nazarto-ask-form textarea,
.nazarto-answer-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.nazarto-ask-form button,
.nazarto-answer-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nazarto-ask-form button:hover,
.nazarto-answer-form button:hover {
    background: #1d4ed8;
}

.form-message {
    margin-top: 12px;
    font-size: 0.9rem;
}
.form-message.success { color: #16a34a; }
.form-message.error { color: #dc2626; }

/* لیست سوالات */
.nazarto-questions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nazarto-question-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.nazarto-question-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.question-votes {
    flex-shrink: 0;
}

.question-body {
    flex: 1;
}

.question-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.question-title a {
    color: #1e40af;
    text-decoration: none;
}

.question-title a:hover {
    color: #2563eb;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: #64748b;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge.pinned { background: #fef3c7; color: #d97706; }
.badge.closed { background: #fee2e2; color: #dc2626; }

.pinned-label {
    color: #d97706;
    margin-top: 10px;
}

/* سیستم رأی */
.nazarto-vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 42px;
}

.vote-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 28px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn:hover {
    background: #e2e8f0;
}

.vote-btn.active.vote-up {
    background: #dcfce7;
    border-color: #86efac;
    color: #16a34a;
}

.vote-btn.active.vote-down {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.vote-count {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

/* صفحه تکی سوال */
.nazarto-single-question .question-header {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.question-votes-large {
    flex-shrink: 0;
}

.question-main {
    flex: 1;
}

.question-main .question-title {
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: #0f172a;
}

.question-content {
    margin-top: 16px;
    color: #334155;
    line-height: 1.8;
}

/* پاسخ‌ها */
.answers-section {
    margin-bottom: 30px;
}

.answers-section h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.nazarto-answer-item {
    display: flex;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 14px;
}

.answer-body {
    flex: 1;
}

.answer-content {
    color: #334155;
    line-height: 1.7;
}

.answer-meta {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 16px;
}

.no-answers,
.no-questions {
    color: #64748b;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.nazarto-closed-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 14px 18px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.nazarto-login-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 14px 18px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}
