/* ===========================================================
   NHẬT KÝ GIAO DỊCH — style riêng cho nhat-ky.html & phan-tich.html
   Kế thừa biến/màu/font gốc từ style.css (--black, --border, --muted,
   --font-display, --font-body...). Không sửa gì trong style.css,
   chỉ thêm phần riêng cho 2 trang này.
   =========================================================== */

/* Mở rộng khung nội dung — giống hệt override trong bai-viet.html */
.container {
  max-width: 1320px !important;
  width: 95%;
  margin: 0 auto;
}

@media (min-width: 901px) {
  .content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    margin-top: 10px;
  }
  #journal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

.page-header { padding: 110px 0 65px 0 !important; text-align: center; }
.page-header p {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  line-height: 1.5;
  max-width: 950px;
  margin: 0 auto;
}

/* ===== Box bài viết (journal-card) — bản sao .blog-card của trang Bài Viết ===== */
.journal-card {
  padding: 0 0 24px 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}
.journal-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f5f5f5;
}
.journal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.journal-card:hover .journal-thumb img { transform: scale(1.05); }
.journal-card .meta, .journal-card h2, .journal-card p, .journal-card .read-more {
  padding-left: 24px;
  padding-right: 24px;
}
.journal-card .meta {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.journal-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 0 0 12px 0;
  line-height: 1.4;
}
.journal-card h2 a { color: #111; text-decoration: none; }
.journal-card p {
  color: #555;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.journal-card .read-more {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
}
.journal-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 40px 0;
}

/* ===== Phân trang — bản sao style trang Bài Viết ===== */
.pagination button {
  padding: 8px 16px;
  border: 1px solid #eee;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
}
.pagination button:hover:not(:disabled) { background: #f5f5f5; border-color: #111; }
.pagination button:disabled { color: #ccc; cursor: not-allowed; border-color: #eee; }
.pagination button.active { border-color: #111; background: #111; color: #fff; font-weight: 700; }

/* ===== Danh sách CHỦ ĐỀ (lọc theo Bitcoin/Vàng) — bản sao .category-list ===== */
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 4px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: none;
  color: #444;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  text-align: left;
  transition: all 0.2s ease;
}
.category-list button:last-child { border-bottom: none; }
.category-list button:hover { color: #111; padding-left: 8px; }
.category-list button.active { color: #111; font-weight: 700; }
.category-list .count { font-size: 11px; color: #aaa; font-weight: 400; }
.category-list button.active .count { color: #111; }

/* ===========================================================
   Trang chi tiết — phan-tich.html
   =========================================================== */
.pt-header-section {
  padding: 140px 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.pt-back {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 20px;
}
.pt-back:hover { color: var(--text); }
.pt-meta {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.pt-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  color: var(--text);
  max-width: 820px;
}

.pt-hero-image {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0 auto 40px;
  background: #f2f2f2;
  border: 1px solid var(--border);
}
.pt-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pt-body {
  max-width: 780px;
  margin: 0 auto 10px;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: #222;
}
.pt-body p { margin-bottom: 18px; }
.pt-body ul { margin: 0 0 18px 22px; }
.pt-body li { margin-bottom: 8px; }
.pt-body strong { color: var(--text); }
.pt-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px auto 26px;
  border: 1px solid var(--border);
}

.pt-source-link {
  max-width: 780px;
  margin: 0 auto 30px;
  padding: 0 24px;
  font-size: 13px;
}
.pt-source-link a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pt-source-link a:hover { color: var(--text); }

@media (max-width: 640px) {
  .pt-header-section { padding: 100px 0 24px; }
}
