/* ============================================
   MULTI-SITE OVERRIDES v2 — fix6
   ============================================
   File load SAU app.css + SAU <style id="site-vars">.
   KHÔNG define :root để không đè dynamic vars.

   Fallback nằm ở app.css :root đầu file (HanhPhap navy/gold).
   Site khác inject --brand qua <style id="site-vars"> trong head.
   ============================================ */

/* ─────────────────────────────────────────────
   Theme variants — chỉ override visual hooks,
   không touch :root
   ───────────────────────────────────────────── */

/* HUB (phaply.org) — gradient brand + accent ở hero */
body.theme-hub .hero,
body.theme-hub .page-header {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}
body.theme-hub .hero a,
body.theme-hub .hero h1,
body.theme-hub .page-header h1,
body.theme-hub .hero-title,
body.theme-hub .hero-slogan {
  color: #fff !important;
}

/* NEWS (tintucluat.com) — grid 3 cột bài viết desktop */
@media (min-width: 768px) {
  body.theme-news .post-list,
  body.theme-news .category-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
body.theme-news .post-card {
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}
body.theme-news .post-meta time {
  color: var(--brand);
  font-weight: 600;
}

/* MAGAZINE (tapchiluat.com) — serif heading + drop cap */
body.theme-magazine h1,
body.theme-magazine h2,
body.theme-magazine .post-title,
body.theme-magazine .article-title,
body.theme-magazine .hero-title {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
body.theme-magazine .article-body p {
  font-size: 17px;
  line-height: 1.75;
}
body.theme-magazine .article-body p:first-of-type::first-letter {
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 8px;
  color: var(--brand);
  font-family: 'Fraunces', serif;
}

/* WIKI (camnangluat.com) — encyclopedia feel */
body.theme-wiki .article-body h2 {
  border-bottom: 2px solid var(--brand-soft);
  padding-bottom: 6px;
  margin-top: 28px;
}
body.theme-wiki .article-body h3 {
  color: var(--brand);
}
body.theme-wiki .post-toc {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 16px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
}

/* REVIEW (hangluatviet.com) — card style hover */
body.theme-review .post-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
body.theme-review .post-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
body.theme-review .post-card .post-title {
  color: var(--brand);
}

/* ─────────────────────────────────────────────
   Bottom-nav baseline
   ───────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 90;
  padding: 6px 4px env(safe-area-inset-bottom, 6px) 4px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}
@media (max-width: 767px) {
  .bottom-nav { display: flex; justify-content: space-around; }
  body { padding-bottom: 64px; }
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  text-decoration: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  gap: 2px;
  transition: color .15s;
}
.bottom-nav-item:hover,
.bottom-nav-item.is-active {
  color: var(--brand);
}
.bottom-nav-item.is-active .bottom-nav-icon {
  color: var(--brand);
}
.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav-label {
  font-size: 10.5px;
  letter-spacing: -0.01em;
  line-height: 1;
}
