/* ===================================
   hivanthanh.com/review — shared CSS
   =================================== */
:root {
  --bg:       #f9f6f2;
  --white:    #ffffff;
  --border:   #e8e0d8;
  --text:     #1c1208;
  --text2:    #6b5c4e;
  --accent:   #c0392b;
  --accent2:  #e74c3c;
  --green:    #27ae60;
  --green-bg: #eafaf1;
  --gold:     #d4a017;
  --gold-bg:  #fefce8;
  --tag-bg:   #f0ece8;
  --r: 10px;
  --nav-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Be Vietnam Pro', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14.5px; line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── SITE HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 5%; gap: 2rem;
}
.logo {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.3px; white-space: nowrap;
  color: var(--text);
}
.logo span { color: var(--accent); }
.site-nav {
  display: flex; gap: 2px;
}
.site-nav a {
  padding: 6px 14px; border-radius: 6px;
  font-size: 13px; color: var(--text2);
  font-weight: 500; transition: all .15s;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--tag-bg); color: var(--text);
}
.trust-badge {
  margin-left: auto;
  font-size: 11px; color: var(--text2);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.trust-badge::before {
  content: '✓';
  background: var(--green); color: white;
  width: 16px; height: 16px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}

/* ── PAGE HEADER (per-section) ── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 5% 24px;
}
.page-header .breadcrumb {
  font-size: 12px; color: var(--text2); margin-bottom: 10px;
}
.page-header .breadcrumb a { color: var(--accent); }
.page-header h1 {
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: -.4px; line-height: 1.2;
  margin-bottom: 6px;
}
.page-header p {
  font-size: 13.5px; color: var(--text2); max-width: 600px;
}
.page-header .meta-row {
  display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.meta-chip {
  font-size: 11.5px; color: var(--text2);
  background: var(--tag-bg); padding: 4px 12px;
  border-radius: 20px; border: 1px solid var(--border);
}

/* ── DISCLOSURE BAR ── */
.disclosure {
  background: var(--gold-bg);
  border-bottom: 1px solid #f0d060;
  padding: 8px 5%;
  font-size: 11.5px; color: #7a6000;
  display: flex; align-items: center; gap: 6px;
}

/* ── MAIN WRAP ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 5%; }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── SECTION LABEL ── */
.sec-label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text2); margin-bottom: 6px;
}
.sec-title {
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: -.3px; margin-bottom: 4px;
}
.sec-sub {
  font-size: 12.5px; color: var(--text2); margin-bottom: 20px;
}

/* ── FILTER TABS ── */
.filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 6px 16px; border-radius: 20px;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white); color: var(--text2);
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.on { background: var(--accent); color: white; border-color: var(--accent); }

/* ── PRODUCT GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* card image area */
.card-thumb {
  width: 100%; height: 170px;
  background: var(--tag-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  position: relative; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* badges on image */
.badge {
  position: absolute; top: 10px;
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: .3px;
}
.badge-left  { left: 10px; }
.badge-right { right: 10px; }
.badge-pick  { background: var(--gold); color: white; }
.badge-new   { background: var(--accent); color: white; }
.badge-free  { background: var(--green); color: white; }
.badge-hh    { background: var(--text); color: white; }

/* card body */
.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-tag {
  font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text2);
}
.card-name {
  font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--text);
}
.card-desc { font-size: 12px; color: var(--text2); line-height: 1.5; flex: 1; }

/* commission row */
.card-info {
  display: flex; justify-content: space-between; align-items: center;
}
.comm {
  font-size: 11px; font-weight: 700;
  background: var(--green-bg); color: var(--green);
  padding: 3px 8px; border-radius: 4px;
}
.comm.none { background: var(--tag-bg); color: var(--text2); }
.stars { font-size: 12px; color: var(--gold); letter-spacing: 1px; }

/* CTA buttons */
.card-btns { display: flex; gap: 8px; }
.btn-r {
  flex: 1; text-align: center;
  padding: 9px 0; border-radius: 7px;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text2);
  transition: all .15s; cursor: pointer;
}
.btn-r:hover { border-color: var(--text); color: var(--text); }
.btn-b {
  flex: 1.3; text-align: center;
  padding: 9px 0; border-radius: 7px;
  font-size: 12px; font-weight: 700;
  background: var(--accent); color: white;
  transition: opacity .15s; cursor: pointer;
}
.btn-b:hover { opacity: .85; }
.btn-b.green { background: var(--green); }
.btn-b.disabled { background: var(--tag-bg); color: var(--text2); cursor: default; opacity: .6; }

/* ── COMPARE TABLE ── */
.table-wrap { overflow-x: auto; margin: 16px 0; }
.cmp {
  width: 100%; border-collapse: collapse;
  font-size: 13px; background: var(--white);
  border-radius: var(--r); overflow: hidden;
}
.cmp th {
  background: var(--text); color: #f9f6f2;
  padding: 11px 14px; text-align: left;
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  font-weight: 600;
}
.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.cmp tr:last-child td { border: none; }
.cmp tr.hl td { background: #fff8f0; }
.cmp tr.hl td:first-child { font-weight: 700; color: var(--accent); }
.cmp tr:nth-child(even):not(.hl) td { background: #faf8f6; }
.hi  { color: var(--green); font-weight: 600; }
.mid { color: var(--gold);  font-weight: 600; }
.lo  { color: var(--accent); font-weight: 600; }

/* ── NOTE BOXES ── */
.note {
  padding: 12px 16px; border-left: 3px solid;
  border-radius: 0 8px 8px 0; font-size: 13px;
  margin: 20px 0;
}
.note-info { border-color: #2980b9; background: #eaf4fc; }
.note-ok   { border-color: var(--green); background: var(--green-bg); }
.note-warn { border-color: var(--gold); background: var(--gold-bg); }
.note strong { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.note-info strong { color: #2980b9; }
.note-ok   strong { color: var(--green); }
.note-warn strong { color: var(--gold); }

/* ── PROS / CONS ── */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pros, .cons { padding: 14px 16px; border-radius: 8px; }
.pros { background: var(--green-bg); }
.cons { background: #fdf2f0; }
.pros h4 { color: var(--green); font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
.cons h4 { color: var(--accent); font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
.pros li, .cons li { list-style: none; padding: 3px 0; font-size: 12.5px; }
.pros li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.cons li::before { content: '✗ '; color: var(--accent); font-weight: 700; }

/* ── REVIEW BLOCK ── */
.review-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
}
.review-block h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.review-block p { font-size: 13px; color: var(--text2); line-height: 1.7; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.buy-btn {
  padding: 10px 22px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  background: var(--accent); color: white;
  transition: opacity .15s;
}
.buy-btn:hover { opacity: .85; }
.buy-btn.outline {
  background: none; color: var(--text);
  border: 1.5px solid var(--border);
}
.buy-btn.outline:hover { border-color: var(--text); }

/* ── ARTICLE PAGE ── */
.article-hero {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 32px 5%;
}
.article-hero .breadcrumb { font-size: 12px; color: var(--text2); margin-bottom: 14px; }
.article-hero .breadcrumb a { color: var(--accent); }
.article-hero .breadcrumb span { margin: 0 6px; color: var(--border); }
.article-meta { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.article-icon {
  width: 80px; height: 80px; border-radius: 16px;
  background: var(--tag-bg); display: flex; align-items: center;
  justify-content: center; font-size: 40px; flex-shrink: 0;
}
.article-info { flex: 1; min-width: 200px; }
.article-platform { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text2); margin-bottom: 6px; }
.article-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; margin-bottom: 8px; }
.article-subtitle { font-size: 13.5px; color: var(--text2); margin-bottom: 12px; line-height: 1.5; }
.article-rating { display: flex; align-items: center; gap: 10px; }
.rating-stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.rating-score { font-size: 22px; font-weight: 700; color: var(--text); }
.rating-label { font-size: 12px; color: var(--text2); }
.article-cta { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cta-buy {
  padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 700;
  background: var(--accent); color: white; transition: opacity .15s;
  white-space: nowrap;
}
.cta-buy:hover { opacity: .85; }
.cta-note { font-size: 11px; color: var(--text2); text-align: right; }

/* article body */
.article-body { max-width: 720px; }
.article-body h2 {
  font-size: 1.1rem; font-weight: 700; margin: 32px 0 10px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
  color: var(--text);
}
.article-body p { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.article-body ul { margin: 10px 0 14px 0; padding-left: 0; }
.article-body ul li { list-style: none; padding: 4px 0; font-size: 13.5px; color: var(--text); padding-left: 18px; position: relative; }
.article-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* verdict box */
.verdict {
  background: var(--text); color: rgba(249,246,242,.9);
  border-radius: var(--r); padding: 24px 28px; margin: 28px 0;
}
.verdict .v-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent2); margin-bottom: 8px; }
.verdict .v-text { font-size: 15px; line-height: 1.65; }
.verdict .v-score { font-size: 2.5rem; font-weight: 700; color: var(--gold); margin-top: 12px; }
.verdict .v-score span { font-size: 14px; color: rgba(249,246,242,.5); font-weight: 400; }

/* quick specs */
.specs {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; margin: 20px 0;
}
.specs-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.specs-row:last-child { border: none; }
.specs-row .sk { color: var(--text2); }
.specs-row .sv { font-weight: 600; color: var(--text); }

/* prev/next nav */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.nav-prev, .nav-next {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 20px;
  transition: box-shadow .15s, transform .15s;
  display: block;
}
.nav-prev:hover, .nav-next:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px);
}
.nav-next { text-align: right; }
.nav-dir { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text2); margin-bottom: 4px; }
.nav-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.nav-cat  { font-size: 11.5px; color: var(--text2); margin-top: 2px; }

@media (max-width: 640px) {
  .article-meta { flex-direction: column; }
  .article-cta { align-items: flex-start; }
  .article-nav { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .article-title { font-size: 1.35rem; }
}

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--text); color: rgba(249,246,242,.55);
  padding: 28px 5%; text-align: center;
  font-size: 12px; line-height: 1.9; margin-top: 60px;
}
.site-footer a { color: #e8806a; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .site-nav { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-thumb { height: 130px; font-size: 36px; }
  .pc { grid-template-columns: 1fr; }
  .wrap { padding: 0 4%; }
  .page-header { padding: 24px 4% 18px; }
}
@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr; }
}
