/* آخرین مطالب کانال بله — الگوی موکب زینبیه، تم هشت آنلاین */
.channel-feed-section {
  max-width: 1480px;
  margin: 22px auto 0;
  padding: 22px 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
.channel-feed-head {
  max-width: 720px;
}
.channel-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--site-accent, #0f62fe);
}
.channel-feed-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  color: var(--site-primary, #1e3a5f);
}
.channel-rule {
  width: 72px;
  height: 3px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 99px;
  background: var(--site-accent, #0f62fe);
}
.channel-feed-head p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}
.channel-feed-head a {
  color: var(--site-accent, #0f62fe);
  font-weight: 700;
  text-decoration: none;
}
.channel-feed-head a:hover { text-decoration: underline; }

/* ستون سوم صفحه اصلی — همان امکانات، جای قبلی کنار بلاگ و فید */
.home-col.channel-feed-section {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-col-bale .channel-feed-head {
  max-width: none;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.home-col-bale .channel-feed-head h2 {
  margin: 4px 0 4px;
  font-size: 15px;
}
.home-col-bale .channel-kicker { font-size: 11px; }
.home-col-bale .channel-rule { width: 48px; margin: 6px 0 8px; }
.home-col-bale .channel-feed-head p { font-size: 12px; line-height: 1.55; }
.home-col-bale .channel-feed {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 10px 0;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.home-col-bale .channel-feed-actions {
  margin: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.home-col-bale .channel-feed-actions .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.home-col-bale .channel-feed-actions .btn-sec {
  display: none;
}

.channel-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.channel-feed-status {
  grid-column: 1 / -1;
  padding: 28px 12px;
  color: #64748b;
  text-align: center;
}
.channel-feed-status a { color: var(--site-accent, #0f62fe); font-weight: 700; }

.channel-post {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 42%);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.channel-post:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--site-accent, #0f62fe) 28%, #cbd5e1);
  box-shadow: 0 12px 28px rgba(15, 98, 254, 0.1);
}
.channel-post-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eef4;
}
.channel-post-media img,
.channel-post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.channel-post-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  flex: 1;
}
.channel-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.channel-post-meta .kind {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
}
.channel-post-text {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.channel-post-more {
  align-self: flex-start;
  margin-top: auto;
  color: var(--site-accent, #0f62fe);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.channel-post-more:hover { text-decoration: underline; }

.channel-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.channel-feed-actions .btn {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}
.channel-feed-actions .btn-primary {
  background: var(--site-accent, #0f62fe);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25);
}
.channel-feed-actions .btn-sec {
  background: #fff;
  color: #1e3a5f;
  border: 1px solid #cbd5e1;
}

@media (max-width: 980px) {
  .channel-feed { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .channel-feed { grid-template-columns: 1fr; }
  .channel-feed-section { padding: 16px 12px; }
}

/* آرشیو */
.bale-archive-hero {
  max-width: 1480px;
  margin: 16px auto 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.bale-archive-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--site-primary, #1e3a5f);
  font-weight: 800;
}
.bale-archive-hero p { margin: 0; color: #64748b; font-size: 15px; line-height: 1.6; }
.bale-archive-hero a { color: var(--site-accent, #0f62fe); font-weight: 700; text-decoration: none; }
.bale-back { display: inline-block; margin-bottom: 8px; color: var(--site-accent, #0f62fe); font-weight: 700; text-decoration: none; font-size: 13px; }

.bale-archive-wrap {
  max-width: 1480px;
  margin: 16px auto 0;
  padding: 0 14px 32px;
}
.archive-feed { display: grid; gap: 16px; }
.archive-post {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.archive-post-media {
  overflow: hidden;
  background: #e8eef4;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  border-radius: 12px;
}
.archive-post-media.is-zoomable { cursor: zoom-in; }
.archive-post-media img,
.archive-post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.archive-post-media img { pointer-events: none; }
.archive-post-media video { pointer-events: auto; }
.archive-post-body { min-width: 0; }
.archive-post-text {
  margin: 10px 0 0;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.archive-post-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--site-accent, #0f62fe);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}
.archive-post-link:hover { text-decoration: underline; }
.archive-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.archive-post-link--ext { color: #64748b; font-weight: 600; }
.archive-pager {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.archive-pager-meta { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.archive-pager-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.archive-page-btn {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e3a5f;
  font-weight: 700;
  cursor: pointer;
}
.archive-page-btn.is-active {
  background: var(--site-accent, #0f62fe);
  border-color: transparent;
  color: #fff;
}
.archive-page-btn:disabled { opacity: 0.45; cursor: default; }

body.lightbox-open { overflow: hidden; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  padding: 24px;
}
.image-lightbox[hidden] { display: none; }
.image-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.image-lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .archive-post { grid-template-columns: 1fr; }
}
