/* GameNerd Pro v1.1 — single article upgrades: progress bar, sticky TOC, sidebar, author card */

/* Reading progress bar */
.reading-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 100%;
	background: transparent; z-index: 100; pointer-events: none;
}
.reading-progress .bar {
	height: 100%; width: 0;
	background: linear-gradient(90deg, var(--accent), #ff8fa0);
	transition: width .1s linear;
}

/* Article top band */
.single-top {
	background:
		radial-gradient(1200px 400px at 70% -10%, rgba(255,77,94,.14), transparent 60%),
		radial-gradient(800px 300px at 10% 0%, rgba(108,140,255,.10), transparent 55%),
		var(--bg-2);
	border-bottom: 1px solid var(--line);
	padding-bottom: 30px;
}
.article-head { padding: 26px 0 0; display: flex; flex-direction: column; gap: 16px; }
.single-top .crumbs { padding-top: 18px; }

/* Author meta line */
.meta-col { display: flex; flex-direction: column; }
.meta .avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); }
.meta-sub { font-size: 13px; color: var(--muted); }

/* Two-column article layout */
.wrap.single-layout {
	display: grid;
	grid-template-columns: minmax(0,1fr) 320px;
	gap: 44px;
	padding: 36px 0 56px;
	align-items: start;
}
.side-sticky { position: sticky; top: 84px; }

/* Featured image inside main col */
.article-featured { border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }

/* TOC */
.toc-widget { display: block; }
.toc-list { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc-list a {
	display: block; padding: 7px 0 7px 14px; color: var(--muted);
	font-size: 13.5px; line-height: 1.4; border-left: 2px solid transparent; margin-left: -2px;
}
.toc-list a:hover { color: var(--text); }
.toc-list a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-list a.lvl3 { padding-left: 28px; font-size: 12.5px; }

/* Author box v2 */
.author-box {
	display: flex; gap: 20px; padding: 24px; margin: 8px 0 36px;
	background: linear-gradient(135deg, var(--bg-3), var(--surface));
	border: 1px solid var(--line); border-radius: var(--radius);
	position: relative; overflow: hidden;
}
.author-box::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
	background: var(--accent);
}
.author-box .avatar { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--line); }
.author-info { display: flex; flex-direction: column; gap: 4px; }
.author-role { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.author-box .bio { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; line-height: 1.6; }

/* Tags */
.tag-row { margin: 28px 0 0; gap: 8px; }

/* Share */
.share-label {
	align-self: center; font-size: 12px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .8px; color: var(--muted); margin-right: 4px;
}

/* Related compact */
.grid-compact { grid-template-columns: 1fr; gap: 14px; }
.grid-compact .card { flex-direction: row; align-items: stretch; }
.grid-compact .card-media { aspect-ratio: auto; width: 128px; min-width: 128px; }
.grid-compact .card-body { padding: 12px 14px; justify-content: center; }
.grid-compact .card-title { font-size: 15px; }

/* Comments */
.comments-area { padding-bottom: 40px; }
.commentlist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.commentlist .comment { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.commentlist .avatar { float: left; margin-right: 12px; }
.commentlist .comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.commentlist .children { list-style: none; margin-top: 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.comment-form p { margin: 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
	background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit; outline: none; width: 100%;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent-2); }
.comment-form .submit {
	align-self: flex-start; padding: 12px 26px; border-radius: var(--radius-sm); border: 0;
	background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; font-size: 15px;
}
.comment-form .submit:hover { filter: brightness(1.1); }

/* Responsive */
@media (max-width: 1024px) {
	.wrap.single-layout { grid-template-columns: 1fr; }
	.side-sticky { position: static; }
	.toc-widget { display: none; }
}
