/* ══ WebEaze Blog Shared Styles ═══════════════════════════════════════════════ */

/* ── Post featured image (between hero and article body) ───────────────────── */
.post-featured-img {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}
.post-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
@media (max-width: 640px) {
  .post-featured-img img { height: 210px; border-radius: 10px; }
}

/* ── Blog index filter bar ─────────────────────────────────────────────────── */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 64px;
  z-index: 100;
  transition: top .28s ease;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.filter-cats {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  border-radius: 100px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1;
}
.filter-btn:hover { border-color: #7851a9; color: #7851a9; }
.filter-btn.active { background: #7851a9; border-color: #7851a9; color: #fff; }
.sort-select {
  padding: .35rem 2rem .35rem .7rem;
  font-size: .8rem;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right .65rem center;
  color: #6b7280;
  cursor: pointer;
  font-family: "Poppins", system-ui, sans-serif;
  appearance: none;
  -webkit-appearance: none;
}
.sort-select:focus { outline: 2px solid #7851a9; outline-offset: 2px; }
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  display: none;
  grid-column: 1 / -1;
}
.no-results p { font-size: .95rem; color: #6b7280; }

/* ── Post byline ───────────────────────────────────────────────────────────── */
.post-byline {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.25rem;
}
.byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7851a9, #9b6fd4);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.byline-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.byline-name {
  font-size: .88rem;
  font-weight: 700;
  color: #0f1228;
}
.byline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  font-size: .78rem;
  color: #4b5563;
}
.byline-meta i { font-size: .72rem; margin-right: .2rem; }

/* ── Share bar ─────────────────────────────────────────────────────────────── */
.share-section {
  padding: 1.5rem 0 2.5rem;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: #f8f9fc;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
}
.share-label {
  font-size: .82rem;
  font-weight: 700;
  color: #4b5563;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.share-label i { color: #7851a9; }
.share-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.share-btn span { font-size: .8rem; }
.share-x { background: #000; color: #fff; border-color: #000; }
.share-x:hover { background: #1a1a1a; color: #fff; text-decoration: none; }
.share-fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-fb:hover { background: #1463cc; color: #fff; text-decoration: none; }
.share-li { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-li:hover { background: #0958a8; color: #fff; text-decoration: none; }
.share-copy { background: #fff; color: #374151; border-color: #e5e7eb; }
.share-copy:hover { border-color: #7851a9; color: #7851a9; text-decoration: none; }
.share-btn { text-decoration: none; }
@media (max-width: 540px) {
  .share-btns { margin-left: 0; }
  .share-btn span { display: none; }
  .share-btn { padding: .45rem .7rem; }
}

/* ── RSS subscribe pill (blog index) ──────────────────────────────────────── */
.rss-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #c2410c;
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.rss-pill:hover { background: #ffedd5; color: #c2410c; }
.rss-pill i { font-size: .75rem; }

/* ── Button / link underline overrides ──────────────────────────────────────── */
.article-body .inline-cta a { text-decoration: none; }
.btn-white, .btn-white:hover,
.read-link, .read-link:hover { text-decoration: none; }

/* ── CTA card inner container ────────────────────────────────────────────────── */
.bottom-cta .container-page,
.blog-cta .container-page {
  /* Layered: soft top-left highlight + deep bottom-right tint over a diagonal brand gradient,
     for depth instead of a flat block. All CSS, no images. */
  background:
    radial-gradient(55% 85% at 12% 0%, rgba(255,255,255,.20), rgba(255,255,255,0) 60%),
    radial-gradient(50% 80% at 100% 100%, rgba(40,24,70,.55), rgba(40,24,70,0) 62%),
    linear-gradient(135deg, #8a5fc0 0%, #7851a9 48%, #5c3f88 100%);
  border-radius: 24px;
  padding: 3.75rem 2rem;
  max-width: 860px;
  box-shadow: 0 24px 60px -24px rgba(120,81,169,.6);
}
@media (max-width: 640px) {
  .bottom-cta .container-page,
  .blog-cta .container-page { padding: 2.5rem 1.35rem; border-radius: 18px; }
}

/* Related posts ("Keep reading") strip on blog posts */
.related-posts { padding: 1rem 0 2.5rem; border-top: 1px solid var(--line); background: var(--surface); }
.related-posts-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; color: #0a0a0a; margin: 2rem 0 1.25rem; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .related-posts-grid { grid-template-columns: 1fr; } }
.related-post-card { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; transition: border-color .2s, box-shadow .2s, transform .2s; }
.related-post-card:hover { border-color: var(--brand-border); box-shadow: 0 8px 28px rgba(120,81,169,.1); transform: translateY(-2px); }
.related-post-cat { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.related-post-title { font-size: .98rem; font-weight: 700; color: #0a0a0a; line-height: 1.35; flex: 1; }
.related-post-more { font-size: .82rem; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
