/* Navigation Styles */
.site-header {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(55, 53, 47, 0.09);
	padding: 1rem 0;
	margin: -2em -2em 2em -2em;
	z-index: 100;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media only screen {
	.site-header {
		margin-left: 0;
		margin-right: 0;
		padding-left: 2em;
		padding-right: 2em;
	}
}

.nav-container {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.nav-logo {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	color: rgb(55, 53, 47);
	transition: opacity 0.2s;
}

.nav-logo:hover {
	opacity: 0.7;
}

.nav-menu {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.nav-menu li {
	margin: 0;
}

.nav-link {
	text-decoration: none;
	color: rgb(55, 53, 47);
	font-size: 0.95rem;
	opacity: 0.8;
	transition: opacity 0.2s;
	position: relative;
}

.nav-link:hover {
	opacity: 1;
}

.nav-link.active {
	opacity: 1;
	font-weight: 500;
}

.nav-link.active::after {
	content: '';
	position: absolute;
	bottom: -0.5rem;
	left: 0;
	right: 0;
	height: 2px;
	background: rgb(55, 53, 47);
}

.nav-search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nav-search-input {
	border: 1px solid rgba(55, 53, 47, 0.2);
	border-radius: 4px;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-family: inherit;
	background: rgba(255, 255, 255, 0.8);
	color: rgb(55, 53, 47);
	width: 200px;
	transition: border-color 0.2s, width 0.2s;
}

.nav-search-input:focus {
	outline: none;
	border-color: rgb(55, 53, 47);
	width: 250px;
}

.nav-search-input::placeholder {
	color: rgba(55, 53, 47, 0.4);
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	font-size: 1.5rem;
	color: rgb(55, 53, 47);
}

/* Site Footer */
.site-footer {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(55, 53, 47, 0.09);
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: rgba(55, 53, 47, 0.6);
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	text-decoration: none;
	color: rgba(55, 53, 47, 0.6);
	transition: opacity 0.2s;
}

.footer-links a:hover {
	opacity: 1;
	color: rgb(55, 53, 47);
}

/* Reading Time */
.reading-time {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: rgba(55, 53, 47, 0.6);
	margin-left: 1rem;
}

.reading-time::before {
	content: '⏱';
	font-size: 0.875rem;
}

/* Related Posts */
.related-posts {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(55, 53, 47, 0.09);
}

.related-posts h3 {
	font-size: 1.25rem;
	margin-bottom: 1.5rem;
}

.related-posts-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.related-posts-list li {
	list-style: none !important;
	padding-left: 0;
}

.related-post-item {
	border: 1px solid rgba(55, 53, 47, 0.09);
	border-radius: 4px;
	padding: 1.25rem;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.related-post-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.related-post-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.related-post-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: rgb(55, 53, 47);
	line-height: 1.4;
	text-align: left;
	flex-grow: 1;
}

.related-post-date {
	font-size: 0.875rem;
	color: rgba(55, 53, 47, 0.6);
	text-align: left;
	margin-top: auto;
}

/* Search Highlighting */
.search-highlight {
	background-color: rgba(255, 235, 59, 0.4);
	font-weight: 600;
	padding: 0.1em 0.2em;
	border-radius: 2px;
}

/* Breadcrumbs */
.breadcrumbs {
	font-size: 0.875rem;
	color: rgba(55, 53, 47, 0.6);
	margin-bottom: 1rem;
}

.breadcrumbs a {
	text-decoration: none;
	color: rgba(55, 53, 47, 0.6);
	transition: color 0.2s;
}

.breadcrumbs a:hover {
	color: rgb(55, 53, 47);
}

.breadcrumbs-separator {
	margin: 0 0.5rem;
	opacity: 0.4;
}

/* Post Navigation */
.post-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(55, 53, 47, 0.09);
	gap: 1rem;
}

.post-nav-link {
	text-decoration: none;
	color: rgb(55, 53, 47);
	flex: 1;
	padding: 1rem;
	border: 1px solid rgba(55, 53, 47, 0.09);
	border-radius: 4px;
	transition: all 0.2s;
}

.post-nav-link:hover {
	background: rgba(55, 53, 47, 0.03);
	border-color: rgba(55, 53, 47, 0.2);
}

.post-nav-label {
	font-size: 0.75rem;
	color: rgba(55, 53, 47, 0.6);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

.post-nav-title {
	font-weight: 500;
	font-size: 0.95rem;
}

.post-nav-link.next {
	text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.nav-menu {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		padding-top: 1rem;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-search {
		width: 100%;
	}

	.nav-search-input {
		width: 100%;
	}

	.nav-search-input:focus {
		width: 100%;
	}

	.footer-content {
		flex-direction: column;
		align-items: flex-start;
	}

	.related-posts-list {
		grid-template-columns: 1fr;
	}

	.post-navigation {
		flex-direction: column;
	}

	.post-nav-link.next {
		text-align: left;
	}
}

