/**
 * Top Posts Left Thumbs Styles
 * Modern flexbox layout with clean styling.
 */

.tptn-left-thumbs {
	/* Custom properties for easy theming. */
	--tptn-gap: 0.625rem;
	--tptn-border-radius: 8px;
	--tptn-thumb-border: #ccc;
	--tptn-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	--tptn-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);
	--tptn-transition: 0.2s ease;
}

.tptn-left-thumbs ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.tptn-left-thumbs ul li {
	display: flex;
	gap: var(--tptn-gap);
	align-items: flex-start;
	margin-bottom: 1.25rem;
	padding: 0 !important;
	background: none;
	list-style: none;
}

.tptn-left-thumbs ul li:last-child {
	margin-bottom: 0;
}

.tptn-left-thumbs .tptn_thumb {
	flex-shrink: 0;
	display: block;
	padding: 0.25rem !important;
	border: 1px solid var(--tptn-thumb-border);
	border-radius: var(--tptn-border-radius);
	box-shadow: var(--tptn-shadow);
	transition: transform var(--tptn-transition), box-shadow var(--tptn-transition);
	will-change: transform;
	width: min(var(--tptn-thumb-width, 9999px), 100%);
	height: var(--tptn-thumb-height, auto);
	max-width: 100%;
}

.tptn-left-thumbs ul li:hover .tptn_thumb {
	transform: scale(1.03);
	box-shadow: var(--tptn-shadow-hover);
}

.tptn-left-thumbs img.tptn_thumb {
	width: min(var(--tptn-thumb-width, 9999px), 100%) !important;
	height: var(--tptn-thumb-height, auto) !important;
	max-width: 100%;
	display: block;
	object-fit: cover;
	aspect-ratio: var(--tptn-thumb-aspect-ratio, auto);
	border-radius: calc(var(--tptn-border-radius) * 0.75);
}

.tptn-left-thumbs .tptn_after_thumb {
	flex: 1;
	min-width: 0;
}

.tptn-left-thumbs a.tptn_link {
	text-decoration: none;
}

.tptn-left-thumbs .tptn_title {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.tptn-left-thumbs a.tptn_link:hover .tptn_title {
	text-decoration: underline;
}

.tptn-left-thumbs .tptn_excerpt {
	display: block;
	font-size: 0.9em;
	line-height: 1.4;
	opacity: 0.85;
}

/* Reduced motion for accessibility. */
@media (prefers-reduced-motion: reduce) {
	.tptn-left-thumbs .tptn_thumb {
		transition: none;
		will-change: auto;
	}

	.tptn-left-thumbs ul li:hover .tptn_thumb {
		transform: none;
	}
}