/* Huỳnh Khang — Game category styles (overrides hk-smt.css on /game/) */

/* Hide default archive title for /game/ (we render our own h2 in loop_start hook) */
.category-game .archive-page-header .page-title {
	display: none !important;
}

/* Style Flatsome Blog Posts archive on /game/ — match sua-may-tinh layout (3-col masonry) but with gaming theme */

.category-game #post-list > .row {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

.category-game #post-list .post-item .col-inner {
	padding: 8px;
}

.category-game #post-list .post-item .box-blog-post {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #eef2f7;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-game #post-list .post-item:hover .box-blog-post {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(124, 58, 237, 0.22);
	border-color: #c4b5fd;
}

.category-game #post-list .post-item .box-image {
	margin: 0 !important;
	position: relative;
}

.category-game #post-list .post-item .image-cover {
	overflow: hidden;
	background: #f1f5f9;
}

.category-game #post-list .post-item .image-cover img {
	transition: transform 0.4s ease;
}

.category-game #post-list .post-item:hover .image-cover img {
	transform: scale(1.05);
}

.category-game #post-list .post-item .box-text {
	padding: 16px 18px 18px !important;
	background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.category-game #post-list .post-item .post-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	margin: 0 0 6px !important;
}

.category-game #post-list .post-item .post-title a {
	color: #0f172a !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.category-game #post-list .post-item:hover .post-title a {
	color: #6d28d9 !important;
}

.category-game #post-list .post-item .is-divider {
	margin: 8px 0 10px !important;
	height: 2px !important;
	background: linear-gradient(90deg, #7c3aed 0%, #db2777 100%) !important;
	color: transparent !important;
	width: 36px !important;
	border: 0 !important;
	opacity: 0.6;
	transition: width 0.3s ease, opacity 0.3s ease;
}

.category-game #post-list .post-item:hover .is-divider {
	width: 80px !important;
	opacity: 1;
}

.category-game #post-list .post-item .from_the_blog_excerpt {
	color: #475569 !important;
	font-size: 13.5px !important;
	line-height: 1.6 !important;
	margin: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Hide gaming-style date badge */
.category-game #post-list .post-item .badge.post-date {
	display: none !important;
}

/* Hero banner */
.hk-game-hero {
	background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #831843 100%);
	color: #fff;
	border-radius: 18px;
	padding: 48px 32px;
	margin: 36px auto 28px;
	max-width: 1140px;
	text-align: center;
	box-shadow: 0 12px 32px rgba(76, 29, 149, 0.25);
	position: relative;
	overflow: hidden;
}

.hk-game-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.25), transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.25), transparent 45%);
	pointer-events: none;
}

.hk-game-hero > * {
	position: relative;
	z-index: 1;
}

.hk-game-hero h1 {
	font-size: 34px;
	font-weight: 900;
	margin: 0 0 12px;
	letter-spacing: -0.3px;
	line-height: 1.25;
}

.hk-game-hero h1 em {
	font-style: normal;
	background: linear-gradient(90deg, #f472b6, #c084fc, #60a5fa);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hk-game-hero p {
	max-width: 760px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.88);
}

.hk-game-hero .hk-game-hero-meta {
	margin-top: 18px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

/* Filter bar (platform, genre) */
.hk-game-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: 1140px;
	margin: 0 auto 28px;
	padding: 0 15px;
}

.hk-game-filters a {
	display: inline-block;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	color: #475569;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.hk-game-filters a:hover {
	background: #f1f5f9;
	border-color: #8b5cf6;
	color: #6d28d9;
}

.hk-game-filters a.active {
	background: linear-gradient(135deg, #7c3aed, #db2777);
	border-color: transparent;
	color: #fff;
}

/* Posts grid */
.hk-game-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

.hk-game-card {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.hk-game-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(124, 58, 237, 0.18);
}

.hk-game-card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #f1f5f9;
	overflow: hidden;
}

.hk-game-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hk-game-card:hover .hk-game-card-thumb img {
	transform: scale(1.05);
}

.hk-game-card-platform {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

.hk-game-card-body {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.hk-game-card-genre {
	font-size: 12px;
	font-weight: 700;
	color: #7c3aed;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.hk-game-card-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
	line-height: 1.35;
}

.hk-game-card-title a {
	color: inherit;
	text-decoration: none;
}

.hk-game-card-title a:hover {
	color: #6d28d9;
}

.hk-game-card-excerpt {
	font-size: 13.5px;
	color: #475569;
	line-height: 1.6;
	margin: 0 0 14px;
}

.hk-game-card-foot {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #94a3b8;
	padding-top: 10px;
	border-top: 1px dashed #e2e8f0;
}

.hk-game-card-score {
	background: linear-gradient(135deg, #7c3aed, #db2777);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	padding: 3px 10px;
	border-radius: 6px;
	letter-spacing: 0.3px;
}

/* Empty state */
.hk-game-empty {
	text-align: center;
	max-width: 640px;
	margin: 60px auto;
	padding: 50px 24px;
	background: #fff;
	border-radius: 16px;
	border: 1px dashed #cbd5e1;
	color: #64748b;
}

.hk-game-empty h2 {
	color: #0f172a;
	margin: 0 0 10px;
}

/* FAQ styling reuse from hk-smt */
.hk-game-faq {
	max-width: 920px;
	margin: 60px auto 40px;
	padding: 0 15px;
}

.hk-game-faq .hk-section-title {
	color: #6d28d9;
}

.hk-game-faq .hk-faq-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 0;
	margin: 0 0 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hk-game-faq .hk-faq-item[open] {
	border-color: #c4b5fd;
	box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.hk-game-faq .hk-faq-item summary {
	cursor: pointer;
	padding: 16px 20px;
	font-weight: 700;
	color: #0f172a;
	font-size: 15px;
	list-style: none;
	position: relative;
	padding-right: 50px;
}

.hk-game-faq .hk-faq-item summary::-webkit-details-marker {
	display: none;
}

.hk-game-faq .hk-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 600;
	color: #7c3aed;
	transition: transform 0.2s ease;
}

.hk-game-faq .hk-faq-item[open] summary::after {
	content: "−";
}

.hk-game-faq .hk-faq-item p {
	padding: 0 20px 18px;
	margin: 0;
	color: #475569;
	line-height: 1.7;
	font-size: 14.5px;
}

/* Pagination on /game/ */
.category-game .pagination,
.category-game .nav-links,
.category-game .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 36px auto 24px;
	max-width: 1140px;
	padding: 0 15px;
	list-style: none;
}

.category-game .pagination a,
.category-game .pagination span,
.category-game .nav-links a,
.category-game .nav-links span,
.category-game .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.category-game .pagination a:hover,
.category-game .nav-links a:hover,
.category-game .page-numbers:not(.current):not(.dots):hover {
	background: linear-gradient(135deg, #7c3aed, #db2777);
	border-color: transparent;
	color: #fff;
}

.category-game .pagination .current,
.category-game .nav-links .current,
.category-game .page-numbers.current {
	background: linear-gradient(135deg, #7c3aed, #db2777);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.category-game .pagination .dots,
.category-game .nav-links .dots,
.category-game .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
	.hk-game-hero {
		padding: 36px 22px;
	}

	.hk-game-hero h1 {
		font-size: 26px;
	}

	.hk-game-grid {
		grid-template-columns: 1fr;
	}
}