/* Plausible Top Posts — Front-end styles
   These are intentionally minimal so themes can override them easily. */

.ptp-popular-posts {
	margin: 0 0 1.5em;
}

.ptp-heading {
	margin: 0 0 .75em;
	font-size: 1.1em;
}

.ptp-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ptp-item {
	display: flex;
	align-items: center;
	gap: .75em;
	padding: .5em 0;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.ptp-item:last-child {
	border-bottom: none;
}

.ptp-thumb-link {
	flex-shrink: 0;
}

.ptp-thumb {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}

.ptp-item-body {
	display: flex;
	flex-direction: column;
	gap: .2em;
	min-width: 0; /* allow text-overflow to work inside flex */
}

.ptp-title {
	font-weight: 600;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ptp-title:hover {
	text-decoration: underline;
}

.ptp-views {
	font-size: .8em;
	color: #666;
}

/* Error / empty state (admin-only) */
.ptp-error {
	color: #c00;
	border-left: 3px solid #c00;
	padding-left: .75em;
}
