/*
 * tv-easyblog.css — Technovelo styling for the EasyBlog front end (/blog).
 * Light theme, Poppins (headings) / Inter (body), violet #5b2cf2 accents, rounded cards.
 * Everything is scoped to EasyBlog's root element (#eb.eb-component) so nothing else on the site is affected.
 * Load site-wide after tv2.css / technovante.css.
 */
#eb.eb-component {
  --eb-violet: #5b2cf2;
  --eb-violet-2: #7c3aed;
  --eb-cyan: #06b6d4;
  --eb-ink: #1a1346;
  --eb-text: #2a2545;
  --eb-muted: #534d73;
  --eb-line: #e7e3f5;
  --eb-soft: #f7f5fe;
  --eb-tint: #eeebff;
  --eb-radius: 18px;
  --eb-shadow: 0 2px 10px rgba(26, 19, 70, .07);
  --eb-shadow-hover: 0 18px 44px rgba(26, 19, 70, .14);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--eb-text);
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0 48px;
  line-height: 1.7;
}
#eb.eb-component a { color: var(--eb-violet); text-decoration: none; }
#eb.eb-component a:hover { color: var(--eb-violet-2); text-decoration: underline; }
#eb.eb-component h1, #eb.eb-component h2, #eb.eb-component h3, #eb.eb-component h4,
#eb .eb-post-title, #eb .eb-entry-title {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--eb-ink);
  letter-spacing: -.01em;
}
#eb .eb-headers { display: none; } /* EasyBlog's own blog header; the page already has a hero/heading */

/* ---------- Listing: cards ---------- */
#eb .eb-post-listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  border: 0 !important;
}
#eb .eb-post-listing.has-divider > .eb-post-listing__item { border: 0 !important; padding: 0 !important; margin: 0 !important; }
#eb .eb-post-listing__item { display: flex; }
#eb .eb-post-listing__item > .eb-post {
  display: flex; flex-direction: column; width: 100%;
  background: #fff;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#eb .eb-post-listing__item > .eb-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--eb-shadow-hover);
  border-color: #d9d1fb;
}
#eb .eb-post-content { display: flex; flex-direction: column; height: 100%; padding: 0; }
/* card order: image, title + meta, intro, read more, shares (the image sits inside .eb-post-body) */
#eb .eb-post-listing .eb-post-body { display: contents; }
#eb .eb-post-listing .eb-post-thumb { order: -1; margin: 0 !important; }
#eb .eb-post-listing .eb-post-head { order: 0; padding: 20px 24px 4px; }
#eb .eb-post-listing .eb-post-body > :not(.eb-post-thumb) { order: 1; padding: 0 24px; margin: 6px 0 0; color: var(--eb-muted); font-size: 15px; }
#eb .eb-post-listing .eb-post-more { order: 2; margin-top: auto !important; padding-top: 14px !important; }
#eb .eb-post-listing .eb-post-actions { order: 3; }
#eb .eb-post-listing .eb-shares { order: 4; }
#eb .eb-post-thumb { margin: 0 0 4px !important; }
#eb .eb-post-more .btn {
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px; color: var(--eb-violet) !important;
}
#eb .eb-post-more .btn::after { content: " \2192"; }
#eb .eb-post-thumb .eb-post-image, #eb .eb-post-thumb img {
  display: block; width: 100% !important; border-radius: 0;
}
#eb .eb-post-listing .eb-post-thumb img { aspect-ratio: 16 / 9; object-fit: cover; }
#eb .eb-post-title { font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 10px; }
#eb .eb-post-title a { color: var(--eb-ink); }
#eb .eb-post-title a:hover { color: var(--eb-violet); text-decoration: none; }

/* meta line: date · author · category chip */
#eb .eb-post-meta, #eb .eb-entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 13px; color: var(--eb-muted) !important;
}
#eb .eb-post-meta > div, #eb .eb-entry-meta > div { margin: 0 !important; }
#eb .eb-post-meta a, #eb .eb-entry-meta a { color: var(--eb-muted); }
#eb .eb-post-category a, #eb .eb-entry-meta .eb-post-category a {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--eb-tint); color: var(--eb-violet) !important; font-weight: 600; font-size: 12px;
}
#eb .eb-post-category a:hover { background: var(--eb-violet); color: #fff !important; text-decoration: none; }
#eb .eb-post-meta [class*="fa-"], #eb .eb-entry-meta [class*="fa-"] { color: #9b91d4; }

/* read more + shares at the bottom of the card */
#eb .eb-post-listing .eb-post-more, #eb .eb-post-listing .eb-post-actions,
#eb .eb-post-listing .eb-shares { padding: 0 24px; }
#eb .eb-post-listing .eb-shares { margin: 14px 0 22px !important; }

/* ---------- Share buttons (all views) ---------- */
#eb .eb-shares { display: flex; gap: 8px; flex-wrap: wrap; }
#eb .eb-shares .btn {
  width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50% !important; border: 1px solid var(--eb-line) !important;
  background: #fff !important; color: var(--eb-violet) !important; box-shadow: none !important;
}
#eb .eb-shares .btn:hover { background: var(--eb-violet) !important; color: #fff !important; border-color: var(--eb-violet) !important; }
#eb .eb-shares .btn i { color: inherit !important; }

/* ---------- Single post ---------- */
#eb.eb-view-entry { max-width: 860px; }
#eb .eb-entry {
  background: #fff; border: 1px solid var(--eb-line); border-radius: 22px;
  box-shadow: var(--eb-shadow); overflow: hidden; padding: 0 0 8px;
}
#eb .eb-entry-head { padding: 34px 40px 10px; }
#eb .eb-entry-title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
#eb .eb-entry .eb-post-thumb, #eb .eb-entry .eb-image { margin: 10px 0 24px !important; }
#eb .eb-entry .eb-post-thumb img { border-radius: 0; max-height: 460px; object-fit: cover; }
#eb .eb-entry-body, #eb .eb-entry-article { padding: 0 40px; font-size: 17px; color: var(--eb-text); }
#eb .eb-entry-article h2 { font-size: 24px; margin: 34px 0 12px; }
#eb .eb-entry-article h3 { font-size: 20px; margin: 26px 0 10px; }
#eb .eb-entry-article p { margin: 0 0 16px; }
#eb .eb-entry-article ul, #eb .eb-entry-article ol { padding-left: 1.3em; margin: 0 0 18px; }
#eb .eb-entry-article li { margin: 6px 0; }
#eb .eb-entry-article li::marker { color: var(--eb-violet); }
#eb .eb-entry-article blockquote {
  margin: 22px 0; padding: 16px 22px; border-left: 4px solid var(--eb-violet);
  background: var(--eb-soft); border-radius: 0 14px 14px 0; color: var(--eb-ink);
}
#eb .eb-entry-article img { max-width: 100%; height: auto; border-radius: 14px; }
#eb .eb-entry-tools, #eb .eb-entry-tags, #eb .eb-entry-helper, #eb .eb-entry .eb-shares { padding: 0 40px; }
#eb .eb-entry-tags a {
  display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--eb-line); color: var(--eb-muted); font-size: 13px;
}
#eb .eb-entry-tags a:hover { border-color: var(--eb-violet); color: var(--eb-violet); text-decoration: none; }
#eb .eb-entry .eb-shares { margin: 18px 0 24px !important; }

/* reading time + progress bar */
#eb .eb-reading-indicator { color: var(--eb-muted); font-size: 13px; }
#eb .eb-reading-indicator__icon { color: var(--eb-violet); }
.eb-reading-progress__bar { background: linear-gradient(90deg, #7c3aed, #5b2cf2, #06b6d4) !important; }

/* previous / next navigation */
#eb .eb-entry-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; padding: 0; border: 0;
}
#eb .eb-entry-nav > div, #eb .eb-entry-nav a {
  display: block; background: #fff; border: 1px solid var(--eb-line); border-radius: 16px; padding: 16px 20px;
  font-family: "Poppins", sans-serif; font-weight: 600; color: var(--eb-ink);
}
#eb .eb-entry-nav a:hover { border-color: var(--eb-violet); color: var(--eb-violet); text-decoration: none; }
#eb .eb-entry-nav-next { text-align: right; }

/* related posts / subscribe box */
#eb .eb-entry-related, #eb .eb-subscribe-form {
  margin-top: 28px; background: var(--eb-soft); border: 1px solid var(--eb-line); border-radius: 18px; padding: 22px 24px;
}
#eb .eb-subscribe-form__title { font-family: "Poppins", sans-serif; color: var(--eb-ink); font-weight: 600; }
#eb .btn-primary, #eb .eb-subscribe-form .btn {
  background: linear-gradient(120deg, #7c3aed 0%, #5b2cf2 55%, #06b6d4 120%) !important;
  border: 0 !important; color: #fff !important; border-radius: 999px !important; padding: 10px 22px; font-weight: 600;
}
#eb .form-control { border-radius: 12px; border-color: var(--eb-line); }
#eb .form-control:focus { border-color: var(--eb-violet); box-shadow: 0 0 0 3px rgba(91, 44, 242, .15); }

/* ---------- Categories / tags / archive / author pages ---------- */
#eb .eb-categories .eb-category, #eb .eb-authors-item, #eb .eb-archives, #eb .eb-calendar, #eb .eb-tags {
  background: #fff; border: 1px solid var(--eb-line); border-radius: 18px; box-shadow: var(--eb-shadow);
  padding: 20px 24px; margin-bottom: 20px;
}
#eb .eb-tags a, #eb .eb-tag-item a { border-radius: 999px; }
#eb .eb-category-head h2 a, #eb .eb-authors-head a { color: var(--eb-ink); }

/* pagination */
#eb .eb-pagination, #eb .pagination { justify-content: center; margin-top: 34px; }
#eb .pagination a, #eb .pagination span, #eb .eb-pagination a {
  border-radius: 10px !important; border-color: var(--eb-line) !important; color: var(--eb-violet);
}
#eb .pagination .active > *, #eb .eb-pagination .active a { background: var(--eb-violet) !important; color: #fff !important; border-color: var(--eb-violet) !important; }

/* hide features this blog doesn't use (also switched off in EasyBlog settings) */
#eb .eb-post-hits, #eb .eb-ratings, #eb .eb-post-rating, #eb .eb-entry-author, #eb .eb-entry-author-recents,
#eb .eb-reactions, #eb .eb-post-state:empty { display: none !important; }

@media (max-width: 767px) {
  #eb.eb-component { padding: 0 0 32px; }
  #eb .eb-post-listing { grid-template-columns: 1fr; gap: 20px; }
  #eb .eb-entry-head, #eb .eb-entry-body, #eb .eb-entry-article,
  #eb .eb-entry-tools, #eb .eb-entry-tags, #eb .eb-entry-helper, #eb .eb-entry .eb-shares { padding-left: 20px; padding-right: 20px; }
  #eb .eb-entry-article { font-size: 16px; }
  #eb .eb-entry-nav { grid-template-columns: 1fr; }
}
