/* ═══════════════════════════════════════════
   آفاق — CSS إضافي لصفحة المقال الواحد
   ملف: css/single.css (يُضاف إلى afaq.css)
═══════════════════════════════════════════ */

/* ── هيرو المقال ── */
.afq-single-hero {
  position: relative;
  overflow: hidden;
  background: #0a0c12;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}
.afq-single-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.afq-single-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.45) saturate(1.1);
}
body.dark-mode .afq-single-hero-img img,
[data-theme="dark"] .afq-single-hero-img img {
  filter: brightness(.3) saturate(.9);
}
.afq-single-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10,12,18,.92) 0%, rgba(10,12,18,.35) 60%, transparent 100%);
}
.afq-single-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 52px;
  padding-top: 80px;
  max-width: 820px;
}
.afq-single-hero-title {
  font-family: var(--fh);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 18px;
}
.afq-single-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.afq-single-hero-meta strong { color: rgba(255,255,255,.9); }
.afq-single-hero-meta .afq-art-author { color: rgba(255,255,255,.85); }
.afq-single-hero-meta .afq-art-author-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.afq-single-hero-meta .afq-art-author-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.afq-single-wrap { min-height: 60vh; }

/* ── In-content ad ── */
.afq-in-content-ad {
  margin: 32px auto;
  text-align: center;
  clear: both;
}

/* ── Article progress ring (reading indicator) ── */
.afq-read-progress {
  position: fixed;
  bottom: 82px;
  inset-inline-end: 28px;
  z-index: 9997;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.afq-read-progress.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.afq-read-progress svg { transform: rotate(-90deg); }
.afq-read-progress circle { transition: stroke-dashoffset .2s linear; }

@media (max-width: 768px) {
  .afq-single-hero { min-height: 380px; }
  .afq-single-hero-content { padding-bottom: 36px; padding-top: 60px; }
}
