
/* ═══════════════════════════════════════════════════════════
   hv-typography.css — سیستم تایپوگرافی رنگی سایت
   پالت: سرمه‌ای، طلایی، سبز-آبی (هماهنگ با سایت اصلی)
   ═══════════════════════════════════════════════════════════ */

:root {
    /* پالت اصلی سایت ناتمام */
    --nt-navy:      #0F1F38;
    --nt-teal:      #0F3641;
    --nt-gold:      #D99A2B;
    --nt-gold-soft: #F5C77E;
    --nt-gold-deep: #8B5E14;
    --nt-cream:     #faf7ee;
    --nt-gray-900:  #1a1e22;
    --nt-gray-700:  #3a3e42;
    --nt-gray-500:  #6b7c8f;
    --nt-gray-300:  #8a7d63;

    /* رنگ‌های تاکیدی ملایم */
    --nt-accent-blue: #3B82F6;
    --nt-accent-teal: #2A6E80;
}

/* ═══════════════════════════════════════════════════════════
   ۱. عنوان اصلی (H1)
   - سرمه‌ای تیره
   - زیرش خط طلایی
   - فضای مناسب
   ═══════════════════════════════════════════════════════════ */

.hv-article-content h1,
.hv-article-editorial h1,
article > h1,
.post-content h1,
.article-content h1 {
    position: relative !important;
    color: var(--nt-navy) !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    margin: 0 0 30px !important;
    padding-bottom: 20px !important;
    text-align: center !important;
    letter-spacing: -.015em !important;
}
.hv-article-content h1::after,
.hv-article-editorial h1::after,
article > h1::after,
.post-content h1::after,
.article-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--nt-gold), transparent);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════
   ۲. لید / خلاصه (Excerpt)
   - رنگ متمایز: سبز-آبی
   - خط طلایی کناری
   - فونت کمی بزرگ‌تر از متن
   ═══════════════════════════════════════════════════════════ */

.hv-article-content .excerpt,
.hv-article-editorial .excerpt,
.hv-article__excerpt,
article .lead,
article .summary,
.article-lead {
    color: var(--nt-teal) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    line-height: 2.1 !important;
    padding: 20px 24px 20px 30px !important;
    margin: 0 0 30px !important;
    background: linear-gradient(135deg, rgba(217,154,43,.06), rgba(217,154,43,.02)) !important;
    border-radius: 14px !important;
    border-right: 4px solid var(--nt-gold) !important;
    box-shadow: 0 4px 16px rgba(217,154,43,.06) !important;
    font-style: normal !important;
    position: relative;
}
.hv-article-content .excerpt::before,
.hv-article-editorial .excerpt::before,
.hv-article__excerpt::before,
article .lead::before {
    content: '📌';
    position: absolute;
    top: -12px;
    right: 16px;
    font-size: 1rem;
    background: var(--nt-cream);
    padding: 0 8px;
    border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════
   ۳. تیتر H2 — سرمه‌ای با نوار طلایی
   ═══════════════════════════════════════════════════════════ */

.hv-article-content h2,
.hv-article-editorial h2 {
    color: var(--nt-navy) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    margin: 2.2em 0 1em !important;
    padding: 14px 20px 14px 20px !important;
    background: linear-gradient(90deg, rgba(15,31,56,.05), transparent 80%) !important;
    border-radius: 10px !important;
    position: relative !important;
}
.hv-article-content h2::before,
.hv-article-editorial h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 5px;
    background: linear-gradient(180deg, var(--nt-gold), var(--nt-gold-deep));
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════
   ۴. تیتر H3 — سرمه‌ای + نشانگر طلایی
   ═══════════════════════════════════════════════════════════ */

.hv-article-content h3,
.hv-article-editorial h3 {
    color: var(--nt-navy) !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    margin: 1.8em 0 .8em !important;
    padding-right: 24px !important;
    position: relative !important;
}
.hv-article-content h3::before,
.hv-article-editorial h3::before {
    content: '◆';
    position: absolute;
    right: 0;
    top: 4px;
    color: var(--nt-gold);
    font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════════
   ۵. متن اصلی — خاکستری تیره برای خوانایی
   ═══════════════════════════════════════════════════════════ */

.hv-article-content p,
.hv-article-editorial p {
    color: var(--nt-gray-700) !important;
    font-size: 1.05rem !important;
    line-height: 2.1 !important;
    margin: 1.4em 0 !important;
    text-align: justify !important;
}

/* ═══════════════════════════════════════════════════════════
   ۶. تأکیدها درون متن — رنگی ولی ملایم
   ═══════════════════════════════════════════════════════════ */

/* Strong — خط طلایی زیرش (بدون رنگ زننده) */
.hv-article-content strong,
.hv-article-editorial strong {
    color: var(--nt-navy) !important;
    font-weight: 800 !important;
    background: linear-gradient(180deg, transparent 65%, rgba(217,154,43,.30) 65%) !important;
    padding: 0 2px !important;
    border-radius: 2px;
}

/* Em — متن ایتالیک با رنگ سبز-آبی */
.hv-article-content em,
.hv-article-editorial em {
    color: var(--nt-teal) !important;
    font-style: italic !important;
    font-weight: 600 !important;
}

/* Mark — برای جملهٔ مهم با پس‌زمینهٔ ملایم */
.hv-article-content mark,
.hv-article-editorial mark,
.hv-article-content .hl,
.hv-article-editorial .hl {
    background: linear-gradient(180deg, transparent 55%, rgba(217,154,43,.45) 55%) !important;
    color: var(--nt-navy) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
}

/* Kbd — کد درون‌خطی */
.hv-article-content code,
.hv-article-editorial code {
    background: var(--nt-cream) !important;
    color: var(--nt-gold-deep) !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-family: 'Courier New', monospace !important;
    font-size: .88em !important;
    border: 1px solid rgba(217,154,43,.25) !important;
    direction: ltr !important;
    display: inline-block !important;
}

/* ═══════════════════════════════════════════════════════════
   ۷. نقل قول — آبی-سبز با خط طلایی
   ═══════════════════════════════════════════════════════════ */

.hv-article-content blockquote,
.hv-article-editorial blockquote {
    background: linear-gradient(135deg, #faf7ee, #f0ece3) !important;
    border-right: 5px solid var(--nt-gold) !important;
    color: var(--nt-teal) !important;
    padding: 22px 30px !important;
    margin: 2em 0 !important;
    border-radius: 14px !important;
    font-size: 1.08rem !important;
    line-height: 2.05 !important;
    font-style: italic !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 20px rgba(15,54,65,.06) !important;
    position: relative !important;
}
.hv-article-content blockquote::before,
.hv-article-editorial blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 16px;
    font-size: 5rem;
    color: var(--nt-gold);
    opacity: .30;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════
   ۸. لیست‌ها
   ═══════════════════════════════════════════════════════════ */

.hv-article-content ul,
.hv-article-editorial ul {
    list-style: none !important;
    padding-right: 8px !important;
    margin: 1.4em 0 !important;
}
.hv-article-content ul li,
.hv-article-editorial ul li {
    color: var(--nt-gray-700) !important;
    position: relative !important;
    padding-right: 30px !important;
    margin-bottom: 12px !important;
    line-height: 2.05 !important;
    font-size: 1.02rem !important;
}
.hv-article-content ul li::before,
.hv-article-editorial ul li::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 14px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--nt-gold), var(--nt-gold-deep));
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(217,154,43,.15);
}

/* لیست شماره‌دار */
.hv-article-content ol,
.hv-article-editorial ol {
    counter-reset: nt-counter !important;
    list-style: none !important;
    padding-right: 8px !important;
}
.hv-article-content ol li,
.hv-article-editorial ol li {
    counter-increment: nt-counter !important;
    color: var(--nt-gray-700) !important;
    position: relative !important;
    padding-right: 50px !important;
    margin-bottom: 14px !important;
    line-height: 2.05 !important;
    min-height: 36px !important;
    font-size: 1.02rem !important;
}
.hv-article-content ol li::before,
.hv-article-editorial ol li::before {
    content: counter(nt-counter);
    position: absolute;
    right: 0;
    top: 6px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--nt-navy), var(--nt-teal));
    color: var(--nt-gold) !important;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: .88rem;
    box-shadow: 0 3px 10px rgba(15,31,56,.20);
}

/* ═══════════════════════════════════════════════════════════
   ۹. لینک
   ═══════════════════════════════════════════════════════════ */

.hv-article-content a,
.hv-article-editorial a {
    color: var(--nt-gold-deep) !important;
    text-decoration: none !important;
    border-bottom: 1.5px dashed rgba(217,154,43,.50) !important;
    padding-bottom: 1px !important;
    transition: all .2s !important;
    font-weight: 600 !important;
}
.hv-article-content a:hover,
.hv-article-editorial a:hover {
    color: var(--nt-navy) !important;
    border-bottom-style: solid !important;
    border-bottom-color: var(--nt-gold) !important;
    background: rgba(217,154,43,.06) !important;
}

/* ═══════════════════════════════════════════════════════════
   ۱۰. تفکیک‌کننده
   ═══════════════════════════════════════════════════════════ */

.hv-article-content hr,
.hv-article-editorial hr {
    border: none !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, var(--nt-gold), transparent) !important;
    margin: 3em auto !important;
    max-width: 200px !important;
    border-radius: 3px !important;
    opacity: .40 !important;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════
   ۱۱. متن تزئینی خاص — «نقل از منبع»
   ═══════════════════════════════════════════════════════════ */

.hv-article-content .source,
.hv-article-editorial .source {
    display: block;
    font-size: .82rem !important;
    color: var(--nt-gray-500) !important;
    text-align: left !important;
    direction: ltr !important;
    margin-top: 8px !important;
    font-style: italic !important;
    padding: 4px 12px !important;
    border-right: 2px solid var(--nt-gold) !important;
}

/* ═══════════════════════════════════════════════════════════
   ۱۲. رسپانسیو
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 700px) {
    .hv-article-content h1,
    .hv-article-editorial h1 {
        font-size: 1.5rem !important;
    }
    .hv-article-content h2,
    .hv-article-editorial h2 {
        font-size: 1.25rem !important;
    }
    .hv-article-content .excerpt,
    .hv-article__excerpt,
    .article-lead {
        font-size: 1rem !important;
        padding: 16px 18px !important;
    }
    .hv-article-content p,
    .hv-article-editorial p {
        font-size: 1rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   ۱۳. پشتیبانی از متون قدیمی
   ═══════════════════════════════════════════════════════════ */

/* اگر ساختار متفاوتی بود، این‌ها هم کار می‌کنند */
article .post-body p,
.article-body p,
.post-content p,
.entry-content p {
    color: var(--nt-gray-700) !important;
    line-height: 2.1 !important;
}

article h1, article h2, article h3,
.article-body h1, .article-body h2, .article-body h3,
.post-content h1, .post-content h2, .post-content h3 {
    color: var(--nt-navy) !important;
}
