/* ============================================================
   NewsForge v3 — Additional CSS
   slider + magazine-v3 + 2col archive + share + infographic
   improved sidebar + comments + single improvements
============================================================ */

/* ──── REMOVE issue/date from masthead ──── */
.nf-masthead__center { display: none !important; }

/* ══════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════ */
.nf-slider-wrap { position: relative; display: flex; flex-direction: column; }

.nf-slider { position: relative; overflow: hidden; border-radius: var(--nf-radius-lg); }

.nf-slide { display: none; }
.nf-slide.active { display: block; }
.nf-slide.animating-in  { animation: nf-slide-in  .45s ease forwards; }
.nf-slide.animating-out { animation: nf-slide-out .45s ease forwards; }
@keyframes nf-slide-in  { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:translateX(0)} }
@keyframes nf-slide-out { from{opacity:1;transform:translateX(0)} to{opacity:0;transform:translateX(20px)} }

.nf-slide-body { padding: 0; }

/* Controls bar */
.nf-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--nf-card);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
}
.nf-slider-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--nf-page);
  border: 1.5px solid var(--nf-border);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  color: var(--nf-text2);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.nf-slider-btn:hover { background: var(--nf-accent); border-color: var(--nf-accent); color: #fff; }

.nf-slider-dots { display: flex; gap: 6px; align-items: center; justify-content: center; flex: 1; }
.nf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nf-border2);
  border: none; cursor: pointer; transition: all .2s; padding: 0;
}
.nf-dot.active { background: var(--nf-accent); width: 20px; border-radius: 4px; }

/* Thumbnails strip */
.nf-slider-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.nf-thumb-item {
  cursor: pointer;
  border-radius: var(--nf-radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
  position: relative;
}
.nf-thumb-item.active { border-color: var(--nf-accent); }
.nf-thumb-item img { width: 100%; height: 60px; object-fit: cover; display: block; }
.nf-thumb-item span {
  display: block;
  font-size: 10px; font-weight: 600;
  color: var(--nf-text2);
  padding: 4px 5px;
  line-height: 1.3;
  background: var(--nf-card);
  border-top: 1px solid var(--nf-border);
}

/* ══════════════════════════════════════════
   MAGAZINE V3 — big + 5 side stacked
══════════════════════════════════════════ */
.nf-magazine-grid--v3 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 18px;
}
.nf-mag-side-v3 { display: flex; flex-direction: column; gap: 0; }

.nf-mag-side-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nf-border);
  cursor: pointer;
  transition: background .15s;
  align-items: flex-start;
}
.nf-mag-side-item:last-child { border-bottom: none; }
.nf-mag-side-item:hover { opacity: .85; }
.nf-msi-img {
  width: 80px; height: 64px;
  border-radius: 5px; overflow: hidden;
  flex-shrink: 0; display: block;
}
.nf-msi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-msi-body { flex: 1; }
.nf-msi-cat {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  display: block; margin-bottom: 3px;
}
.nf-msi-body h4 {
  font-size: 13px; font-weight: 700;
  line-height: 1.35; color: var(--nf-text);
}
.nf-msi-body h4 a { color: inherit; }
.nf-msi-body h4 a:hover { color: var(--nf-accent); }
.nf-msi-meta { font-size: 10px; color: var(--nf-text3); margin-top: 3px; }

/* ══════════════════════════════════════════
   2-COLUMN ARCHIVE
══════════════════════════════════════════ */
.nf-archive-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.nf-arc2-item {
  background: var(--nf-card);
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .2s, transform .18s;
}
.nf-arc2-item:hover { box-shadow: var(--nf-shadow); transform: translateY(-2px); }
.nf-arc2-img {
  display: block;
  height: 170px;
  overflow: hidden;
  position: relative;
}
.nf-arc2-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nf-arc2-item:hover .nf-arc2-img img { transform: scale(1.04); }
.nf-arc2-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.nf-arc2-body h3 {
  font-size: 15px; font-weight: 700;
  line-height: 1.35; color: var(--nf-text);
  margin-bottom: 7px;
}
.nf-arc2-body h3 a { color: inherit; }
.nf-arc2-body h3 a:hover { color: var(--nf-accent); }
.nf-arc2-body p {
  font-size: 12px; color: var(--nf-text2);
  line-height: 1.6; flex: 1;
}
.nf-arc2-meta {
  font-size: 11px; color: var(--nf-text3);
  display: flex; gap: 10px; margin-top: 10px;
  padding-top: 8px; border-top: 1px solid var(--nf-border);
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   SHARE BUTTONS (mini — in cards)
══════════════════════════════════════════ */
.nf-share-mini {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  align-items: center;
}
.nf-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  font-size: 12px; font-weight: 800;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  color: #fff !important;
}
.nf-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.nf-share-tw { background: #1a1a1a; }
.nf-share-fb { background: #1877f2; font-style: normal; }
.nf-share-wa { background: #25d366; font-size: 14px; }
.nf-share-tg { background: #229ed9; }

/* Share buttons — SINGLE POST (full size) */
.nf-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin: 20px 0;
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
}
.nf-share-bar__label { font-size: 13px; font-weight: 700; color: var(--nf-text2); }
.nf-share-bar a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: var(--nf-radius);
  font-size: 12px; font-weight: 700;
  text-decoration: none; color: #fff !important;
  transition: opacity .15s;
}
.nf-share-bar a:hover { opacity: .88; }
.nf-share-bar .sh-tw { background: #1a1a1a; }
.nf-share-bar .sh-fb { background: #1877f2; }
.nf-share-bar .sh-wa { background: #25d366; }
.nf-share-bar .sh-tg { background: #229ed9; }
.nf-share-bar .sh-copy {
  background: var(--nf-page);
  color: var(--nf-text) !important;
  border: 1.5px solid var(--nf-border);
}
.nf-share-bar .sh-copy:hover { background: var(--nf-accent); color: #fff !important; border-color: var(--nf-accent); }

/* Load more button */
.nf-btn-more {
  display: inline-block;
  padding: 12px 32px;
  background: var(--nf-page);
  border: 2px solid var(--nf-border2);
  border-radius: var(--nf-radius);
  font-size: 13px; font-weight: 700;
  color: var(--nf-text2);
  transition: all .15s;
  cursor: pointer;
}
.nf-btn-more:hover { background: var(--nf-accent); border-color: var(--nf-accent); color: #fff; }

/* ══════════════════════════════════════════
   INFOGRAPHIC / عدسة الموقع
══════════════════════════════════════════ */
.nf-infographic-section {
  background: var(--nf-text);
  padding: 28px 0;
}
.nf-infographic-section .nf-section-head__bar { background: var(--nf-accent); }
.nf-infographic-section .nf-section-head__title { color: #fff; }
.nf-infographic-section .nf-section-head__line { background: rgba(255,255,255,.1); }
.nf-infographic-section .nf-section-head__link { color: rgba(255,255,255,.5); }
.nf-infographic-section .nf-section-head__link:hover { color: var(--nf-accent); }

.nf-infographic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.nf-infographic-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.nf-infographic-card:hover { transform: translateY(-4px); border-color: var(--nf-accent); }
.nf-ig-img {
  display: block;
  height: 160px;
  overflow: hidden;
  position: relative;
}
.nf-ig-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.nf-infographic-card:hover .nf-ig-img img { transform: scale(1.06); }
.nf-ig-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.nf-infographic-card:hover .nf-ig-overlay { opacity: 1; }
.nf-ig-read {
  background: var(--nf-accent); color: #fff;
  padding: 7px 16px; border-radius: 4px;
  font-size: 12px; font-weight: 700;
}
.nf-ig-body { padding: 12px; }
.nf-ig-body h3 { font-size: 13px; font-weight: 700; line-height: 1.35; color: #e0dbd0; }
.nf-ig-body h3 a { color: inherit; }
.nf-ig-body h3 a:hover { color: var(--nf-accent); }
.nf-ig-meta { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 5px; }

/* ══════════════════════════════════════════
   SIDEBAR WIDGETS — improved
══════════════════════════════════════════ */
.nf-widget { margin-bottom: 18px; }

/* Recent posts widget with thumbnails */
.nf-widget ul.posts-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nf-widget ul.posts-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--nf-border);
}
.nf-widget ul.posts-list li:last-child { border-bottom: none; }
.nf-widget ul.posts-list li img {
  width: 64px; height: 52px; object-fit: cover;
  border-radius: 5px; flex-shrink: 0;
}
.nf-widget ul.posts-list li a { font-size: 13px; font-weight: 600; color: var(--nf-text); line-height: 1.4; }
.nf-widget ul.posts-list li a:hover { color: var(--nf-accent); }
.nf-widget ul.posts-list li .post-date { font-size: 10px; color: var(--nf-text3); margin-top: 3px; display: block; }

/* Categories widget with count */
.nf-widget ul.cats-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nf-widget ul.cats-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--nf-border);
  font-size: 13px; color: var(--nf-text2);
  transition: color .15s; cursor: pointer;
}
.nf-widget ul.cats-list li:last-child { border-bottom: none; }
.nf-widget ul.cats-list li a {
  display: flex; align-items: center; gap: 6px;
  color: var(--nf-text2); font-weight: 600;
  transition: color .15s;
}
.nf-widget ul.cats-list li a::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--nf-accent); flex-shrink: 0;
}
.nf-widget ul.cats-list li a:hover { color: var(--nf-accent); }
.nf-widget ul.cats-list li .cat-count {
  background: var(--nf-page); border: 1px solid var(--nf-border);
  border-radius: 12px; padding: 1px 8px;
  font-size: 10px; font-weight: 700; color: var(--nf-text3);
}

/* Recent comments widget */
.nf-widget ul.comments-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nf-widget ul.comments-list li {
  padding: 9px 0; border-bottom: 1px solid var(--nf-border);
  font-size: 12px; color: var(--nf-text2); line-height: 1.5;
}
.nf-widget ul.comments-list li:last-child { border-bottom: none; }
.nf-widget ul.comments-list li .comment-author-link { font-weight: 700; color: var(--nf-accent); }
.nf-widget ul.comments-list li .comment-excerpt { color: var(--nf-text3); margin-top: 2px; display: block; }
.nf-widget ul.comments-list li a { color: var(--nf-text2); }
.nf-widget ul.comments-list li a:hover { color: var(--nf-accent); }

/* Archive widget */
.nf-widget ul.archive-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nf-widget ul.archive-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--nf-border); font-size: 12px;
}
.nf-widget ul.archive-list li:last-child { border-bottom: none; }
.nf-widget ul.archive-list li a { color: var(--nf-text2); font-weight: 600; }
.nf-widget ul.archive-list li a:hover { color: var(--nf-accent); }
.nf-widget ul.archive-list li .count { background: var(--nf-page); border: 1px solid var(--nf-border); border-radius: 10px; padding: 1px 7px; font-size: 10px; color: var(--nf-text3); }

/* ══════════════════════════════════════════
   COMMENT FORM — improved
══════════════════════════════════════════ */
.nf-comments-section { margin-top: 36px; }
.nf-comments-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: var(--nf-text); }

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.comment {
  padding: 18px 0; border-bottom: 1px solid var(--nf-border);
  display: flex; gap: 14px;
}
.comment .comment-author img { border-radius: 50%; width: 46px; height: 46px; object-fit: cover; flex-shrink: 0; }
.comment .comment-author .fn { font-size: 14px; font-weight: 700; color: var(--nf-text); }
.comment-meta { font-size: 11px; color: var(--nf-text3); margin: 2px 0 8px; }
.comment-content p { font-size: 14px; color: var(--nf-text2); line-height: 1.7; }
.reply a { font-size: 11px; color: var(--nf-accent); font-weight: 700; text-decoration: none; margin-top: 6px; display: inline-block; }

/* Comment form */
#respond { margin-top: 28px; }
#respond h3 {
  font-size: 18px; font-weight: 800;
  color: var(--nf-text); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--nf-accent);
}
.comment-form .comment-notes { font-size: 13px; color: var(--nf-text3); margin-bottom: 14px; }
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment { margin-bottom: 14px; }
.comment-form label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--nf-text); margin-bottom: 5px;
}
.comment-form .required { color: var(--nf-accent); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--nf-border);
  border-radius: var(--nf-radius);
  font-family: var(--nf-font-primary);
  font-size: 14px; color: var(--nf-text);
  outline: none; transition: border-color .15s;
  background: var(--nf-card);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--nf-accent); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.form-submit input[type="submit"] {
  background: var(--nf-accent); color: #fff;
  border: none; border-radius: var(--nf-radius);
  padding: 11px 28px; font-family: var(--nf-font-primary);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.form-submit input[type="submit"]:hover { background: var(--nf-accent-hover); }

/* ══════════════════════════════════════════
   SINGLE PAGE improvements
══════════════════════════════════════════ */
.nf-article__progress {
  position: fixed; top: 0; right: 0; left: 0;
  height: 3px; background: var(--nf-accent);
  z-index: 9999; transform-origin: right;
  transition: width .1s;
}
.nf-article__toc {
  background: var(--nf-page);
  border: 1px solid var(--nf-border);
  border-right: 3px solid var(--nf-accent);
  border-radius: 0 var(--nf-radius) var(--nf-radius) 0;
  padding: 14px 16px; margin: 20px 0;
}
.nf-article__toc h4 { font-size: 13px; font-weight: 800; margin-bottom: 8px; color: var(--nf-text); }
.nf-article__toc ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.nf-article__toc ul li a { font-size: 13px; color: var(--nf-text2); transition: color .15s; }
.nf-article__toc ul li a:hover { color: var(--nf-accent); }
.nf-article__toc ul li::before { content: '›'; margin-left: 6px; color: var(--nf-accent); font-weight: 800; }

/* ══════════════════════════════════════════
   IMPORT POSTS FORM (in admin)
══════════════════════════════════════════ */
.nf-import-form { background: var(--nf-page); border: 1.5px solid var(--nf-border); border-radius: 8px; padding: 16px; margin-top: 12px; }
.nf-import-form input[type="url"] { width: 100%; padding: 9px 12px; border: 1.5px solid var(--nf-border); border-radius: 6px; font-size: 13px; margin-bottom: 8px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nf-infographic-grid { grid-template-columns: repeat(3, 1fr); }
  .nf-slider-thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nf-magazine-grid--v3 { grid-template-columns: 1fr; }
  .nf-archive-twocol { grid-template-columns: 1fr; }
  .nf-infographic-grid { grid-template-columns: repeat(2, 1fr); }
  .nf-slider-thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nf-infographic-grid { grid-template-columns: 1fr 1fr; }
  .nf-slider-thumbs { display: none; }
  .nf-share-mini { gap: 4px; }
  .nf-share-btn { width: 26px; height: 26px; font-size: 11px; }
}
