/* صفحه جزئیات خبر — compact، موبایل + دسکتاپ */
:root {
    --na-bg: #f1f5f9;
    --na-card: #fff;
    --na-text: #1e293b;
    --na-muted: #64748b;
    --na-line: #e2e8f0;
    --na-primary: #2563eb;
    --na-primary-dark: #1d4ed8;
    --na-radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Vazirmatn, sans-serif;
    background: var(--na-bg);
    color: var(--na-text);
    line-height: 1.65;
    min-height: 100vh;
}

.na-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 0.75rem 0.875rem 1.5rem;
}

@media (min-width: 768px) {
    .na-wrap {
        max-width: 580px;
        padding: 1.25rem 1rem 2rem;
    }
}

/* هدر */
.na-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
}

.na-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--na-primary);
    font-weight: 800;
    font-size: 0.95rem;
}

.na-brand img {
    width: 28px;
    height: 28px;
}

.na-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--na-muted);
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: var(--na-card);
    border: 1px solid var(--na-line);
    transition: color 0.2s, border-color 0.2s;
}

.na-back:hover {
    color: var(--na-primary);
    border-color: #cbd5e1;
}

/* کارت */
.na-card {
    background: var(--na-card);
    border: 1px solid var(--na-line);
    border-radius: var(--na-radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.na-card--wide {
    width: 100%;
    max-width: none;
}

.na-card-inner {
    padding: 1rem 1.1rem 1.1rem;
}

@media (min-width: 768px) {
    .na-card-inner {
        padding: 1.25rem 1.35rem 1.35rem;
    }
}

.na-hero {
    margin: 0 0 0.85rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--na-line);
}

.na-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.na-hero-image--default {
    object-fit: cover;
    max-height: 240px;
    aspect-ratio: 1200 / 630;
    background: #f1f5f9;
    padding: 0;
}

@media (min-width: 768px) {
    .na-hero-image {
        max-height: 400px;
    }

    .na-hero-image--default {
        max-height: 380px;
    }
}

@media (min-width: 1024px) {
    .na-hero-image {
        max-height: 460px;
    }

    .na-hero-image--default {
        max-height: 440px;
    }
}

.na-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.na-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--na-line);
    color: var(--na-muted);
}

.na-pill i {
    font-size: 0.65rem;
    opacity: 0.85;
}

.na-pill--source {
    color: var(--na-primary);
    background: #eff6ff;
    border-color: #dbeafe;
    font-weight: 600;
}

.na-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.55;
    color: var(--na-text);
    margin-bottom: 0.65rem;
}

@media (min-width: 768px) {
    .na-title {
        font-size: 1.2rem;
        line-height: 1.5;
    }
}

.na-desc {
    font-size: 0.82rem;
    color: var(--na-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.na-desc:empty {
    display: none;
}

.na-summary {
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
    background: #f8fafc;
    border: 1px solid var(--na-line);
    border-radius: 10px;
    border-right: 3px solid var(--na-primary);
}

.na-summary-text {
    font-size: 0.88rem;
    color: var(--na-text);
    line-height: 1.9;
    text-align: justify;
}

.na-context {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.78rem;
    color: var(--na-muted);
    line-height: 1.7;
}

.na-context i {
    margin-left: 0.35rem;
    color: var(--na-primary);
    opacity: 0.85;
}

.na-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.na-tag {
    display: inline-block;
    font-size: 0.68rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--na-primary-dark);
    border: 1px solid #dbeafe;
    font-weight: 600;
}

.na-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--na-primary) 0%, #4f46e5 100%);
    border-radius: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.na-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.na-cta i {
    font-size: 0.8rem;
}

/* اشتراک‌گذاری */
.na-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--na-line);
}

.na-share-label {
    font-size: 0.72rem;
    color: var(--na-muted);
    font-weight: 600;
}

.na-share-btns {
    display: flex;
    gap: 0.4rem;
}

.na-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.15s, opacity 0.15s;
}

.na-share-btn:hover {
    transform: scale(1.08);
    opacity: 0.92;
}

.na-share-btn--tg { background: #0088cc; }
.na-share-btn--tw { background: #1da1f2; }
.na-share-btn--wa { background: #25d366; }

/* نظرات */
.na-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--na-line);
}

.na-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.na-comments-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--na-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.na-comments-title i {
    color: var(--na-primary);
    font-size: 0.85rem;
}

.na-comments-count {
    font-size: 0.72rem;
    color: var(--na-muted);
}

.na-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.na-comment-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--na-muted);
}

.na-comment-input,
.na-comment-textarea {
    width: 100%;
    font-family: Vazirmatn, sans-serif;
    font-size: 0.85rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--na-line);
    border-radius: 8px;
    background: #fff;
    color: var(--na-text);
    resize: vertical;
}

.na-comment-input:focus,
.na-comment-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.na-comment-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-family: Vazirmatn, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: var(--na-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.na-comment-submit:hover:not(:disabled) {
    opacity: 0.92;
}

.na-comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.na-comment-msg {
    font-size: 0.75rem;
    min-height: 1.1rem;
}

.na-comment-msg--ok { color: #059669; }
.na-comment-msg--error { color: #dc2626; }

.na-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.na-comment-item {
    padding: 0.7rem 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--na-line);
    border-radius: 10px;
}

.na-comment-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.na-comment-author {
    font-size: 0.8rem;
    color: var(--na-primary-dark);
}

.na-comment-date {
    font-size: 0.68rem;
    color: #94a3b8;
}

.na-comment-body {
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--na-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.na-comment-empty,
.na-comment-loading {
    font-size: 0.78rem;
    color: var(--na-muted);
    text-align: center;
    padding: 0.75rem 0;
}

.na-foot {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.72rem;
    color: #94a3b8;
}
