/* ============================================================
   SICOMP — ARTICLES.CSS
   صفحات لیست مقالات + مقاله تک
   نسخه: 1.0
   ============================================================ */

/* ==================== Hero لیست مقالات ==================== */
.article-hero { height: 245px; position: relative; overflow: hidden; background: #eaf3ff; }
.article-hero__bg { position: absolute; inset: 0; background: url('../images/laptop-shop.png') left center/cover no-repeat; }
.article-hero__shade { position: absolute; inset: 0; background: linear-gradient(270deg, #f7faff 0%, #f7faffed 27%, #f7faff80 55%, #f7faff08 85%); }
.article-hero__inner { height: 100%; display: flex; align-items: center; position: relative; }
.article-hero__copy { width: 100%; margin-right: auto; border-right: 4px solid var(--red); padding: 8px 18px 8px 0; }
.article-hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.5; margin: 0 0 8px; }
.article-hero p { font-size: 14px; font-weight: 600; margin: 0; }

/* ==================== لیست مقالات ==================== */
.articles-main { padding-top: 28px; padding-bottom: 30px; }
.articles-toolbar { display: grid; grid-template-columns: 1fr minmax(250px, 370px); align-items: center; gap: 25px; }
.articles-toolbar .section-heading { margin: 0; }

.article-search { height: 43px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 24px; padding: 0 15px; background: #fff; color: var(--blue); }
.article-search span { font-size: 24px; }
.article-search input { width: 100%; border: 0; outline: 0; background: transparent; font: 500 12px Vazir, Tahoma, sans-serif; color: var(--ink); }

.article-categories { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 22px 0; }
.article-filter { border: 1px solid #cbdcf7; background: #fff; color: var(--ink); padding: 8px 17px; border-radius: 24px; font: 700 11px Vazir, Tahoma, sans-serif; cursor: pointer; transition: .2s; }
.article-filter:hover, .article-filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.featured-article { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #cbdcf7; border-radius: 14px; background: linear-gradient(120deg, #f3f8ff, #fff); box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.featured-article__image { min-height: 260px; overflow: hidden; }
.featured-article__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.featured-article__image:hover img { transform: scale(1.035); }
.featured-article__content { padding: 28px; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; }
.featured-article h2 { font-size: 21px; margin: 8px 0; }
.featured-article p { font-size: 12px; line-height: 2.1; color: var(--muted); margin: 0 0 13px; }
.article-card-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #748198; font-size: 10px; margin-bottom: 12px; }
.featured-article .btn { margin-top: 8px; }

.articles-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.articles-list-heading h2 { font-size: 19px; }
.articles-list-heading span { font-size: 11px; color: var(--muted); }

.all-articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(9, 39, 92, .04); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card[hidden] { display: none; }
.article-card__image { height: 172px; position: relative; display: block; overflow: hidden; background: #edf3fa; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-card__image img { transform: scale(1.04); }
.article-card__image > span { position: absolute; top: 12px; right: 12px; background: rgba(231, 242, 255, .93); color: #075db7; border-radius: 20px; padding: 4px 12px; font-size: 10px; font-weight: 800; }
.article-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 15px; }
.article-card__body h3 { font-size: 14px; line-height: 1.8; margin: 0 0 6px; }
.article-card__body h3 a:hover { color: var(--blue); }
.article-card__body p { font-size: 11px; line-height: 2; color: var(--muted); margin: 0 0 12px; }
.article-card__body .read-more { margin-top: auto; align-self: flex-start; padding: 6px 11px; border-radius: 8px; background: #eef6ff; color: #075db7; font-size: 10px; font-weight: 800; }
.article-card__body .read-more:hover { background: #dceeff; }

.no-articles { text-align: center; padding: 30px; color: var(--muted); font-size: 13px; }
.pagination { display: flex; justify-content: center; gap: 7px; margin: 25px 0 8px; }
.pagination a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 800; }
.pagination a.is-current, .pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.content-disclaimer { font-size: 10px; color: #78869a; text-align: center; margin: 15px 0 0; }

.articles-contact { margin-bottom: 38px; padding: 20px 28px; border: 1px solid #d4e4fa; border-radius: 13px; background: linear-gradient(100deg, #eaf3ff, #fff); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.articles-contact h2 { font-size: 17px; margin: 0 0 4px; }
.articles-contact p { font-size: 11px; margin: 0; color: var(--muted); }

/* ==================== صفحه مقاله تک ==================== */
.article-detail-hero { background: linear-gradient(120deg, #f5f9ff, #eaf3ff); padding: 16px 0 30px; border-bottom: 1px solid #e1ebf8; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; font-size: 10px; color: #63758f; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs b { font-weight: 700; color: var(--ink); }
.article-detail-hero__grid { display: grid; grid-template-columns: 1fr .92fr; gap: 38px; align-items: center; }
.article-detail-hero__text h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.65; margin: 8px 0; }
.article-detail-hero__text > p { font-size: 13px; line-height: 2; color: #405574; margin: 0 0 17px; max-width: 650px; }
.article-author { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #62728a; }
.article-author i { width: 4px; height: 4px; border-radius: 50%; background: #9aa9bb; }
.author-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; font-size: 13px; }
.article-detail-hero__image { height: 260px; border: 1px solid #cbdcf7; border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.article-detail-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 270px minmax(0, 760px); gap: 38px; justify-content: center; align-items: start; padding-top: 35px; padding-bottom: 35px; }
.article-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 15px; }
.toc-box, .sidebar-contact { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 17px; box-shadow: var(--shadow-sm); }
.toc-box h2 { font-size: 14px; margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid #edf2fa; }
.toc-box a { display: block; font-size: 11px; color: #52647f; padding: 6px 0; border-bottom: 1px solid #f0f4fa; transition: color .2s; }
.toc-box a:hover, .toc-box a.is-active { color: var(--blue); font-weight: 800; }
.sidebar-contact { background: linear-gradient(145deg, #eff6ff, #fff); }
.sidebar-contact > span { font-size: 13px; font-weight: 900; }
.sidebar-contact p { font-size: 11px; line-height: 1.9; color: var(--muted); margin: 6px 0; }
.sidebar-contact a { font-size: 11px; color: var(--blue); font-weight: 900; }

.article-content { min-width: 0; color: #293e5d; }
.article-content__meta { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e8eef7; color: #748198; font-size: 10px; }
.article-content p { font-size: 13px; line-height: 2.35; margin: 0 0 17px; text-align: justify; }
.article-content .article-lead { font-size: 15px; font-weight: 600; color: #173761; margin: 18px 0 24px; }
.article-content h2 { font-size: 20px; margin: 25px 0 9px; color: var(--navy); }
.article-content blockquote { margin: 22px 0; padding: 15px 18px; border-right: 3px solid var(--blue); border-radius: 8px; background: #f0f6ff; color: #244c7c; font-size: 13px; font-weight: 700; line-height: 2; }
.article-figure { margin: 22px 0; }
.article-figure img { width: 100%; max-height: 330px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.article-figure figcaption { font-size: 10px; color: #7b8798; text-align: center; margin-top: 7px; }

.article-end-cta { padding: 19px; border: 1px solid #cfe0fa; border-radius: 12px; background: linear-gradient(110deg, #eaf3ff, #fff); margin-top: 28px; }
.article-end-cta h3 { font-size: 15px; margin: 0 0 4px; }
.article-end-cta p { font-size: 11px; margin: 0 0 12px; }
.article-end-cta .btn { font-size: 11px; padding: 8px 16px; }

.article-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 18px; font-size: 10px; }
.article-tags span { background: #edf5ff; color: #18528d; border-radius: 18px; padding: 4px 10px; }

.related-articles { padding-top: 12px; padding-bottom: 28px; }
.related-articles .section-heading { margin-bottom: 15px; }
.related-articles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-articles .article-card__image { height: 135px; }
.related-articles .article-card__body h3 { font-size: 12px; }
.back-to-articles { text-align: center; margin-top: 20px; }

/* ==================== ریسپانسیو ==================== */
@media (max-width: 950px) {
    .articles-toolbar { grid-template-columns: 1fr; }
    .article-search { max-width: 100%; }
    .article-detail-hero__grid { gap: 22px; }
    .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 760px) {
    .article-hero { height: 205px; }
    .article-hero__shade { background: linear-gradient(180deg, #f7faff55, #f7faffed 65%); }
    .article-hero__inner { align-items: flex-end; padding-bottom: 23px; }
    .article-hero__copy { width: 100%; margin: 0; text-align: center; border: 0; padding: 0; }
    .article-hero h1 { font-size: 24px; }
    .article-hero p { font-size: 11px; }
    .articles-main { padding-top: 20px; }
    .articles-toolbar { gap: 15px; }
    .article-categories { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
    .article-filter { white-space: nowrap; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-article__image { min-height: 185px; height: 185px; }
    .featured-article__content { padding: 18px; }
    .featured-article h2 { font-size: 17px; }
    .all-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .article-card__image { height: 130px; }
    .article-card__body { padding: 11px; }
    .article-card__body h3 { font-size: 12px; }
    .article-card__body p { font-size: 10px; }
    .articles-list-heading span { display: none; }
    .articles-contact { flex-direction: column; text-align: center; padding: 17px; }
    .articles-contact h2 { font-size: 14px; }
    .articles-contact p { font-size: 10px; }
    .article-detail-hero { padding-bottom: 20px; }
    .article-detail-hero__grid { grid-template-columns: 1fr; gap: 15px; }
    .article-detail-hero__text h1 { font-size: 23px; }
    .article-detail-hero__text > p { font-size: 11px; }
    .article-detail-hero__image { height: 190px; order: -1; }
    .article-layout { grid-template-columns: 1fr; padding-top: 20px; gap: 15px; }
    .article-sidebar { position: static; order: 2; }
    .article-content { order: 1; }
    .article-content p { font-size: 12px; }
    .article-content .article-lead { font-size: 13px; }
    .article-content h2 { font-size: 17px; }
    .related-articles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .related-articles__grid .article-card:last-child { display: none; }
}
@media (max-width: 430px) {
    .all-articles-grid { grid-template-columns: 1fr; }
    .article-card__image { height: 175px; }
    .related-articles__grid { grid-template-columns: 1fr 1fr; }
    .article-author { font-size: 9px; }
}