/* LinkedIn Posts Widget — Frontend Styles */

.lpw-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 680px;
	margin: 0 auto;
}

.lpw-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
	color: #1d2226;
}

/* ── List ──────────────────────────────────── */
.lpw-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.lpw-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.lpw-item:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
}

/* ── Image ─────────────────────────────────── */
.lpw-image {
	overflow: hidden;
	max-height: 280px;
}

.lpw-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.lpw-item:hover .lpw-image img {
	transform: scale(1.02);
}

/* ── Body ──────────────────────────────────── */
.lpw-body {
	padding: 1rem 1.25rem 1.1rem;
}

.lpw-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #3d4043;
	margin: 0 0 0.85rem;
	white-space: pre-line;
}

/* ── Meta row ──────────────────────────────── */
.lpw-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
	font-size: 0.82rem;
	color: #666;
}

.lpw-date,
.lpw-likes {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.lpw-read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	color: #0a66c2;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s;
}

.lpw-read-more:hover {
	color: #004182;
	text-decoration: underline;
}

/* ── Footer ────────────────────────────────── */
.lpw-footer {
	margin-top: 1.5rem;
	text-align: center;
}

.lpw-follow-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.55rem 1.3rem;
	background: #0a66c2;
	color: #fff;
	border-radius: 24px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 0.2s ease;
}

.lpw-follow-btn:hover {
	background: #004182;
	color: #fff;
}

/* ── Empty state ───────────────────────────── */
.lpw-empty {
	color: #888;
	font-style: italic;
	padding: 1rem 0;
}

/* ── Dark-mode awareness ───────────────────── */
@media (prefers-color-scheme: dark) {
	.lpw-item {
		background: #1d2226;
		border-color: #38434f;
	}
	.lpw-title {
		color: #e7e9ea;
	}
	.lpw-text {
		color: #b0bec5;
	}
	.lpw-meta {
		color: #8899a6;
	}
	.lpw-read-more {
		color: #70b5f9;
	}
	.lpw-read-more:hover {
		color: #a8d4ff;
	}
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 480px) {
	.lpw-body {
		padding: 0.85rem 1rem;
	}
	.lpw-read-more {
		margin-left: 0;
	}
}
