/*
Theme Name: Happy Simming Forum Style
Template: generatepress
Description: GeneratePress child theme that displays each post as a forum thread, with subheading sections shown as replies from different simulated forum users.
Version: 1.0
Author: Happy Simming
*/

/* ===== Real-author byline (kept in the HTML for search engines, but
   visually hidden per site owner's request — see chat note about the
   trust/SEO trade-off if you ever want it visible again) ===== */
.hs-real-byline {
	font-size: 0.85rem;
	color: #7a7f85;
	margin: 0 0 0.75rem;
	display: none;
}

.hs-real-byline strong {
	color: #4a4f55;
	font-weight: 600;
}

/* ===== Hide GeneratePress's default "Date by Author" line on single posts
   (the theme's own byline above replaces it visually, and both are now
   hidden together) ===== */
.single-post .entry-meta {
	display: none;
}

/* ===== Forum thread wrapper ===== */
.hs-forum-thread {
	margin: 2.5rem 0;
	border: 1px solid #dfe3e6;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	font-family: inherit;
}

.hs-forum-thread-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #2f3e46;
	color: #fff;
	padding: 0.7rem 1.1rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hs-forum-badge {
	font-weight: 700;
}

.hs-forum-reply-count {
	opacity: 0.85;
}

/* ===== Individual forum post row ===== */
.hs-forum-post {
	display: flex;
	border-top: 1px solid #e9ebee;
}

.hs-forum-post:first-child {
	border-top: none;
}

.hs-forum-post-side {
	flex: 0 0 150px;
	background: #f6f7f9;
	border-right: 1px solid #e9ebee;
	padding: 1.1rem 0.75rem;
	text-align: center;
}

.hs-op .hs-forum-post-side {
	background: #eaf4ee;
}

.hs-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.hs-forum-username {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	color: #222;
	word-break: break-word;
}

.hs-forum-role {
	display: block;
	font-size: 0.72rem;
	color: #8a8f98;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.hs-forum-post-main {
	flex: 1;
	padding: 1.1rem 1.3rem;
	min-width: 0;
}

.hs-forum-post-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.78rem;
	color: #9a9fa6;
	border-bottom: 1px dashed #ebedf0;
	padding-bottom: 0.5rem;
	margin-bottom: 0.85rem;
}

.hs-forum-post-number {
	font-weight: 700;
	color: #6b7178;
}

.hs-forum-topic-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #6b7178;
	background: #eef0f2;
	border-radius: 4px;
	padding: 0.15rem 0.5rem;
	margin-bottom: 0.7rem;
}

.hs-forum-post-body p {
	margin: 0 0 1em;
}

.hs-forum-post-body p:last-child {
	margin-bottom: 0;
}

.hs-forum-post-body h2,
.hs-forum-post-body h3 {
	margin-top: 0;
	font-size: 1.1rem;
}

.hs-forum-post-body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Slight tint so replies read as distinct from the OP */
.hs-reply .hs-forum-post-main {
	background: #fbfcfd;
}

/* ===== Responsive: stack avatar row above content on small screens ===== */
@media (max-width: 640px) {
	.hs-forum-post {
		flex-direction: column;
	}

	.hs-forum-post-side {
		flex-direction: row;
		align-items: center;
		gap: 0.6rem;
		text-align: left;
		border-right: none;
		border-bottom: 1px solid #e9ebee;
		padding: 0.75rem 1rem;
	}

	.hs-avatar {
		width: 38px;
		height: 38px;
		font-size: 1rem;
		margin-bottom: 0;
	}

	.hs-forum-username,
	.hs-forum-role {
		display: inline;
		margin: 0;
	}

	.hs-forum-role::before {
		content: "· ";
	}
}
