
/* ============================================================
   مجله
   ============================================================ */
.articles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px; margin-bottom: 26px;
}
.article-card {
    display: flex; flex-direction: column;
    background: var(--card); border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .18s, box-shadow .18s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-cover { aspect-ratio: 16/9; overflow: hidden; background: #f1f5fd; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 9px; }
.badge-reportage {
    background: #fff1e6; color: #c2560a; border: 1px solid #ffd6b3;
    padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800;
}
.badge-cat {
    background: #eaf0ff; color: var(--blue);
    padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
}
.article-date { font-size: 11.5px; color: var(--muted); }
.article-card h2 {
    margin: 0 0 8px; font-size: 15.5px; font-weight: 800; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card p {
    margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-foot {
    margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
    display: flex; gap: 14px; font-size: 11.5px; color: var(--muted);
}

.pager { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; padding-bottom: 40px; }
.pager-item {
    min-width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
    text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 700;
}
.pager-item:hover { border-color: var(--blue); color: var(--blue); }
.pager-item.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================================================
   صفحهٔ مقاله
   ============================================================ */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 14px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }

.reportage-banner {
    background: #fff8f0; border: 1px solid #ffd6b3; color: #8a4300;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 12.5px; line-height: 1.8; margin-bottom: 18px;
}
.reportage-banner .badge-reportage { margin-left: 6px; }

.article-page h1 { margin: 0 0 12px; font-size: 26px; font-weight: 800; line-height: 1.6; }
.article-header-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 12.5px; color: var(--muted); margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.article-hero {
    border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.article-hero img { width: 100%; display: block; }
.article-lead {
    font-size: 15px; line-height: 2; color: var(--ink-2);
    background: #f7f9fd; border-right: 3px solid var(--blue);
    padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0 0 22px;
}
.article-content { font-size: 15px; line-height: 2.1; color: var(--ink); }
.article-content p { margin: 0 0 16px; }
.article-content h2 { font-size: 19px; margin: 28px 0 12px; font-weight: 800; }
.article-content h3 { font-size: 16.5px; margin: 22px 0 10px; font-weight: 800; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-right: 22px; }
.article-content li { margin-bottom: 7px; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 12px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--line); }
.article-content th { background: #f7f9fd; font-weight: 800; }
.article-content blockquote {
    margin: 16px 0; padding: 12px 18px; background: #f7f9fd;
    border-right: 3px solid var(--blue); border-radius: 0 10px 10px 0;
    color: var(--ink-2);
}
.article-content a { color: var(--blue); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tag {
    background: #f1f5fd; color: var(--ink-2); font-size: 12px;
    padding: 5px 11px; border-radius: 999px;
}

.section-title { font-size: 17px; font-weight: 800; margin: 0 0 16px; }

/* ============================================================
   ری‌اکشن
   ============================================================ */
.react-block {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px 24px; margin: 30px 0;
}
.react-row, .rating-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    padding: 12px 0;
}
.react-row { border-bottom: 1px solid var(--line); }
.react-label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.react-btns { display: flex; gap: 10px; }
.react-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px; border-radius: 10px; cursor: pointer;
    border: 1.5px solid var(--line); background: #fbfcfe;
    font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2);
    transition: .15s;
}
.react-btn svg { width: 17px; height: 17px; }
.react-btn:hover { border-color: #c9d6f5; color: var(--blue); }
.react-btn.on { background: #eaf0ff; border-color: var(--blue); color: var(--blue); }

.rating-stars { display: flex; gap: 3px; direction: ltr; }
.star {
    background: none; border: none; cursor: pointer; padding: 0 2px;
    font-size: 24px; line-height: 1; color: #dde3ee; transition: .12s;
    font-family: inherit;
}
.star:hover, .star.hover { color: #f59e0b; transform: scale(1.12); }
.rating-info { font-size: 12px; color: var(--muted); display: none; }
.rating-info.show { display: inline; }

/* ============================================================
   نظرات
   ============================================================ */
.comments-section { margin-top: 34px; }
.comments-list { margin-bottom: 24px; }
.muted-note { font-size: 13px; color: var(--muted); }
.rating-summary {
    background: #fff8ea; border: 1px solid #ffe4a3; color: #7a5200;
    padding: 11px 15px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 14px;
}
.rating-summary strong { font-size: 16px; }

.comment {
    background: #fbfcfe; border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 11px;
}
.comment-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
    font-size: 12.5px; margin-bottom: 8px;
}
.comment-name { font-weight: 800; color: var(--ink); }
.comment-city { color: var(--muted); font-size: 11.5px; }
.comment-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.comment-date { color: var(--muted); font-size: 11px; margin-right: auto; }
.comment-body { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.comment-reply {
    margin-top: 10px; padding: 10px 12px; background: #eef3ff;
    border-radius: 8px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2);
}

.comment-form {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px;
}
.comment-form h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.form-note { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field textarea {
    width: 100%; padding: 13px 14px; font-size: 14px; font-family: inherit;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fbfcfe; color: var(--ink); resize: vertical; text-align: right;
    line-height: 1.8;
}
.field textarea:focus {
    outline: none; border-color: var(--blue); background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 92, 255, .08);
}
.opt { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.ok {
    margin-top: 12px; padding: 11px 14px; border-radius: 10px;
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-size: 13px;
}

@media (max-width: 760px) {
    .articles { grid-template-columns: 1fr; }
    .article-page h1 { font-size: 20px; }
    .article-content { font-size: 14px; line-height: 2; }
    .form-row-2 { grid-template-columns: 1fr; }
    .react-block, .comment-form { padding: 18px; }
}
