/* =====================================================================
   RAPIDNEWSHUB — styles for markup the original template never had.

   assets/css/style.css is left byte-identical. Everything here is
   additive: tag pills, the author box, the source credit line, article
   body typography and empty-state helpers. All of it reuses the
   template's own custom properties so nothing drifts from the design.
   ================================================================== */

/* ---------- Article body ----------
   AI-written bodies arrive as <p>, <h2>, <ul>, <blockquote>. These rules
   match what the hand-built article page already looked like. */
.article-body p{
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.article-body h2{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.article-body h3{
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: .6rem;
}
.article-body ul,
.article-body ol{
  color: var(--muted);
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.article-body li{
  line-height: 1.75;
  margin-bottom: .35rem;
}
.article-body a{
  color: var(--brand);
  font-weight: 600;
}
.article-body a:hover{ text-decoration: underline; }
.article-body blockquote{
  border-left: 4px solid var(--brand);
  padding: .5rem 0 .5rem 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: var(--soft);
  border-radius: .5rem;
}
.article-body blockquote p{ margin-bottom: 0; }
.article-body img{
  max-width: 100%;
  height: auto;
  border-radius: .75rem;
  margin: 1rem 0;
}
.article-body table{
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}
.article-body th,
.article-body td{
  border: 1px solid var(--border);
  padding: .5rem .75rem;
  font-size: .92rem;
}

/* ---------- Tag pills ---------- */
.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tag-pill{
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
}
.tag-pill:hover{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Source credit ----------
   We never republish a publisher's own words or photograph, so each
   imported story carries an honest outward link instead. */
.source-credit{
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1rem;
}
.source-credit a{
  color: var(--brand);
  font-weight: 600;
}
.source-credit a:hover{ text-decoration: underline; }

/* ---------- Author box ---------- */
.author-box{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: 2rem;
}
.author-box-avatar{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.author-box-avatar img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.author-box h2,
.author-box h3{
  font-size: 1rem;
  margin-bottom: .25rem;
}
.author-box p{
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---------- Card image placeholder ----------
   Used when a story has no image yet, so a card keeps its proportions
   instead of collapsing. */
.img-placeholder{
  background: linear-gradient(135deg, var(--soft) 0%, #eceefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.75rem;
}

/* ---------- Search ---------- */
.search-empty{
  color: var(--muted);
  padding: 2rem 0;
}
mark.search-hit{
  background: #FEF3C7;
  padding: 0 .15rem;
  border-radius: .2rem;
}

/* ---------- Pagination accent ----------
   Bootstrap ships .pagination; only the active colour is brought in line
   with the template's brand. */
.pagination .page-item.active .page-link{
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pagination .page-link{ color: var(--brand); }
.pagination .page-link:hover{ background-color: var(--soft); }

/* ---------- Meta row on listings ---------- */
.post-meta{
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ---------- Category description block ---------- */
.archive-empty{
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
