/* ============================================================================
   BẾP CHAY HUYỀN QUANG — kiểu trình bày MỘT NGUỒN cho mục Nấu Ăn Chay
   (thêm 10/9/2026). Dùng chung cho: nauanchay/index.html (trang mục),
   nauanchay/*.html (bài công thức), nauanchay/xem.php (bài Phật tử gửi),
   nauanchay/gui-bai.php (biểu mẫu gửi bài).

   Đi cặp với css/hq-baiviet.css (bố cục hai cột + thanh bên) — KHÔNG đè
   header .hqh / footer .hqf. Bảng màu riêng của mục: đất nung · lá chuối ·
   giấy dó, cộng vàng #C9963B của trang nhà.
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bc-dat:   #7a3b1e;   /* đất nung */
  --bc-la:    #3f6b3a;   /* lá chuối */
  --bc-la-d:  #2b4d28;
  --bc-giay:  #fbf6ea;   /* giấy dó */
  --bc-kem:   #f3ead6;
  --bc-vang:  #C9963B;
  --bc-muc:   #1e1a12;
  --bc-mo:    #6b6250;
  --bc-vien:  rgba(58,44,20,0.18);
}

/* ── nhãn nhỏ chữ hoa (chuyên mục, mốc) ── */
.bc-nhan { font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bc-la-d) !important; }

/* ── dải thông số món (thời gian · khẩu phần · độ khó) ── */
.bc-thongso { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.bc-thongso li { flex: 1 1 140px; background: var(--bc-kem); border-top: 3px solid var(--bc-dat);
  padding: 10px 12px; min-width: 0; }
.bc-thongso b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem;
  color: var(--bc-muc); line-height: 1.25; margin-top: 4px; }
.bc-thongso span { font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bc-mo) !important; }

/* ── khung video (dựng nhẹ: chỉ nạp YouTube khi bấm) ── */
.bc-video { margin: 26px 0; }
.bc-video .bc-nhan { margin-bottom: 8px; display: block; }
.bc-vd { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #111 center/cover no-repeat;
  border: 1px solid var(--bc-vien); cursor: pointer; overflow: hidden; }
.bc-vd img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-vd iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bc-vd .bc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 54px; border-radius: 14px; background: rgba(122,59,30,0.92);
  display: flex; align-items: center; justify-content: center; transition: background .2s; }
.bc-vd:hover .bc-play { background: #b3341f; }
.bc-vd .bc-play::after { content: ''; border-style: solid; border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #fff; margin-left: 4px; }
.bc-vd-ten { font-size: 0.86rem; color: var(--bc-mo); margin: 8px 0 0; line-height: 1.5; }
.bc-vd-ten b { color: var(--bc-muc); }

/* danh sách video phụ */
.bc-vd-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.bc-vd-luoi li { min-width: 0; }
.bc-vd-luoi .bc-vd { aspect-ratio: 16 / 9; }
.bc-vd-luoi .bc-play { width: 52px; height: 38px; border-radius: 10px; }
.bc-vd-luoi .bc-play::after { border-width: 8px 0 8px 14px; }

/* ── nguyên liệu: danh sách có ô đánh dấu (nhớ trong trình duyệt) ── */
.bc-nl { background: var(--bc-giay); border: 1px solid var(--bc-vien); border-top: 3px solid var(--bc-la);
  padding: 20px 24px; margin: 26px 0; }
.bc-nl h3, .bc-cb h3 { margin-top: 0 !important; }
.bc-nl ul { list-style: none; margin: 12px 0 0; padding: 0; }
.bc-nl li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--bc-vien); line-height: 1.55; }
.bc-nl li:last-child { border-bottom: 0; }
.bc-nl input[type=checkbox] { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--bc-la); }
.bc-nl li.xong label { text-decoration: line-through; color: var(--bc-mo); }
.bc-nl label { cursor: pointer; flex: 1; }
.bc-nl .bc-nhom { margin-top: 14px; }
.bc-nl .bc-nhom:first-of-type { margin-top: 0; }
.bc-nl .bc-nhom h4 { font-family: 'Montserrat', sans-serif; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bc-dat) !important; margin: 0 0 4px; }
.bc-nl .bc-ghi { font-size: 0.86rem; color: var(--bc-mo); margin: 12px 0 0; }

/* ── các bước: số to, mốc thời gian ── */
.bc-cb { margin: 26px 0; }
.bc-cb ol { list-style: none; counter-reset: buoc; margin: 14px 0 0; padding: 0; }
.bc-cb ol > li { counter-increment: buoc; position: relative; padding: 0 0 22px 64px; border-left: 2px solid var(--bc-vien); margin-left: 22px; }
.bc-cb ol > li:last-child { padding-bottom: 6px; }
.bc-cb ol > li::before { content: counter(buoc); position: absolute; left: -23px; top: -4px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bc-dat); color: #fff; font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bc-giay); }
.bc-cb ol > li h4 { margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif; font-size: 1.12rem; color: var(--bc-muc); line-height: 1.3; }
.bc-cb ol > li p { margin: 0 0 8px; line-height: 1.7; }
.bc-cb .bc-moc { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bc-la-d) !important; background: #e6efe0;
  padding: 3px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.bc-cb .bc-dau { display: block; font-size: 0.9rem; color: var(--bc-mo); font-style: italic; margin-top: 4px; }

/* ── khung mẹo / cẩn thận / tinh thần nhà Phật ── */
.bc-khung { padding: 18px 22px; margin: 26px 0; border-left: 4px solid var(--bc-la); background: #eef3e9; }
.bc-khung h4 { font-family: 'Montserrat', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bc-la-d) !important; margin: 0 0 10px; }
.bc-khung p, .bc-khung li { line-height: 1.72; }
.bc-khung p { margin: 0 0 10px; }
.bc-khung p:last-child { margin-bottom: 0; }
.bc-khung ul { margin: 0; padding-left: 20px; }
.bc-khung.canthan { border-left-color: #b3341f; background: #fbeeea; }
.bc-khung.canthan h4 { color: #8a2415 !important; }
.bc-khung.phat { border-left-color: var(--bc-vang); background: #fbf3e2; }
.bc-khung.phat h4 { color: #8a6114 !important; }
.bc-khung .xuat { font-family: 'Montserrat', sans-serif; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--bc-mo) !important; margin: 6px 0 0; }

/* ── bảng hai lối làm ── */
.bc-bang { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 18px 0 8px; }
.bc-bang th { font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; text-align: left; padding: 10px 12px; border: 1px solid var(--bc-vien) !important;
  background: var(--bc-kem) !important; color: var(--bc-dat) !important; }
.bc-bang td { padding: 10px 12px; border: 1px solid var(--bc-vien) !important; vertical-align: top; line-height: 1.6; }
.bc-bang td.n { font-weight: 600; color: var(--bc-dat) !important; white-space: nowrap; }
.bc-cuon { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── lưới thẻ món (trang mục) ── */
.bc-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 18px 0 28px; padding: 0; list-style: none; }
.bc-the { background: #fff; border: 1px solid var(--bc-vien); display: flex; flex-direction: column; min-width: 0;
  transition: transform .18s, box-shadow .18s; }
.bc-the:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(40,30,10,0.14); }
.bc-the .bc-anh { aspect-ratio: 16 / 10; background: var(--bc-kem) center/cover no-repeat; position: relative; overflow: hidden; }
.bc-the .bc-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-the .bc-loai { position: absolute; left: 10px; top: 10px; background: rgba(122,59,30,0.92); color: #fff;
  font-family: 'Montserrat', sans-serif; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; }
.bc-the .bc-moi { position: absolute; right: 10px; top: 10px; background: var(--bc-vang); color: #1e1a12;
  font-family: 'Montserrat', sans-serif; font-size: 0.54rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; }
.bc-the .bc-than { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-the h3 { margin: 0 !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; line-height: 1.3; }
.bc-the h3 a { color: var(--bc-muc) !important; text-decoration: none; border: 0 !important; }
.bc-the h3 a:hover { color: var(--bc-dat) !important; }
.bc-the p { margin: 0; font-size: 0.88rem; color: var(--bc-mo); line-height: 1.55; }
.bc-the .bc-chan { margin-top: auto; padding-top: 8px; font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bc-mo) !important; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* món tuần này */
.bc-tuan { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--bc-vien); background: #fff; margin: 18px 0 28px; }
.bc-tuan .bc-anh { background: var(--bc-kem) center/cover no-repeat; min-height: 220px; }
.bc-tuan .bc-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-tuan .bc-than { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.bc-tuan h3 { margin: 0 !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; line-height: 1.2; }
.bc-tuan h3 a { color: var(--bc-muc) !important; text-decoration: none; border: 0 !important; }
.bc-tuan p { margin: 0; line-height: 1.6; }
@media (max-width: 640px) { .bc-tuan { grid-template-columns: 1fr; } }

/* bộ lọc chuyên mục */
.bc-loc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.bc-loc button { font-family: 'Montserrat', sans-serif; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: #fff; color: var(--bc-la-d); border: 1px solid var(--bc-la); padding: 7px 12px; cursor: pointer; width: auto !important; margin: 0; }
.bc-loc button.dang { background: var(--bc-la); color: #fff; }

/* nút gọi mời */
.bc-nut { display: inline-block; background: var(--bc-dat); color: #fff !important; text-decoration: none !important; border: 0 !important;
  font-family: 'Montserrat', sans-serif; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 22px; transition: background .2s; }
.bc-nut:hover { background: #5a2a13; }
.bc-nut.la { background: var(--bc-la); }
.bc-nut.la:hover { background: var(--bc-la-d); }
.bc-goi { background: linear-gradient(135deg, #fbf3e2, #f3ead6); border: 1px solid var(--bc-vien); padding: 24px 26px; margin: 28px 0;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.bc-goi .bc-goi-chu { flex: 1 1 320px; }
.bc-goi h3 { margin: 0 0 6px !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; }
.bc-goi p { margin: 0; line-height: 1.6; }

/* lịch sắp ra lò */
.bc-sap { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; }
.bc-sap li { padding: 8px 0 8px 22px; border-bottom: 1px dashed var(--bc-vien); position: relative; font-size: 0.95rem; }
.bc-sap li::before { content: '✦'; position: absolute; left: 2px; color: var(--bc-vang); }

/* ── biểu mẫu gửi bài ── */
.bc-form { background: var(--bc-giay); border: 1px solid var(--bc-vien); border-top: 3px solid var(--bc-dat); padding: 22px 24px; margin: 20px 0; }
.bc-form .bc-o { margin-bottom: 16px; }
.bc-form label { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bc-la-d); margin-bottom: 6px; }
.bc-form label small { display: block; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--bc-mo); font-size: 0.72rem; margin-top: 2px; }
.bc-form input[type=text], .bc-form input[type=email], .bc-form input[type=url], .bc-form select, .bc-form textarea {
  width: 100%; padding: 11px 13px; font-size: 0.97rem; font-family: inherit; color: var(--bc-muc); background: #fff;
  border: 1px solid var(--bc-vien); border-bottom: 2px solid var(--bc-dat); outline: none; }
.bc-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.bc-form input:focus, .bc-form textarea:focus, .bc-form select:focus { border-color: var(--bc-la); box-shadow: 0 0 0 3px rgba(63,107,58,0.16); }
.bc-form .bc-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .bc-form .bc-hai { grid-template-columns: 1fr; } }
.bc-form .bc-hp { position: absolute; left: -9999px; top: -9999px; }
.bc-form button[type=submit] { width: auto !important; }
.bc-bao { padding: 14px 18px; margin: 16px 0; border-left: 4px solid var(--bc-la); background: #eef3e9; line-height: 1.6; }
.bc-bao.loi { border-left-color: #b3341f; background: #fbeeea; }

/* ── ảnh đầu trang mục (hội thi nấu ăn) ── */
.bc-anh-dau { margin: 0 0 22px; }
.bc-anh-dau img { width: 100%; height: auto; display: block; border: 1px solid var(--bc-vien); cursor: zoom-in; }
.bc-anh-dau figcaption { font-size: 0.86rem; color: var(--bc-mo); line-height: 1.55; margin: 8px 0 0; }
.bc-anh-dau figcaption b { color: var(--bc-muc); }

/* ── khung "in được" ── */
@media print {
  .bc-video, .bc-vd-luoi, .bc-goi, .bc-loc { display: none !important; }
  .bc-cb ol > li::before { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
