/* ============================================================
   LVK Books — Article (single post) template
   Dựng từ thiết kế Claude Design: Article.dc.html
   ============================================================ */

.lvk-article-page * { box-sizing: border-box; }
.lvk-article-page {
  margin: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}
.lvk-article-page a { text-decoration: none; color: inherit; }
.lvk-article-page img { max-width: 100%; display: block; }

/* Inner width helpers ------------------------------------------------ */
.lvk-wide  { width: 1176px; max-width: calc(100% - 40px); margin: 0 auto; }
.lvk-narrow{ width: 760px;  max-width: calc(100% - 40px); margin: 0 auto; }

/* TOPBAR ------------------------------------------------------------- */
.lvk-topbar {
  background: #000; color: #bdbdbd; font-size: 12.5px;
  min-height: 38px; display: flex; align-items: center; justify-content: center;
}
.lvk-topbar .lvk-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lvk-topbar b { color: #fff; }
.lvk-topbar-links { display: flex; gap: 22px; align-items: center; }
.lvk-topbar-links a:first-child { color: #fff; }

/* HEADER ------------------------------------------------------------- */
.lvk-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #ececec;
}
.lvk-header .lvk-wide { display: flex; align-items: center; gap: 30px; padding: 16px 0; }
.lvk-logo { display: flex; align-items: center; gap: 11px; flex: none; }
.lvk-logo-badge {
  width: 44px; height: 44px; background: #bf0000; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 18px;
}
.lvk-logo-text { font-weight: 700; font-size: 22px; color: #111; }
.lvk-search {
  flex: 1; display: flex; align-items: center; background: #fff;
  border: 1.5px solid rgba(0,0,0,.15); border-radius: 8px; height: 46px; padding: 0 16px;
}
.lvk-search input {
  border: none; background: transparent; outline: none; flex: 1;
  font-size: 14px; color: #333; font-family: inherit;
}
.lvk-search button { border: none; background: transparent; cursor: pointer; display: flex; padding: 0; }
.lvk-allposts { font-size: 14px; color: #666; display: flex; align-items: center; gap: 8px; flex: none; }

/* ARTICLE HEAD ------------------------------------------------------- */
.lvk-article-head { padding: 36px 0 20px; }
.lvk-breadcrumb { font-size: 13px; color: #999; display: flex; gap: 8px; flex-wrap: wrap; }
.lvk-breadcrumb a { color: #999; }
.lvk-breadcrumb .sep { color: #ccc; }
.lvk-breadcrumb .cur { color: #555; }
.lvk-eyebrow {
  font-size: 12px; letter-spacing: .14em; color: #bf0000; font-weight: 600;
  text-transform: uppercase; margin-top: 18px;
}
.lvk-title { font-size: 40px; font-weight: 800; color: #111; line-height: 1.18; margin: 12px 0 0; }
.lvk-lead { font-size: 17px; color: #666; line-height: 1.6; margin-top: 16px; }

.lvk-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px; padding: 18px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.lvk-author { display: flex; align-items: center; gap: 12px; }
.lvk-author-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: #bf0000; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
  overflow: hidden;
}
.lvk-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lvk-author-name { font-size: 14px; font-weight: 600; color: #222; }
.lvk-author-sub { font-size: 12.5px; color: #999; }
.lvk-share { display: flex; gap: 10px; }
.lvk-share a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ARTICLE BODY ------------------------------------------------------- */
.lvk-article-body { padding: 24px 0 10px; }
.lvk-content { font-size: 17px; line-height: 1.85; color: #333; }
.lvk-content p { margin: 18px 0; }
.lvk-content h2 { font-size: 24px; font-weight: 700; color: #111; margin: 32px 0 4px; line-height: 1.3; }
.lvk-content h3 { font-size: 20px; font-weight: 700; color: #111; margin: 28px 0 4px; line-height: 1.3; }
.lvk-content a { color: #bf0000; text-decoration: underline; }
.lvk-content ul, .lvk-content ol { margin: 18px 0; padding-left: 22px; }
.lvk-content li { margin: 8px 0; }
.lvk-content img { border-radius: 10px; margin: 22px 0; }
.lvk-content blockquote {
  border-left: 4px solid #bf0000; background: #fbeeec; padding: 18px 24px;
  border-radius: 0 10px 10px 0; font-size: 18px; font-style: italic; color: #7a0000;
  margin: 26px 0; line-height: 1.6;
}
.lvk-content blockquote p { margin: 0; }

/* TAGS --------------------------------------------------------------- */
.lvk-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 0; padding-top: 24px; border-top: 1px solid #eee; }
.lvk-tags a { background: #f2f2f2; border-radius: 20px; padding: 7px 15px; font-size: 12.5px; color: #555; }
.lvk-tags a:hover { background: #ececec; }

/* AUTHOR CARD -------------------------------------------------------- */
.lvk-authorcard {
  display: flex; gap: 16px; align-items: center; background: #f2f2f2;
  border-radius: 16px; padding: 24px; margin-top: 30px;
}
.lvk-authorcard-avatar {
  width: 58px; height: 58px; border-radius: 50%; background: #bf0000; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; flex: none;
  overflow: hidden;
}
.lvk-authorcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lvk-authorcard-name { font-size: 16px; font-weight: 700; color: #111; }
.lvk-authorcard-bio { font-size: 13.5px; color: #666; line-height: 1.6; margin-top: 4px; }

/* RELATED ------------------------------------------------------------ */
.lvk-related { padding: 30px 0 20px; }
.lvk-related-title { font-size: 24px; font-weight: 700; color: #111; margin-bottom: 20px; }
.lvk-related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.lvk-card { display: flex; flex-direction: column; border: 1px solid #ececec; border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.lvk-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.lvk-card-thumb { height: 170px; position: relative; background-size: cover; background-position: center; }
.lvk-card-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: #bf0000;
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 6px;
}
.lvk-card-body { padding: 18px 20px 22px; }
.lvk-card-date { font-size: 11.5px; color: #999; }
.lvk-card-title { font-size: 16px; font-weight: 700; color: #111; line-height: 1.32; margin-top: 8px; }

/* FOOTER — dùng chung từ lvk-store.css. KHÔNG style footer ở đây để tránh
   đè/vỡ layout footer trên trang bài viết (footer.php dùng cấu trúc
   lvk-footer-top/brandcol/col/app/bottom đã được lvk-store.css lo trọn). */

/* RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1024px) {
  .lvk-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .lvk-topbar { font-size: 11px; }
  .lvk-topbar-links { gap: 12px; }
  .lvk-header .lvk-wide { flex-wrap: wrap; gap: 14px; }
  .lvk-search { order: 3; flex-basis: 100%; }
  .lvk-title { font-size: 28px; }
  .lvk-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lvk-topbar-links span:last-child { display: none; }
  .lvk-related-grid { grid-template-columns: 1fr; }
}
