/* ============================================================
   HotNews.co.il — article.css
   CSS ייחודי לדף article
   ============================================================ */

.article-title {
      margin: 0 0 10px;
      font-size: clamp(28px, 3.2vw, 40px);
      line-height: 1.2;
      letter-spacing: -0.5px;
    }
    .article-subtitle {
      margin: 0;
      font-size: 19px;
      color: var(--text-soft);
      line-height: 1.5;
      max-width: 950px;
    }

    .article-meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      padding: 0 22px 18px;
      border-bottom: 1px solid var(--border-color);
    }
    .meta-main,
    .meta-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    .article-hero-media {
      padding: 18px 22px 0;
    }
    .hero-media-box {
      min-height: 420px;
      border-radius: 20px;
      overflow: hidden;
      background: linear-gradient(135deg, #526075, #111827);
      position: relative;
    }
    .hero-media-box::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%);
    }
    .hero-caption {
      padding: 10px 4px 0;
      color: var(--text-soft);
      font-size: 13px;
    }

    .article-layout-inner {
      padding: 22px;
    }

    .article-content {
      min-width: 0;
      max-width: var(--content-width);
    }
    .article-content p {
      margin: 0 0 20px;
      font-size: 19px;
      color: #1f2937;
      line-height: 1.9;
    }
    .article-content h2 {
      margin: 26px 0 14px;
      font-size: 34px;
      line-height: 1.1;
      letter-spacing: -0.5px;
    }
    .article-content h3 {
      margin: 22px 0 12px;
      font-size: 26px;
      line-height: 1.15;
    }
    .article-content ul {
      margin: 0 0 22px;
      padding-right: 20px;
      color: #1f2937;
      font-size: 18px;
      line-height: 1.9;
    }
    .article-content li { margin-bottom: 8px; }

    .article-highlight,
    .article-quote,
    .inline-related {
      margin: 24px 0;
      border-radius: 20px;
      overflow: hidden;
    }
    .article-highlight {
      padding: 18px;
      background: #fff7db;
      border: 1px solid #f0e0a2;
    }
    .article-highlight strong {
      display: block;
      margin-bottom: 8px;
      font-size: 20px;
    }
    .article-highlight p { margin: 0; font-size: 17px; line-height: 1.75; }

    .article-quote {
      padding: 24px;
      background: var(--brand-secondary);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.05);
    }
    .article-quote blockquote {
      margin: 0;
      font-size: 28px;
      line-height: 1.5;
      font-weight: 800;
    }
    .article-quote cite {
      display: block;
      margin-top: 10px;
      color: var(--text-soft);
      font-size: 14px;
      font-style: normal;
    }

    .inline-related {
      border: 1px solid var(--border-color);
      background: var(--bg-surface);
      padding: 18px;
    }
    .inline-related h3 {
      margin: 0 0 12px;
      font-size: 22px;
    }
    .inline-related-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .inline-related a {
      display: block;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid var(--border-color);
      background: var(--bg-muted);
      font-weight: 700;
    }

    .tags-row {
      padding: 0 22px 22px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .tag-chip {
      display: inline-flex;
      align-items: center;
      padding: 9px 12px;
      border-radius: 999px;
      border: 1px solid var(--border-color);
      background: var(--bg-muted);
      font-size: 14px;
      color: #243244;
    }
    .tag-chip:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      padding: 16px 18px;
      border-bottom: 3px solid var(--brand-primary);
    }
    .section-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      color: var(--text-soft);
      font-size: 13px;
    }

    .cards-grid {
      display: grid;
      gap: 16px;
      padding: 16px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .card {
      border: 1px solid var(--border-color);
      border-radius: 18px;
      overflow: hidden;
      background: #fff;
      min-width: 0;
    }
    .card-thumb {
      height: 180px;
      background: linear-gradient(135deg, #dce5f1, #b7c6dc);
    }
    .card-body { padding: 14px; }
    .card h3 {
      margin: 0 0 8px;
      font-size: 19px;
      line-height: 1.35;
      font-weight: 800;
    }
    .card p {
      margin: 0;
      color: var(--text-soft);
      font-size: 14px;
      line-height: 1.5;
    }

    @media (max-width: 1180px) {
      .article-shell {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      .article-main {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      .article-main > .panel { order: 1; }
      .article-main > #related { order: 2; }
      .article-sidebar { order: 3; }
      .article-main > .article-ad-slot { order: 4; }
      .article-main > .article-comments-block { order: 5; }
      .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 980px) {
      .cards-grid,
      .inline-related-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .container { width: min(100% - 14px, var(--container-width)); }
      .article-header,
      .article-meta-row,
      .article-hero-media,
      .article-share-bar,
      .article-layout-inner,
      .article-tags-top,
      .tags-row,
      .section-head,
      .cards-grid,
      .widget-body {
        padding-left: 14px;
        padding-right: 14px;
      }
      .article-title { font-size: 24px; line-height: 1.25; }
      .article-subtitle { font-size: 16px; line-height: 1.5; }
      .hero-media-box { min-height: 220px; }
      .article-content p,
      .article-content ul { font-size: 16px; }
      .article-content > p:first-of-type { font-size: 17px; }
      .article-content h2 { font-size: 22px; }
      .article-content h3 { font-size: 19px; }
      .article-meta-row {
        gap: 8px;
      }
      .article-meta-row .meta-main {
        font-size: 12px;
        gap: 6px;
      }
    }

    @media (max-width: 480px) {
      .article-title { font-size: 22px; }
      .article-subtitle { font-size: 15px; }
      .hero-media-box { min-height: 180px; }
      .article-content p,
      .article-content ul { font-size: 15px; }
      .article-content > p:first-of-type { font-size: 16px; }
      .article-content h2 { font-size: 20px; }
      .article-content h3 { font-size: 17px; }
    }

/* ─── קישורים פנימיים בגוף הכתבה ─── */
.article-content a {
  color: #1a73e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover {
  color: #1557b0;
}


.hero-media-box img { width:100%; max-height:480px; object-fit:cover; display:block; border-radius:var(--radius-xl); }
.article-meta-row a { color:inherit; }
.article-meta-row a:hover { text-decoration:underline; }

/* ═══════════════════════════════════════════════════════════
   COMMENTS SECTION — אזור התגובות
   ═══════════════════════════════════════════════════════════ */
.comments-empty-related {
  color: var(--text-soft);
  padding: 10px;
  margin: 0;
}
.comments-wrap {
  padding: 20px;
}

/* הודעות הצלחה ושגיאה */
.comment-success-box {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #166534;
}
.comment-success-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.comment-success-text {
  font-size: 13px;
}
.comment-success-text a {
  color: #166534;
  font-weight: 700;
  text-decoration: underline;
}
.comment-error-box {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #991b1b;
  font-size: 14px;
}

/* טופס תגובה */
.comment-form-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 24px;
}
.comment-form-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.comment-form-avatar {
  flex-shrink: 0;
}
.comment-form-guest-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.comment-form {
  flex: 1;
  min-width: 0;
}
.comment-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.comment-input,
.comment-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-surface);
  box-sizing: border-box;
  margin-bottom: 8px;
}
.comment-textarea {
  resize: vertical;
  min-height: 80px;
}
.comment-reply-context {
  display: none;
  background: var(--bg-surface);
  border-right: 3px solid var(--brand-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.comment-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.comment-submit-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.comment-submit-btn:hover {
  background: var(--brand-primary-dark);
}
.comment-cancel-reply {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13px;
}
.comment-form-meta {
  font-size: 12px;
  color: var(--text-soft);
}
.comment-form-meta a {
  color: var(--brand-primary);
  font-weight: 600;
}
.comment-form-notice {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* רשימת תגובות */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.comment-item-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.comment-content {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment-author {
  font-size: 14px;
  color: var(--text-main);
}
.comment-guest-tag {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 400;
}
.comment-time {
  font-size: 12px;
  color: var(--text-soft);
}
.comment-body {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.comment-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.comment-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
  color: var(--text-soft);
}
.comment-action-btn.is-liked {
  color: var(--brand-primary);
}
.comment-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-soft);
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* תגובות-משנה */
.comment-replies {
  margin-right: 52px;
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 3px solid var(--brand-primary);
  padding: 8px 14px;
  background: var(--bg-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.comment-reply {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.comment-reply:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}
.comment-reply-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comment-reply-content {
  flex: 1;
  min-width: 0;
}
.comment-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-reply-author {
  font-size: 13px;
  color: var(--text-main);
}
.comment-reply-time {
  font-size: 12px;
  color: var(--text-soft);
}
.comment-reply-body {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.comment-reply-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-soft);
  padding: 0;
  font-family: inherit;
}
.comment-reply-action-btn.is-liked {
  color: var(--brand-primary);
}

/* מצב ריק */
.comments-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-soft);
}
.comments-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.comments-empty-text {
  margin: 0;
}

/* טקסט "אין נתונים" כללי */
.widget-empty-text {
  color: var(--text-soft);
  font-size: 13px;
  padding: 8px 0;
}

/* "צפיות" בwidget פופולרי - 13px במקום 11px (קריאות) */
.popular-views {
  font-size: 13px;
  color: var(--text-soft);
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   AUTO-LINKS — קישורים פנימיים אוטומטיים בגוף הכתבה
   ═══════════════════════════════════════════════════════════ */
.article-content .autolink {
  color: var(--brand-primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--brand-primary);
  font-weight: 500;
  transition: 0.15s ease;
}
.article-content .autolink:hover {
  background: var(--brand-primary-soft);
  border-bottom-style: solid;
}

/* ═══════════════════════════════════════════════════════════
   LEAD PARAGRAPH — פסקה פותחת מודגשת (כמו ynet)
   ═══════════════════════════════════════════════════════════ */
.article-content > p:first-of-type {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-main);
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE META ROW — סטיל ynet עם שעה ומפרידים
   ═══════════════════════════════════════════════════════════ */
.article-meta-row .meta-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}
.article-meta-row .meta-author a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}
.article-meta-row .meta-author a:hover {
  color: var(--brand-primary);
}
.article-meta-row .meta-category {
  display: inline-flex;
  align-items: center;
  background: var(--brand-primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: 0.15s ease;
}
.article-meta-row .meta-category:hover {
  background: var(--brand-primary-dark);
}
.article-meta-row .meta-sep {
  color: var(--text-soft);
  font-weight: 400;
  opacity: 0.5;
}
.article-meta-row .meta-time {
  color: var(--text-soft);
}
.article-meta-row .meta-time time {
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE TAGS TOP — תגיות משניות, קטנות וצנועות
   ═══════════════════════════════════════════════════════════ */
.article-tags-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0 22px;
}
.article-tag-mini {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: 0.15s ease;
}
.article-tag-mini:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

/* ═══════════════════════════════════════════════════════════
   SHARE BAR — שורת שיתוף מתחת לתמונה
   ═══════════════════════════════════════════════════════════ */
.article-share-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.article-share-bar::-webkit-scrollbar {
  display: none;
}
.article-share-label {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
  margin-left: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-soft);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: 0.15s ease;
  text-decoration: none;
  padding: 0;
  font-family: inherit;
}
.share-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}
.share-btn-fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn-wa:hover { background: #25d366; border-color: #25d366; }
.share-btn-tg:hover { background: #0088cc; border-color: #0088cc; }
.share-btn-x:hover { background: #000; border-color: #000; }
.share-btn-copy.copied {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* ═══════════════════════════════════════════════════════════
   הסתרת תגיות עליונות במובייל (יש בסוף הכתבה)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .article-tags-top {
    display: none;
  }
  .article-share-bar {
    gap: 6px;
    padding: 12px 14px;
  }
  .article-share-label {
    font-size: 12px;
  }
  .share-btn {
    width: 34px;
    height: 34px;
  }
}

/* ═══════════════════════════════════════════════════════════
   AD SLOT — מקום לפרסומת אחרי התגובות
   ═══════════════════════════════════════════════════════════ */
.article-ad-slot {
  margin-top: 16px;
}
.article-ad-slot:empty {
  display: none;
}
.article-ad-slot:not(:empty) {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  text-align: center;
  min-height: 100px;
}

/* ─── Inline reply container ─── */
.inline-reply-container {
  margin: 8px 0 8px 32px;
  border-right: 3px solid var(--brand-primary);
  padding-right: 12px;
}

.comment-reply-to {
  font-size: 11px;
  color: var(--brand-primary);
  font-weight: 600;
  background: var(--brand-primary-soft);
  padding: 1px 6px;
  border-radius: 10px;
}

.share-btn-saved {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.share-btn-saved:hover {
  background: var(--brand-primary-dark);
  color: #fff;
}

/* ─── Paywall ─── */
.paywall-gate {
  position: relative;
  margin-top: -80px;
}
.paywall-blur {
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-body, #fff) 85%);
  pointer-events: none;
}
.paywall-box {
  text-align: center;
  padding: 32px 28px 28px;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  max-width: 460px;
  margin: 0 auto 40px;
  box-shadow: 0 4px 24px rgba(196,18,18,0.10);
}
.paywall-icon { font-size: 44px; margin-bottom: 10px; line-height: 1; }
.paywall-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}
.paywall-desc {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}
.paywall-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--brand-primary);
  margin-bottom: 20px;
  line-height: 1;
}
.paywall-paypal { max-width: 340px; margin: 0 auto; }
.paywall-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}
.paywall-hint a { color: var(--brand-primary); }
