/* ==========================================================================
   Post Navigation (.sentio-pn)
   ==========================================================================
   Extracted from frontend.css during the Batch 8 mechanical extraction
   (2026-04-18). Behavior-preserving.
   Diffs: Thumbnail Cards, Layouts, Hover Reveal, Progress Bar.
   ========================================================================== */

/* ── Base ── */
.sentio-pn {
	position: relative;
}

.sentio-pn--placeholder {
	padding: 30px;
	text-align: center;
	color: #94a3b8;
}

.sentio-pn__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.sentio-pn__item {
	position: relative;
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
	overflow: hidden;
}

.sentio-pn__item--empty {
	pointer-events: none;
}

.sentio-pn__item--prev {
	text-align: left;
}

.sentio-pn__item--next {
	text-align: right;
	justify-content: flex-end;
}

/* ── Content ── */
.sentio-pn__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 2;
}

.sentio-pn__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
	transition: color 0.2s;
}

.sentio-pn__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	transition: color 0.2s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sentio-pn__date {
	font-size: 13px;
	color: #94a3b8;
}

/* ── Arrows ── */
.sentio-pn__arrow {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	transition: transform 0.25s;
}

.sentio-pn__arrow svg {
	display: block;
	transition: fill 0.2s;
}

.sentio-pn__item--prev:hover .sentio-pn__arrow--prev {
	transform: translateX(-4px);
}

.sentio-pn__item--next:hover .sentio-pn__arrow--next {
	transform: translateX(4px);
}

/* ═══ Diff #1 — Thumbnail Preview (Card layout) ═══ */
.sentio-pn__thumb {
	flex-shrink: 0;
	overflow: hidden;
	line-height: 0;
	position: relative;
	z-index: 2;
}

.sentio-pn__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s;
}

.sentio-pn__item:hover .sentio-pn__thumb img {
	transform: scale(1.08);
}

/* ═══ Layout: Minimal ═══ */
.sentio-pn--minimal .sentio-pn__item {
	padding: 16px 0;
	border-top: 1px solid #e2e8f0;
}

.sentio-pn--minimal .sentio-pn__item--prev {
	border-right: 1px solid #e2e8f0;
	padding-right: 20px;
}

.sentio-pn--minimal .sentio-pn__item--next {
	padding-left: 20px;
}

.sentio-pn--minimal .sentio-pn__item:hover .sentio-pn__title {
	color: #6366f1;
}

/* ═══ Layout: Card ═══ */
.sentio-pn--card .sentio-pn__item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	gap: 14px;
}

.sentio-pn--card .sentio-pn__item:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.sentio-pn--card .sentio-pn__thumb {
	border-radius: 8px;
}

/* ═══ Layout: Magazine — Diff #1+2 combined ═══ */
.sentio-pn--magazine .sentio-pn__item {
	background-size: cover;
	background-position: center;
	min-height: 200px;
	padding: 24px;
	color: #ffffff;
}

.sentio-pn--magazine .sentio-pn__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	transition: background 0.35s;
	z-index: 1;
}

.sentio-pn--magazine .sentio-pn__item:hover .sentio-pn__overlay {
	background: rgba(0, 0, 0, 0.35);
}

.sentio-pn--magazine .sentio-pn__label {
	color: rgba(255, 255, 255, 0.7);
}

.sentio-pn--magazine .sentio-pn__title {
	color: #ffffff;
	font-size: 20px;
}

.sentio-pn--magazine .sentio-pn__date {
	color: rgba(255, 255, 255, 0.7);
}

.sentio-pn--magazine .sentio-pn__arrow svg {
	fill: #ffffff;
}

/* ═══ Layout: Stacked ═══ */
.sentio-pn--stacked .sentio-pn__grid {
	grid-template-columns: 1fr;
}

.sentio-pn--stacked .sentio-pn__item {
	flex-direction: column;
	align-items: stretch;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	gap: 12px;
}

.sentio-pn--stacked .sentio-pn__item--next {
	text-align: left;
	justify-content: flex-start;
}

.sentio-pn--stacked .sentio-pn__item--next .sentio-pn__content {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.sentio-pn--stacked .sentio-pn__item--prev .sentio-pn__content {
	flex-direction: row;
	align-items: center;
}

.sentio-pn--stacked .sentio-pn__thumb--stacked {
	width: 100%;
	height: 140px;
	border-radius: 8px;
	overflow: hidden;
}

.sentio-pn--stacked .sentio-pn__item:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ═══ Diff #3 — Hover Slide-Reveal ═══ */
.sentio-pn__reveal {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
	z-index: 10;
	pointer-events: none;
}

.sentio-pn__item:hover .sentio-pn__reveal {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.sentio-pn__reveal-thumb {
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	line-height: 0;
}

.sentio-pn__reveal-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 1;
}

.sentio-pn__reveal-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sentio-pn__reveal-date {
	font-size: 12px;
	color: #94a3b8;
}

.sentio-pn__reveal-excerpt {
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
	color: #475569;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Magazine layout reveal — light text on dark */
.sentio-pn--magazine .sentio-pn__reveal {
	background: rgba(0, 0, 0, 0.75);
	border-top-color: rgba(255, 255, 255, 0.1);
}

.sentio-pn--magazine .sentio-pn__reveal-excerpt {
	color: rgba(255, 255, 255, 0.85);
}

.sentio-pn--magazine .sentio-pn__reveal-date {
	color: rgba(255, 255, 255, 0.6);
}

/* ═══ Diff #4 — Reading Progress Bar ═══ */
.sentio-pn__progress {
	margin-bottom: 16px;
}

.sentio-pn__progress:last-child {
	margin-bottom: 0;
	margin-top: 16px;
}

.sentio-pn__progress-track {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.sentio-pn__progress-bar {
	height: 100%;
	width: 0;
	transition: width 0.1s linear;
}

.sentio-pn__progress-label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
	transition: opacity 0.4s;
}

.sentio-pn__progress-up-next {
	font-weight: 600;
}

.sentio-pn__progress-next-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.sentio-pn__grid {
		grid-template-columns: 1fr;
	}

	.sentio-pn__item--next {
		text-align: left;
		justify-content: flex-start;
	}

	.sentio-pn--magazine .sentio-pn__title {
		font-size: 16px;
	}

	.sentio-pn--magazine .sentio-pn__item {
		min-height: 140px;
	}
}

