/* Pulptastic single-post engagement (is_singular('post')) */

/* ---------- Reading time badge (above hero title) ---------- */

.pulp-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280;
}

.pulp-reading-time svg {
	flex: 0 0 auto;
}

/* ---------- Share buttons ---------- */

.pulp-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 34px 0 8px;
	padding: 16px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.pulp-share-label {
	margin-right: auto;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #374151;
}

.pulp-share-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	color: #fff;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pulp-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px -6px rgba(15, 23, 42, 0.4);
	color: #fff;
}

.pulp-share-facebook { background: #1877f2; }
.pulp-share-x        { background: #0f1419; }
.pulp-share-whatsapp { background: #25d366; }
.pulp-share-copy     { background: #6b7280; }

.pulp-copy-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	padding: 5px 10px;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.pulp-share-copy.is-copied .pulp-copy-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
	.pulp-share-label {
		flex-basis: 100%;
		margin-bottom: 2px;
	}
}

/* ---------- Related posts ---------- */

.pulp-related {
	margin-top: 36px;
}

.pulp-related-title {
	position: relative;
	margin: 0 0 18px;
	padding-left: 14px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #111827;
}

.pulp-related-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 5px;
	border-radius: 3px;
	background: linear-gradient(180deg, #0f2027, #2c5364);
}

.pulp-related-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 640px) {
	.pulp-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.pulp-related-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Card styles shared with the magazine template (this stylesheet is
   loaded standalone on single posts, so they are repeated here). */

.pulp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 6px 18px -8px rgba(15, 23, 42, 0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pulp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08), 0 18px 36px -12px rgba(15, 23, 42, 0.22);
}

.pulp-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0f172a;
}

.pulp-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.pulp-card:hover .pulp-card-media img {
	transform: scale(1.06);
}

.pulp-thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
}

.pulp-chip {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 6px 11px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.pulp-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pulp-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.pulp-card-title a {
	color: #111827;
	text-decoration: none;
}

.pulp-card-title a:hover {
	color: #2563eb;
}

.pulp-meta {
	display: block;
	margin-top: auto;
	padding-top: 8px;
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
	.pulp-share-btn,
	.pulp-copy-tooltip,
	.pulp-card,
	.pulp-card-media img {
		transition: none;
	}
}
