/**
 * FSC Post Enhancements v1.0.0 — CSS final theo demo bản 6.
 * catPos=bottom | badge=pill #f05a22 | meta=dateonly | divider=accent
 * authorBox=card gray, avatar chữ cái | react=left, nền xám, emoji hệ thống
 * comments=styled, google login, input xám nhạt
 */

:root {
	--fsc-orange: #f05a22;
	--fsc-orange-soft: #feeee6;
	--fsc-orange-border: rgba(240, 90, 34, 0.22);
	--fsc-meta-text: #6b7280;
	--fsc-meta-icon: #9ca3af;
}

/* ============================================================
   1. HEADER BÀI VIẾT — ẩn danh mục gốc, meta chỉ còn ngày + icon
   ============================================================ */

.single-post .entry-header .entry-category,
.single-post .entry-header-text .entry-category {
	display: none;
}

.single-post .entry-header-text .entry-divider.is-divider.small {
	background-color: var(--fsc-orange);
	height: 3px;
	width: 40px;
	border-radius: 2px;
	margin: 14px 0;
	opacity: 1;
}

.single-post div.entry-meta {
	font-size: 0;
	text-transform: none;
	letter-spacing: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-top: 2px;
	opacity: 1;
}

.single-post div.entry-meta .byline {
	display: none; /* tác giả chuyển xuống hộp cuối bài */
}

.single-post div.entry-meta .posted-on {
	font-size: 0;
	display: inline-flex;
	align-items: center;
}

.single-post div.entry-meta .posted-on::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	flex: 0 0 auto;
	background-color: var(--fsc-meta-icon);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.single-post div.entry-meta .posted-on a,
.single-post div.entry-meta .posted-on time {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--fsc-meta-text);
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0.01em;
	transition: color 0.18s ease;
}

.single-post div.entry-meta .posted-on a:hover {
	color: var(--fsc-orange);
}

/* ============================================================
   2. BADGE DANH MỤC — pill cam, cuối bài (.fsc-cats)
   + đồng bộ style cho trang lưu trữ (h6.entry-category còn hiển thị)
   ============================================================ */

.fsc-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 30px 0 0;
}

h6.entry-category {
	font-size: 0;
	line-height: 1;
	letter-spacing: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fsc-cats a,
h6.entry-category a {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fsc-orange);
	background: var(--fsc-orange-soft);
	border: 1px solid var(--fsc-orange-border);
	border-radius: 999px;
	padding: 6px 13px;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.fsc-cats a:hover,
.fsc-cats a:focus,
h6.entry-category a:hover,
h6.entry-category a:focus {
	color: #fff;
	background: var(--fsc-orange);
	border-color: var(--fsc-orange);
}

/* ============================================================
   3. THANH CẢM XÚC
   ============================================================ */

.fsc-react-bar {
	margin-top: 34px;
}

.fsc-react-label {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 12px;
}

.fsc-react-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fsc-react {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f2f3f5;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 9px 16px;
	font-family: inherit;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.fsc-react:hover {
	transform: translateY(-2px);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	background: #eceef1;
}

.fsc-react.on {
	background: rgba(240, 90, 34, 0.1);
	border-color: rgba(240, 90, 34, 0.45);
}

.fsc-react.on .fsc-react-num {
	color: var(--fsc-orange);
}

.fsc-react-emo {
	font-size: 18px;
	line-height: 1;
}

.fsc-react-num {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	line-height: 1;
}

/* ============================================================
   4. HỘP TÁC GIẢ CUỐI BÀI
   ============================================================ */

.fsc-author-box {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: #f8f9fa;
	border: 1px solid #eef0f2;
	border-radius: 12px;
	padding: 20px 22px;
	margin: 36px 0 28px;
}

/* xếp dọc để tên và link không dính nhau khi bio trống */
.fsc-ab-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
}

.fsc-ab-avatar {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f4794a, #f05a22);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.02em;
}

.fsc-ab-label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(240, 90, 34, 0.85);
	margin-bottom: 3px;
}

.fsc-ab-name {
	font-size: 15.5px;
	font-weight: 700;
	color: #1f2937;
	text-decoration: none;
}

.fsc-ab-name:hover {
	color: var(--fsc-orange);
}

.fsc-ab-bio {
	font-size: 13px;
	line-height: 1.6;
	color: var(--fsc-meta-text);
	margin: 3px 0 4px;
}

.fsc-ab-more {
	margin-top: 2px;
}

.fsc-ab-more {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--fsc-orange);
	text-decoration: none;
}

.fsc-ab-more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ============================================================
   5. KHU BÌNH LUẬN — style markup native WP/Flatsome
   ============================================================ */

.single-post .comments-area {
	margin-top: 42px;
	border-top: 1px solid #eef0f2;
	padding-top: 28px;
}

.single-post .comments-title,
.single-post .comment-reply-title {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 18px;
}

.single-post .comment-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.single-post .comment-list li.comment,
.single-post .comment-list li.pingback {
	position: relative;
	padding-left: 52px;
	margin-bottom: 16px;
	list-style: none;
}

.single-post .comment-list .avatar {
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.single-post .comment-list .comment-body {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 12px 16px;
}

.single-post .comment-author .fn,
.single-post .comment-author .fn a {
	font-size: 13.5px;
	font-weight: 700;
	font-style: normal;
	color: #1f2937;
	text-decoration: none;
}

.single-post .comment-author .says {
	display: none;
}

.single-post .comment-metadata,
.single-post .comment-meta .comment-date {
	display: inline-block;
	margin-left: 8px;
}

.single-post .comment-metadata a,
.single-post .comment-metadata time {
	font-size: 12px;
	color: #9ca3af;
	text-decoration: none;
}

/* badge cho tài khoản tác giả bài viết (thường là tài khoản trường) */
.single-post .comment-list .bypostauthor .comment-author .fn::after {
	content: "Quản trị viên";
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fsc-orange);
	background: rgba(240, 90, 34, 0.1);
	border-radius: 4px;
	padding: 2px 6px;
	margin-left: 8px;
	vertical-align: 1px;
}

.single-post .comment-content p {
	font-size: 13.5px;
	line-height: 1.65;
	color: #374151;
	margin: 6px 0 4px;
}

.single-post .comment-list .reply a {
	font-size: 12px;
	font-weight: 600;
	color: var(--fsc-orange);
	text-decoration: none;
}

.single-post .comment-list .reply a:hover {
	text-decoration: underline;
}

.single-post .comment-list .children {
	margin: 14px 0 0;
	padding: 0;
}

/* ---- form bình luận ---- */

.single-post .comment-respond,
.single-post .comments-area .comment-respond,
.single-post #respond,
.single-post #respond.comment-respond {
	margin-top: 26px;
	background: transparent; /* Flatsome mặc định phủ nền xám rgba(0,0,0,.05) */
	border: none;
	padding: 0;
	border-radius: 0;
}

.single-post .comments-area {
	background: transparent;
}

/* label thay bằng placeholder; giữ label cho screen reader */
.single-post .comment-form .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.single-post .comment-form label {
	font-size: 12.5px;
	font-weight: 500;
	color: #6b7280;
}

.single-post .comment-notes,
.single-post .logged-in-as {
	font-size: 12.5px;
	color: #9ca3af;
	margin: -8px 0 14px;
}

.single-post .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.single-post .comment-form > p {
	margin: 0;
}

.single-post .comment-form-comment,
.single-post .comment-form .comment-notes,
.single-post .comment-form-cookies-consent,
.single-post .comment-form .form-submit,
.single-post .comment-form .logged-in-as {
	grid-column: 1 / -1;
}

.single-post .comment-form-author {
	grid-column: 1;
}

.single-post .comment-form-email {
	grid-column: 2;
}

/* ẩn ô website — nam châm hút spam, không cần cho site trường */
.single-post .comment-form-url {
	display: none;
}

.single-post .comment-form textarea,
.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"] {
	width: 100%;
	background: #f3f4f6;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 13.5px;
	font-family: inherit;
	color: #1f2937;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.single-post .comment-form textarea:focus,
.single-post .comment-form input[type="text"]:focus,
.single-post .comment-form input[type="email"]:focus {
	outline: none;
	border-color: var(--fsc-orange);
	box-shadow: 0 0 0 3px rgba(240, 90, 34, 0.12);
	background: #fff;
}

.single-post .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #6b7280;
}

.single-post .comment-form-cookies-consent label {
	font-size: 12.5px;
	font-weight: 400;
	color: #6b7280;
	margin: 0;
	display: inline;
}

.single-post .comment-form-cookies-consent input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--fsc-orange);
	flex: 0 0 auto;
}

.single-post .comment-form input[type="submit"] {
	width: auto;
	background: var(--fsc-orange);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 11px 26px;
	font-size: 13.5px;
	font-weight: 600;
	text-transform: none; /* Flatsome mặc định uppercase nút */
	letter-spacing: 0.01em;
	min-height: 0;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.single-post .comment-form input[type="submit"]:hover {
	filter: brightness(1.08);
}

@media (max-width: 549px) {
	.single-post .comment-form {
		grid-template-columns: 1fr;
	}

	.single-post .comment-form-author,
	.single-post .comment-form-email {
		grid-column: 1;
	}
}

/* ---- khối mời đăng nhập Google ---- */

.fsc-cmt-login {
	background: #f8f9fa;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	padding: 22px;
	text-align: center;
}

.fsc-cmt-login-text {
	font-size: 13.5px;
	color: #6b7280;
	margin: 0 0 14px;
}

.fsc-google-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #dadce0;
	border-radius: 999px;
	padding: 10px 22px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #3c4043;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow 0.15s ease, background 0.15s ease;
}

.fsc-google-btn:hover {
	box-shadow: 0 2px 8px rgba(60, 64, 67, 0.15);
	background: #fafafa;
	color: #3c4043;
}

/* ============================================================
   6. MOBILE
   ============================================================ */

@media (max-width: 549px) {
	.fsc-cats a,
	h6.entry-category a {
		font-size: 10.5px;
		padding: 5px 11px;
	}

	.fsc-react {
		padding: 8px 14px;
	}

	.fsc-author-box {
		padding: 16px;
		gap: 12px;
	}

	.fsc-ab-avatar {
		width: 46px;
		height: 46px;
		font-size: 15px;
	}
}
