/* =====================================================
   NextWave — Single Post Styles
   ===================================================== */

/* ── Hero adjustments for single post ───────────────── */

.nwb-hero--single {
	padding-bottom: 72px;
}

/* Post title can be longer — reduce size a bit */
.nwb-hero__title--post {
	font-size: clamp(1.6rem, 4vw, 2.6rem) !important;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

/* Meta row: date · author · reading time */
.nwb-hero__post-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-bottom: 22px;
}

.nwb-hero__post-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75);
}

.nwb-hero__post-meta-item svg {
	color: var(--nw-cyan);
	flex-shrink: 0;
}

.nwb-hero__post-meta-sep {
	color: rgba(255, 255, 255, 0.3);
	font-size: 1rem;
}

/* ── Single Post Article ─────────────────────────────── */

.nws-post {
	background: none;
}

/* ── Featured Image ──────────────────────────────────── */

.nws-post__thumb {
	width: 100%;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-radius: var(--nw-radius);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.13), 0 16px 48px rgba(0, 0, 0, 0.08);
	margin-bottom: 36px;
}

.nws-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Post Content ────────────────────────────────────── */

.nws-post__content {
	padding: 0 0 32px;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--nw-text-body);
}

/* Paragraphs */
.nws-post__content p {
	margin-bottom: 1.4em;
}

.nws-post__content p:last-child {
	margin-bottom: 0;
}

/* Headings */
.nws-post__content h2,
.nws-post__content h3,
.nws-post__content h4 {
	color: var(--nw-text-h);
	font-weight: 800;
	line-height: 1.2;
	margin: 1.8em 0 0.6em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.nws-post__content h2 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
.nws-post__content h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.nws-post__content h4 { font-size: 1.1rem; }

/* Links */
.nws-post__content a {
	color: var(--nw-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--nw-speed) var(--nw-ease);
}

.nws-post__content a:hover {
	color: var(--nw-cyan);
}

/* Lists */
.nws-post__content ul,
.nws-post__content ol {
	padding-left: 1.5em;
	margin-bottom: 1.4em;
}

.nws-post__content ul { list-style: disc; }
.nws-post__content ol { list-style: decimal; }

.nws-post__content li {
	margin-bottom: 0.4em;
	line-height: 1.7;
}

/* Blockquote */
.nws-post__content blockquote,
.nws-post__content .wp-block-quote {
	margin: 1.8em 0;
	padding: 20px 28px;
	border-left: 4px solid var(--nw-blue);
	background: var(--nw-off-white);
	border-radius: 0 var(--nw-radius-sm) var(--nw-radius-sm) 0;
	font-size: 1.05rem;
	color: var(--nw-text-h);
	font-style: italic;
}

.nws-post__content blockquote p,
.nws-post__content .wp-block-quote p {
	margin-bottom: 0;
}

/* Inline code */
.nws-post__content code {
	font-family: 'Fira Code', 'Courier New', monospace;
	font-size: 0.875em;
	background: var(--nw-off-white);
	color: var(--nw-blue);
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid var(--nw-border);
}

/* Code blocks */
.nws-post__content pre {
	background: var(--nw-navy);
	color: rgba(255, 255, 255, 0.9);
	padding: 20px 24px;
	border-radius: var(--nw-radius);
	overflow-x: auto;
	margin: 1.6em 0;
	font-size: 0.875rem;
	line-height: 1.7;
}

.nws-post__content pre code {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
}

/* Images inside content */
.nws-post__content img,
.nws-post__content .wp-block-image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--nw-radius-sm);
	margin: 1.4em 0;
}

.nws-post__content figure {
	margin: 1.6em 0;
}

.nws-post__content figcaption {
	font-size: 0.8125rem;
	color: var(--nw-text-muted);
	text-align: center;
	margin-top: 8px;
	font-style: italic;
}

/* Tables */
.nws-post__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 0.9rem;
}

.nws-post__content th,
.nws-post__content td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--nw-border);
}

.nws-post__content th {
	background: var(--nw-off-white);
	font-weight: 700;
	color: var(--nw-text-h);
}

/* Horizontal rule */
.nws-post__content hr {
	border: none;
	border-top: 1px solid var(--nw-border);
	margin: 2em 0;
}

/* ── Post Tags ───────────────────────────────────────── */

.nws-post__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 0 28px;
}

.nws-post__tags-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--nw-text-muted);
	margin-right: 4px;
}

.nws-tag {
	display: inline-block;
	padding: 5px 14px;
	border: 1px solid var(--nw-border);
	border-radius: 20px;
	font-size: 0.8125rem;
	color: var(--nw-text-body);
	text-decoration: none;
	background: var(--nw-off-white);
	transition: background var(--nw-speed) var(--nw-ease), color var(--nw-speed) var(--nw-ease), border-color var(--nw-speed) var(--nw-ease);
}

.nws-tag:hover {
	background: var(--nw-blue);
	color: var(--nw-white);
	border-color: var(--nw-blue);
}

/* ── Author Box ──────────────────────────────────────── */

.nws-post__author-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 0 0 0;
	padding: 28px 32px;
	background: var(--nw-white);
	border-radius: var(--nw-radius);
	border: 1px solid var(--nw-border);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nws-post__author-avatar {
	flex-shrink: 0;
}

.nws-post__avatar-img {
	width: 72px !important;
	height: 72px !important;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.nws-post__author-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nws-post__author-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nw-text-muted);
	font-weight: 600;
}

.nws-post__author-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--nw-text-h);
}

.nws-post__author-bio {
	font-size: 0.875rem;
	color: var(--nw-text-body);
	line-height: 1.6;
	margin: 0;
}

/* ── Post Navigation ─────────────────────────────────── */

.nws-post__nav {
	padding: 28px 0 8px;
}

.nws-post__nav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.nws-post__nav .nav-previous,
.nws-post__nav .nav-next {
	display: flex;
}

.nws-post__nav .nav-next {
	justify-content: flex-end;
}

.nws-post__nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	background: var(--nw-off-white);
	border: 1px solid var(--nw-border);
	border-radius: var(--nw-radius-sm);
	text-decoration: none;
	transition: border-color var(--nw-speed) var(--nw-ease), background var(--nw-speed) var(--nw-ease);
	max-width: 100%;
}

.nws-post__nav a:hover {
	border-color: var(--nw-blue);
	background: var(--nw-white);
}

.nws-post__nav .nav-next a {
	text-align: right;
}

.nws-post__nav-dir {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nw-blue);
}

.nws-post__nav-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--nw-text-h);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 640px) {
	.nws-post__content {
		padding: 28px 20px 24px;
	}

	.nws-post__tags {
		padding: 0 20px 20px;
	}

	.nws-post__author-box {
		margin: 0 20px;
		padding: 20px;
		flex-direction: column;
	}

	.nws-post__nav {
		padding: 20px 20px 28px;
	}

	.nws-post__nav .nav-links {
		grid-template-columns: 1fr;
	}

	.nwb-hero__post-meta {
		gap: 6px 10px;
	}
}
