/*== base ==
Stil simplu, retro, fara bevel.
*/
:root {
	--bg: #e9fcfd;
	--panel: #fff;
	--ink: #111;

	--c-title: #424BFF;
	--c-time: #A0FFEA;
	--c-id: #FF8F54;
	--c-name: #FF2D54;

	--border: 2px;
	--gap: 20px;
	--radius: 10px;
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: system-ui, sans-serif;
	background: var(--bg);
	color: var(--ink);
}

/*== header ==*/
.site-header {
	text-align: center;
	padding: 16px;
}

.logo {
	max-width: 400px;
	width: 100%;
	height: auto;
}

/*== layout ==
Trei coloane: sidebar / content / spacer.
*/
.layout {
	max-width: 1200px;
	margin: 20px auto;
	display: grid;
	grid-template-columns: 200px 1fr 200px;
	gap: var(--gap);
	align-items: start;
	padding: 0 12px;
}

/*== sidebar ==*/
.sidebar {
	width: 160px;
	background: var(--panel);
	border: var(--border) solid var(--ink);
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-self: start;
}

.sidebar a {
	text-decoration: none;
	font-weight: 700;
	color: var(--ink);
	border: var(--border) solid var(--ink);
	padding: 8px 12px;
	text-align: center;
}

.sidebar a:hover {
	background: #FFE770;
}

/*== content ==*/
#content {
	background: var(--panel);
	border: var(--border) solid var(--ink);
	padding: 18px;
	min-height: 400px;

	justify-self: center;
	width: 100%;
	max-width: 900px;
}

.rightSpacer {
	width: 200px;
}

/*== footer ==*/
.footer {
	text-align: center;
	padding: 24px 12px;
	opacity: 0.7;
}

/*== cards ==
Spatiu intre postari.
*/
.threadCard,
.reply,
.threadHeaderBox {
	margin: 14px 0;
	padding: 12px 14px;
	border: var(--border) solid var(--ink);
	background: var(--panel);
}

.threadCard:first-child,
.reply:first-child,
.threadHeaderBox:first-child {
	margin-top: 0;
}

/*== imageboard header ==
Titlu, nume, timestamp, id pe acelasi rand.
*/
.postHeader {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
	line-height: 1.2;
}

.postTitle {
	color: var(--c-title);
	font-weight: 800;
}

.postName {
	color: var(--c-name);
	font-weight: 800;
}

.postTime {
	color: var(--c-time);
	font-weight: 700;
}

.postId {
	color: var(--c-id);
	font-weight: 700;
}

/*== body text ==*/
.postBody {
	white-space: pre-wrap;
	word-break: break-word;
}

/*== thread footer row ==
Un singur rand: stanga link, dreapta reply count.
*/
.threadFooterRow {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 12px;
	padding-top: 8px;
	border-top: 1px solid #111;
}

.openThread {
	display: inline-block;
	text-decoration: none;
	font-weight: 800;
	color: var(--ink);
	border: var(--border) solid var(--ink);
	padding: 6px 10px;
}

.openThread:hover {
	background: #ffd400;
}

.replyCount {
	color: #000;
	font-weight: 800;
	font-size: 0.95rem;
}

/*== misc ==*/
.meta {
	opacity: 0.8;
}

/*== responsive ==*/
@media (max-width: 900px) {
	.layout {
		grid-template-columns: 1fr;
	}

	.sidebar {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.sidebar a {
		flex: 1;
		min-width: 120px;
	}

	.rightSpacer {
		display: none;
	}
}