/* ═══ TruyenChill — CSS riêng cho menu Thể loại (pill + icon) & nút Đăng nhập/Đăng ký ═══
   File này tồn tại để việc giao CSS không phụ thuộc vào style.css:
   style.css được tải qua địa chỉ có mã phiên bản cũ (?v=20261113d) nên trình duyệt
   có thể giữ bản cache từ trước khi có rule pill. File này có địa chỉ hoàn toàn mới
   (category-menu.css?v=1) nên luôn được tải bản mới nhất ngay lần đầu.
   Bộ rule dưới đây là ĐẦY ĐỦ và tự chứa — không cần rule nào từ style.css. */

/* ── Khung pill trong dropdown Thể loại (desktop: nền sáng) ──
   Dropdown dùng multicol (column-count: 2): khung pill phải chiếm trọn bề ngang. */
.nv-cat-pills {
  column-span: all;
  break-inside: avoid;
  width: 100%;
  flex-basis: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(20,18,40,.10);
  border-radius: 12px;
  background: rgba(20,18,40,.03);
}
.nv-cat-pill {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 6px 13px;
  background: #fff;
  border: 1px solid rgba(20,18,40,.14);
  border-radius: 999px;
  color: var(--nv-text, #2a2440);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
}
/* Khiên specificity: thắng mọi rule link mặc định của dropdown, giữ chữ pill luôn tối */
.nv-cat-dropdown a.nv-cat-pill {
  color: var(--nv-text, #2a2440);
  text-decoration: none;
}
.nv-cat-pill:hover {
  background: #fff5f5;
  color: var(--nv-red, #c81e1e);
  text-decoration: none;
}
.nv-cat-pill .nv-cat-ic { margin-right: 6px; font-size: 15px; line-height: 1; }
.nv-cat-pill-all { font-weight: 700; }
.nv-cat-item .nv-cat-ic { margin-right: 5px; font-size: .95em; line-height: 1; }

/* ── Nút Đăng nhập / Đăng ký (khách) — theo demo: viền sáng / vàng đặc ── */
.nv-auth { display: flex; gap: 10px; align-items: center; }
.nv-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 6px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.nv-auth-login { border: 1.5px solid rgba(255,255,255,.8); color: #fff; background: transparent; }
.nv-auth-login:hover { background: rgba(255,255,255,.14); color: #fff; }
.nv-auth-reg { background: #ffc61a; border: 1.5px solid #ffc61a; color: #241300; font-weight: 800; }
.nv-auth-reg:hover { filter: brightness(1.07); color: #241300; }

@media (max-width: 991.98px) {
  /* Panel mobile tối: pill trong suốt nhẹ + viền sáng (đúng demo), 2 pill mỗi hàng */
  .nv-cat-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.12);
  }
  .nv-cat-pill { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #eceaf8; }
  .nv-cat-dropdown a.nv-cat-pill { color: #eceaf8; }
  .nv-cat-pill:hover { background: rgba(255,255,255,.14); color: #fff; }
  /* Danh sách đầy đủ ẩn trên mobile — truy cập qua pill "Tất cả thể loại" (/the-loai) */
  .nv-cat-dropdown .nv-cat-item { display: none; }
  /* Auth mobile: hai nút chia đều chiều ngang, cao 44px như demo */
  .nv-auth { width: 100%; margin-top: 10px; }
  .nv-auth-btn { flex: 1 1 0; min-height: 44px; }
}
