/* /assets/css/site.css — قالب خبری قرمز/سفید/مشکی برای asrenaft.com */

@font-face {
    font-family: "VazirFD";
    src: url("/fonts/Vazir-FD.woff2") format("woff2"),
         url("/fonts/Vazir-FD.woff") format("woff"),
         url("/fonts/Vazir-FD.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "VazirFD", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b1120;
    color: #e5e7eb;
    direction: rtl;
    line-height: 1.9;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #f97373;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 18px;
}

/* HEADER */

.site-header {
    background: #020617;
    box-shadow: 0 2px 18px rgba(0,0,0,.8);
    position: sticky;
    top: 0;
    z-index: 40;
}

/* TOPBAR */

.topbar {
    background: linear-gradient(90deg,#991b1b,#450a0a);
    border-bottom: 1px solid rgba(248,250,252,.08);
    font-size: 12px;
    color: #fee2e2;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-separator {
    opacity: .7;
}

.topbar-tagline {
    color: #fecaca;
}

.topbar-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #fef2f2;
    font-size: 11px;
    border: 1px solid rgba(254,242,242,.5);
}

/* HEADER MAIN */

.header-main {
    padding: 10px 0 12px;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* NAV TOGGLE */

.nav-toggle-input {
    display: none;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.6);
    background: #020617;
    cursor: pointer;
}

.nav-toggle-btn span {
    height: 2px;
    width: 20px;
    border-radius: 999px;
    background: #f9fafb;
    display: block;
}

/* LOGO */

.brand-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.brand-logo {
    min-width: 190px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid #ef4444;
    background: radial-gradient(circle at 20% 0%,#b91c1c,#020617 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 10px 30px rgba(239,68,68,.45);
}

.brand-text {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fef2f2;
}

/* NAV BAR */

.header-nav {
    border-top: 1px solid rgba(148,163,184,.25);
    border-bottom: 1px solid rgba(148,163,184,.25);
    background: #020617;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-item {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    background: #020617;
    border: 1px solid rgba(248,250,252,.12);
    white-space: nowrap;
    transition: .2s;
    color: #e5e7eb;
}

.nav-item-home {
    background: #ef4444;
    border-color: #ef4444;
    color: #fef2f2;
    font-weight: 700;
}

.nav-item:hover {
    background: #111827;
    border-color: #f97373;
}

/* NAV MOBILE */

@media (max-width: 900px) {
    .header-main-inner {
        justify-content: space-between;
    }

    .nav-toggle-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        right: 0;
        left: 0;
        top: 100%;
        margin-top: 4px;
        background: #020617;
        padding: 8px 0 10px;
        border-radius: 0 0 14px 14px;
        border: 1px solid rgba(148,163,184,.3);
        border-top: none;
        flex-direction: column;
        display: none;
        z-index: 30;
    }

    .nav-toggle-input:checked ~ .nav-menu {
        display: flex;
    }
}

/* MAIN LAYOUT */

.site-main {
    padding: 22px 0 32px;
}

.layout-wrapper {
    padding-top: 4px;
}

/* HOME */

.home-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* BLOCKS */

.block {
    background: rgba(15,23,42,.96);
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(248,250,252,.06);
    box-shadow: 0 20px 40px rgba(0,0,0,.6);
    margin-bottom: 18px;
}

.block-title {
    font-size: 17px;
    font-weight: 700;
    color: #fecaca;
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid #ef4444;
}

/* ADS */

.block-ads {
    font-size: 0;
}

/* HERO (تیترهای اصلی) */

.block-hero {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .block-hero {
        grid-template-columns: 1fr;
    }
}

.hero-main {
    min-height: 100%;
}

.hero-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(248,250,252,.08);
    background: #020617;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.hero-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.hero-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0;
    border-bottom: 3px solid #dc2626;
}

.hero-placeholder {
    height: 260px;
    background: radial-gradient(circle at 0 0,#fecaca,#1f2937);
    border-bottom: 3px solid #dc2626;
}

.hero-cat {
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(248,250,252,.95);
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.hero-body {
    padding: 14px 14px 16px;
}

.hero-title {
    font-size: 20px;
    font-weight: 800;
    margin: 3px 0 6px;
    color: #f9fafb;
}

.hero-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.hero-excerpt {
    font-size: 14px;
    color: #e5e7eb;
}

/* HERO SIDE */

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-card-small {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgba(248,250,252,.08);
    background: #020617;
}

.hero-thumb-small img {
    width: 100%;
    height: 100%;
    min-height: 84px;
    object-fit: cover;
    border-left: 3px solid #b91c1c;
}

.hero-placeholder-small {
    height: 84px;
    background: linear-gradient(135deg,#1f2937,#7f1d1d);
    border-left: 3px solid #b91c1c;
}

.hero-body-small {
    padding: 8px 10px 10px;
}

.hero-title-small {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #f9fafb;
}

.hero-meta-small {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    gap: 4px;
}

/* ECONOMY BLOCK */

.block-economy .block-title {
    margin-bottom: 12px;
}

.economy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

@media (max-width: 960px) {
    .economy-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 640px) {
    .economy-grid {
        grid-template-columns: 1fr;
    }
}

.economy-card {
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(248,250,252,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.economy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.7);
}

.economy-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 3px solid #b91c1c;
}

.economy-placeholder {
    height: 150px;
    background: linear-gradient(135deg,#111827,#7f1d1d);
    border-bottom: 3px solid #b91c1c;
}

.economy-body {
    padding: 9px 10px 12px;
}

.economy-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #f9fafb;
}

.economy-meta {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    gap: 4px;
}

/* NEWS GRID HOME */

.block-news-main .block-title {
    margin-bottom: 14px;
}

.news-grid-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

@media (max-width: 1200px) {
    .news-grid-main {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}
@media (max-width: 900px) {
    .news-grid-main {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 600px) {
    .news-grid-main {
        grid-template-columns: 1fr;
    }
}

.news-card-main {
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(248,250,252,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow .18s ease, transform .18s ease;
}

.news-card-main:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.8);
    transform: translateY(-2px);
}

.news-thumb-main img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 3px solid #b91c1c;
}

.news-placeholder {
    height: 150px;
    background: linear-gradient(135deg,#111827,#7f1d1d);
    border-bottom: 3px solid #b91c1c;
}

.news-body-main {
    padding: 9px 11px 12px;
}

.news-title-main {
    font-size: 14px;
    font-weight: 700;
    margin: 2px 0 5px;
    color: #f9fafb;
}

.news-meta-main {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-excerpt-main {
    font-size: 13px;
    color: #d1d5db;
}

/* CATEGORY LIST */

.content-main {
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(260px,1.1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .content-main {
        grid-template-columns: 1fr;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(248,250,252,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-thumb {
    position: relative;
    display: block;
}

.news-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 3px solid #dc2626;
}

.thumb-placeholder {
    height: 150px;
    background: linear-gradient(135deg,#111827,#7f1d1d);
    border-bottom: 3px solid #dc2626;
}

.badge-cat {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(248,250,252,.96);
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.news-body {
    padding: 9px 11px 12px;
}

.news-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #f9fafb;
}

.news-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.news-excerpt {
    font-size: 13px;
    color: #d1d5db;
}

/* SINGLE PAGE */

.block-single {
    background: #020617;
    border-radius: 16px;
    padding: 20px 22px 24px;
    border: 1px solid rgba(248,250,252,.08);
    box-shadow: 0 24px 48px rgba(0,0,0,.8);
}

.single-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.single-cat {
    padding: 3px 9px;
    border-radius: 999px;
    background: #b91c1c;
    color: #fee2e2;
    font-size: 11px;
}

.single-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #f9fafb;
}

.single-thumb img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #b91c1c;
    margin: 10px 0 14px;
}

.single-body {
    font-size: 15px;
    color: #e5e7eb;
    line-height: 1.95;
}

.single-body p {
    margin-bottom: 10px;
}

/* RELATED */

.related-block {
    margin-top: 22px;
}

.related-block h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #fecaca;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-item a {
    display: block;
    background: #111827;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid rgba(248,250,252,.08);
    color: #e5e7eb;
}

/* SIDEBAR */

.sidebar .block-small .block-title {
    margin-bottom: 8px;
}

.simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.simple-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(30,41,59,.8);
    font-size: 13px;
}

.simple-list li:last-child {
    border-bottom: none;
}

/* PAGINATION */

.pagination {
    margin-top: 18px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.page-link {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid #6b7280;
    background: #020617;
    color: #e5e7eb;
}

.page-link.active,
.page-link:hover {
    background: #ef4444;
    color: #fef2f2;
    border-color: #ef4444;
}

/* FOOTER */

.site-footer {
    background: #020617;
    border-top: 1px solid rgba(148,163,184,.4);
    margin-top: 20px;
}

.footer-inner {
    padding: 18px 18px 12px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 22px;
}

@media (max-width: 960px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fecaca;
    margin-bottom: 8px;
}

.footer-col p,
.footer-col li {
    font-size: 13px;
    color: #9ca3af;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    padding: 4px 0;
}

.footer-ad-text {
    margin: 14px 0 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #fef2f2;
    text-align: center;
    border-radius: 8px;
    background: #7f1d1d;
    border: 1px dashed #fecaca;
}

.footer-bottom {
    border-top: 1px solid rgba(148,163,184,.4);
    text-align: center;
    padding: 10px 0 6px;
    font-size: 12px;
    color: #6b7280;
}

/* HELPERS */

.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }



/* === اصلاح لی‌آوت تیترهای کنار اسلایدر (hero-side) === */

.block-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.hero-main {
    /* کارت بزرگ سمت راست/چپ (بسته به RTL) */
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* کارت‌های کوچک کناری */
.hero-card-small {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

/* فقط تصویر کوچک کنار تیترها */
.hero-thumb-small {
    display: block;
    flex: 0 0 130px;  /* عرض ثابت */
    height: 80px;     /* ارتفاع ثابت */
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #b91c1c; /* قرمز تیره */
}

.hero-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* بخش متنی کنار تصویر کوچک */
.hero-body-small {
    flex: 1;
}

.hero-title-small {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

.hero-meta-small {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ریسپانسیو: در موبایل اسلایدر ستونی شود */
@media (max-width: 900px) {
    .block-hero {
        grid-template-columns: 1fr;
    }
}
/* === استایل دایره‌ای برای تیترهای برگزیده (مثل استوری) === */

.block-headlines .headlines-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
    gap: 18px;
}

.headline-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* استوری دایره‌ای */
.headline-main-thumb {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #b91c1c; /* قرمز تیره */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
}

.headline-main-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* متن کنار استوری */
.headline-main-body {
    flex: 1;
}

.headline-main-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
}

.headline-main-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.headline-main-excerpt {
    font-size: 14px;
    color: #e5e7eb;
}

/* لیست سمت راست تیترها */
.headline-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.headline-side-item {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, .25);
    background: #0b1120;
}

.headline-side-title {
    font-size: 14px;
    font-weight: 700;
    margin: 2px 0 4px;
}

.headline-side-meta {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .block-headlines .headlines-layout {
        grid-template-columns: 1fr;
    }

    .headline-main {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .headline-main {
        flex-direction: row;
        align-items: flex-start;
    }

    .headline-main-thumb {
        width: 90px;
        height: 90px;
    }

    .headline-main-title {
        font-size: 17px;
    }
}
/* تیترهای امروز مینیمال‌تر و جمع‌وجورتر */
/* تیترهای امروز کمی بزرگ‌تر و خواناتر */
.block-headline-minimal .block-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(248, 113, 113, 0.4);
}

/* ردیف استوری‌ها */
.minimal-stories-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

/* کارت هر تیتر امروز – کمی بزرگ‌تر */
.story-card-minimal {
    width: 120px;
    flex: 0 0 auto;
    text-align: center;
}

/* دایره استوری بزرگ‌تر */
.story-thumb-circle {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    border: 2px solid #b91c1c;
    overflow: hidden;
    margin: 0 auto 8px;
    background: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-thumb-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* عنوان کامل و خواناتر */
.story-title-minimal {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    margin: 0;
    color: #e5e7eb;
}

.story-title-minimal a {
    color: inherit;
}

/* موبایل */
@media (max-width: 600px) {
    .story-card-minimal {
        width: 110px;
    }

    .story-thumb-circle {
        width: 80px;
        height: 80px;
    }

    .story-title-minimal {
        font-size: 11px;
    }
}
