/* ==========================================================================
   Post view counter - child theme styles.
   Follows the Blocksy entry-meta design (inherits size/colour/separators)
   and adapts the Benqu reference (eye icon + compact count + "Views").
   Loaded after dark-mode.css so it inherits the correct tokens in both modes.
   ========================================================================== */

/* The item injected into Blocksy meta <ul> lists. */
.np-post-views-item {
	display: inline-flex;
	align-items: center;
}

.np-post-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: inherit;
	font-size: inherit;
	line-height: 1;
}

/* Muted icon so the number reads as the primary information. */
.np-post-views__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: inherit;
	opacity: 0.72;
}

.np-post-views__svg {
	display: block;
	flex: none;
	width: 15px;
	height: 15px;
	/* Optical alignment: the Bootstrap eye glyph sits ~2px higher than the
	   digit's visual centre, so nudge it down to centre with the count. */
	transform: translateY(2px);
}

.np-post-views__count {
	font-variant-numeric: tabular-nums;
}

/* Compact on cards; the "Views" label is kept on single posts only. */
.entry-card .np-post-views__label,
.ct-related-posts .np-post-views__label {
	display: none;
}

/* Single post: keep the label for clarity. */
.hero-section .np-post-views__label,
.entry-header .np-post-views__label,
.entry-content .np-post-views__label {
	display: inline;
}

/* Small screens: reduce the gap and icon slightly. */
@media (max-width: 690px) {
	.np-post-views {
		gap: 4px;
	}

	.np-post-views__icon,
	.np-post-views__svg {
		width: 14px;
		height: 14px;
	}
}

/* Dark mode: the icon inherits the meta text colour, which Blocksy already
   swaps through the palette tokens - no extra rules required here. */

/* --------------------------------------------------------------------------
   Reading time - mirrors the view-counter item so the clock icon aligns with
   the eye icon and the count reads the same in both themes.
   -------------------------------------------------------------------------- */

.np-reading-time-item {
	display: inline-flex;
	align-items: center;
}

.np-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: inherit;
	font-size: inherit;
	line-height: 1;
}

.np-reading-time__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: inherit;
	opacity: 0.72;
}

.np-reading-time__svg {
	display: block;
	flex: none;
	width: 15px;
	height: 15px;
	/* Same optical nudge as the eye icon so both glyphs sit level. */
	transform: translateY(2px);
}

.np-reading-time__count {
	font-variant-numeric: tabular-nums;
}

/* Compact on cards; the "min read" label is kept on single posts only. */
.entry-card .np-reading-time__label,
.ct-related-posts .np-reading-time__label {
	display: none;
}

/* Single post: keep the label for clarity. */
.hero-section .np-reading-time__label,
.entry-header .np-reading-time__label,
.entry-content .np-reading-time__label {
	display: inline;
}

/* Small screens: reduce the gap and icon slightly. */
@media (max-width: 690px) {
	.np-reading-time {
		gap: 4px;
	}

	.np-reading-time__icon,
	.np-reading-time__svg {
		width: 14px;
		height: 14px;
	}
}

/* --------------------------------------------------------------------------
   Project date (2026-12-04) - same item design as views / reading time.
   -------------------------------------------------------------------------- */

.np-project-date-item {
	display: inline-flex;
	align-items: center;
}

.np-project-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: inherit;
	font-size: inherit;
	line-height: 1;
}

.np-project-date__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: inherit;
	opacity: 0.72;
}

.np-project-date__svg {
	display: block;
	flex: none;
	width: 15px;
	height: 15px;
	transform: translateY(2px);
}

@media (max-width: 690px) {
	.np-project-date {
		gap: 4px;
	}

	.np-project-date__icon,
	.np-project-date__svg {
		width: 14px;
		height: 14px;
	}
}
