/* TechPulse — Game-App: trang danh mục + trang chi tiết game (kiểu thegioididong) */
.ga {
	--ga-line: var(--tp-line, #e6e5e1);
	--ga-surface: var(--tp-surface, #fff);
	--ga-soft: var(--tp-bg-soft, #f6f6f4);
	--ga-ink: var(--tp-ink, #0c0c0d);
	--ga-mute: var(--tp-ink-mute, #6c6c72);
	--ga-blue: #2266dd;
	--ga-green: #16a34a;
	--ga-orange: #e8842b;
	font-family: var(--tp-font-body, system-ui, sans-serif);
	color: var(--ga-ink);
}

/* ───────── Tiêu đề khối ───────── */
.ga-h { font: 700 1.15rem/1.2 var(--tp-font-display, serif); margin: 28px 0 14px; text-transform: uppercase; letter-spacing: .3px; }
.ga-h:first-child { margin-top: 0; }

/* ───────── Chips chủ đề ───────── */
.ga-chips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.ga-chip {
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
	padding: 14px 6px; border: 1px solid var(--ga-line); border-radius: 12px;
	background: var(--ga-surface); color: var(--ga-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .05s;
}
.ga-chip:hover { border-color: var(--ga-blue); box-shadow: 0 6px 18px -10px rgba(34,102,221,.5); }
.ga-chip-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--ga-soft); display: grid; place-items: center; font-size: 1.2rem; }
.ga-chip-name { font-size: .8rem; line-height: 1.25; font-weight: 600; }

/* ───────── Lưới nổi bật ───────── */
.ga-featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ga-fcard { background: var(--ga-surface); border: 1px solid var(--ga-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .08s; }
.ga-fcard:hover { box-shadow: var(--tp-shadow-hover, 0 18px 40px -20px rgba(0,0,0,.35)); transform: translateY(-2px); }
.ga-fcard-thumb { aspect-ratio: 16 / 10; background: var(--ga-soft); overflow: hidden; }
.ga-fcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ga-fcard-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ga-fcard-title { font: 700 1rem/1.3 var(--tp-font-body, sans-serif); color: var(--ga-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ga-fcard-title:hover { color: var(--ga-blue); }
.ga-fcard-tips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ga-fcard-tips a { color: var(--ga-blue); text-decoration: none; font-size: .84rem; line-height: 1.35; }
.ga-fcard-tips a:hover { text-decoration: underline; }
.ga-fcard-tips li::before { content: "• "; color: var(--ga-blue); }

/* ───────── Danh sách ───────── */
.ga-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
.ga-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; transition: background .15s; }
.ga-item:hover { background: var(--ga-soft); }
.ga-item-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: var(--ga-soft); }
.ga-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ga-item-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ga-item-title { font: 600 .92rem/1.3 var(--tp-font-body, sans-serif); color: var(--ga-ink); text-decoration: none; }
.ga-item-title:hover { color: var(--ga-blue); }

/* ───────── Badge & thể loại ───────── */
.ga-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ga-badge { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; color: #fff; }
.ga-badge--free { background: var(--ga-green); }
.ga-badge--paid { background: var(--ga-orange); }
.ga-genres { font-size: .8rem; color: var(--ga-mute); }
.ga-genres a { color: var(--ga-mute); text-decoration: none; }
.ga-genres a:hover { color: var(--ga-blue); }

.ga-more { text-align: center; margin: 18px 0 6px; }
.ga-more a, .ga-loadmore { display: inline-block; padding: 10px 26px; border: 1px solid var(--ga-blue); border-radius: 8px; color: var(--ga-blue); font-weight: 600; text-decoration: none; background: var(--ga-surface); cursor: pointer; font: inherit; font-weight: 600; }
.ga-more a:hover, .ga-loadmore:hover { background: var(--ga-blue); color: #fff; }
.ga-loadmore:disabled { opacity: .6; cursor: default; }

/* ════════════════ TRANG CHI TIẾT ════════════════ */
.ga-detail { max-width: 920px; margin: 0 auto; }
.ga-card { background: var(--ga-surface); border: 1px solid var(--ga-line); border-radius: 14px; padding: 22px; }
.ga-d-head { display: flex; gap: 18px; align-items: flex-start; }
.ga-d-icon { width: 92px; height: 92px; border-radius: 18px; overflow: hidden; flex: 0 0 auto; background: var(--ga-soft); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.ga-d-icon img { width: 100%; height: 100%; object-fit: cover; }
.ga-d-info { min-width: 0; flex: 1; }
.ga-d-info h1 { font: 800 1.7rem/1.2 var(--tp-font-display, serif); margin: 0 0 8px; }
.ga-d-sub { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .9rem; color: var(--ga-mute); }
.ga-d-sub b { color: var(--ga-ink); }

.ga-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ga-store { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--ga-line); border-radius: 10px; text-decoration: none; color: var(--ga-ink); background: var(--ga-surface); transition: border-color .15s, box-shadow .15s; }
.ga-store:hover { border-color: var(--ga-blue); box-shadow: 0 6px 16px -10px rgba(34,102,221,.5); }
.ga-store-ico { width: 26px; height: 26px; flex: 0 0 auto; }
.ga-store-txt { display: flex; flex-direction: column; line-height: 1.2; }
.ga-store-name { font-weight: 700; font-size: .92rem; }
.ga-store-rate { font-size: .76rem; color: var(--ga-mute); }
.ga-store-rate b { color: var(--ga-orange); }

.ga-tips { background: var(--ga-soft); border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.ga-tips h2 { font: 700 1rem/1.3 var(--tp-font-body, sans-serif); margin: 0 0 10px; }
.ga-tips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ga-tips a { color: var(--ga-blue); text-decoration: none; }
.ga-tips a:hover { text-decoration: underline; }
.ga-tips li::before { content: "• "; color: var(--ga-blue); font-weight: 700; }

.ga-gallery-wrap { margin-top: 22px; }
.ga-gallery-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--ga-line); margin-bottom: 14px; }
.ga-gallery-tab { padding: 10px 2px; font-weight: 600; font-size: .92rem; color: var(--ga-mute); border-bottom: 2px solid transparent; }
.ga-gallery-tab.is-active { color: var(--ga-blue); border-bottom-color: var(--ga-blue); }
.ga-gallery { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ga-gallery img { height: 280px; border-radius: 12px; flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--ga-line); object-fit: cover; }

.ga-highlights { border: 1px solid #f0c98a; background: #fffaf2; border-radius: 12px; padding: 16px 18px; margin-top: 22px; }
.ga-highlights h2 { color: var(--ga-orange); font: 700 1.05rem/1.3 var(--tp-font-body, sans-serif); margin: 0 0 10px; }
.ga-highlights ul { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ga-highlights li { position: relative; padding-left: 18px; line-height: 1.5; }
.ga-highlights li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ga-orange); }

.ga-body { margin-top: 24px; line-height: 1.7; }
.ga-author { margin-top: 24px; }
.ga-author .tp-author-box { max-width: none; margin: 0; }
.ga-comments { margin-top: 40px; }
.ga-body img { max-width: 100%; height: auto; border-radius: 10px; }
.ga-body h2, .ga-body h3 { font-family: var(--tp-font-display, serif); }

.ga-related { margin-top: 28px; }
.ga-related .ga-list { grid-template-columns: repeat(2, 1fr); }

[data-theme="dark"] .ga-highlights { background: #221a0e; border-color: #5a4a2a; }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
	.ga-chips { grid-template-columns: repeat(6, 1fr); }
	.ga-featured { grid-template-columns: repeat(2, 1fr); }
	.ga-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.ga-chips { grid-template-columns: repeat(4, 1fr); }
	.ga-featured { grid-template-columns: 1fr; }
	.ga-list, .ga-related .ga-list { grid-template-columns: 1fr; }
	.ga-d-head { gap: 12px; }
	.ga-d-icon { width: 60px; height: 60px; border-radius: 14px; }
	.ga-d-info h1 { font-size: 1.3rem; }
	.ga-d-sub { font-size: .82rem; gap: 6px 10px; }
	.ga-gallery img { height: 220px; }
}
