/*
Theme Name: VLB Satellite
Theme URI: https://vulambach.local
Description: Theme satellite nhẹ cho mạng WPMU streaming — header/footer/hero branded động theo domain, tối ưu SEO + PageSpeed.
Author: VuLamBach
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vlb-satellite
*/

:root { --brand: #e11d48; --brand-dark: #9f1239; --bg: #f6f7f9; --card: #ffffff; --ink: #1a1d24; --muted: #6b7280; --line: #e5e7eb; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(100deg, var(--brand), var(--brand-dark)); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .3px; }
.brand:hover { text-decoration: none; opacity: .95; }
.brand .logo-badge { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu li a { color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.nav-menu li a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.nav-menu .nav-cta a { background: #fff; color: var(--brand-dark); font-weight: 800; }
.nav-menu .nav-cta a:hover { background: #ffe; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 46px 0 40px; text-align: center; }
.hero h1 { font-size: 34px; margin: 0 0 12px; font-weight: 900; line-height: 1.25; }
.hero p { font-size: 17px; max-width: 720px; margin: 0 auto 22px; opacity: .95; }
.hero .btn { display: inline-block; background: #fff; color: var(--brand-dark); padding: 13px 30px; border-radius: 999px; font-weight: 800; font-size: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.hero .btn:hover { transform: translateY(-1px); text-decoration: none; }

/* ===== Layout ===== */
.main { padding: 28px 0 40px; }
.section-title { font-size: 22px; font-weight: 800; margin: 8px 0 16px; padding-left: 12px; border-left: 5px solid var(--brand); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; margin-bottom: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* ===== Prose (bài trang chủ / bài viết) ===== */
.prose { color: var(--ink); }
.prose h2 { font-size: 24px; font-weight: 800; margin: 30px 0 12px; color: var(--brand-dark); border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; overflow-x: auto; display: block; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--brand); color: #fff; font-weight: 700; }
.prose tr:nth-child(even) td { background: #fafafa; }
.prose img { border-radius: 10px; margin: 12px 0; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 16px 0; padding: 6px 16px; background: #fafafa; color: var(--muted); }

/* ===== Post grid (bài liên quan) ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; }
.post-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.post-item:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.post-item .thumb { display: block; aspect-ratio: 16/9; background: #eee center/cover; }
.post-item .pi-body { padding: 12px 14px; }
.post-item h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.4; }
.post-item h3 a { color: var(--ink); }
.post-item .meta { font-size: 13px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: #14161b; color: #cbd0d8; padding: 36px 0 20px; margin-top: 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer-brand .fb-name { font-size: 20px; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #cbd0d8; }
.footer-grid a:hover { color: #fff; }
.badge-18 { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; border-radius: 6px; padding: 2px 8px; margin-right: 6px; }
.footer-bottom { border-top: 1px solid #2a2e37; padding-top: 16px; text-align: center; color: #8b93a1; font-size: 13px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero h1 { font-size: 26px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--brand-dark); padding: 8px 16px 16px; gap: 2px; }
  .nav-menu.open { display: flex; }
  .nav-menu li a { display: block; }
}
