/**
 * Widget: HL Latest Insights (Posts + Empty State)
 *
 * Strictly uses CSS Custom Properties from assets/css/variables.css.
 *
 * @package HarrisLieberman
 */

.hl-latest-insights {
	background-color: var(--hl-color-bg-light);
	padding: var(--hl-space-20) 120px;
}

.hl-latest-insights__header {
	text-align: center;
	margin-bottom: var(--hl-space-8);
}

.hl-latest-insights__tag {
	display: inline-block;
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-xs);
	font-weight: var(--hl-fw-semibold);
	letter-spacing: 2px;
	color: var(--hl-color-accent);
	text-transform: uppercase;
	margin-bottom: var(--hl-space-1);
}

.hl-latest-insights__title {
	font-family: var(--hl-font-heading);
	font-size: var(--hl-fs-3xl);
	font-weight: var(--hl-fw-bold);
	color: var(--hl-color-primary);
	line-height: 1.2;
	margin: 0;
}

.hl-latest-insights__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	max-width: 1100px;
	margin: 0 auto;
}

.hl-post-card {
	background-color: var(--hl-color-white);
	border-radius: var(--hl-radius-md);
	overflow: hidden;
	box-shadow: var(--hl-shadow-card);
	transition: transform var(--hl-transition-fast), box-shadow var(--hl-transition-fast);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.hl-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hl-shadow-card-hover);
	text-decoration: none;
}

.hl-post-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.hl-post-card__thumb-placeholder {
	width: 100%;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--hl-color-bg-topbar);
	font-size: var(--hl-fs-3xl);
	color: var(--hl-color-border-dark);
}

.hl-post-card__body {
	padding: var(--hl-space-6);
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.hl-post-card__tag {
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-2xs);
	font-weight: var(--hl-fw-semibold);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--hl-color-accent);
	line-height: 1.2;
}

.hl-post-card__title {
	font-family: var(--hl-font-heading);
	font-size: var(--hl-fs-md);
	font-weight: var(--hl-fw-bold);
	color: var(--hl-color-primary);
	line-height: 1.3;
	margin: 0;
}

.hl-post-card__excerpt {
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-sm);
	color: var(--hl-color-text-muted);
	line-height: 1.6;
	flex: 1;
	margin: 0;
}

.hl-post-card__meta {
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-xs);
	color: var(--hl-color-text-subtle);
	line-height: 1.4;
}

.hl-post-card__link {
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-xs-md);
	font-weight: var(--hl-fw-semibold);
	color: var(--hl-color-accent);
	transition: color var(--hl-transition-fast);
	line-height: 1.4;
}

.hl-post-card:hover .hl-post-card__link {
	color: var(--hl-color-accent-hover);
}

.hl-latest-insights__cta {
	text-align: center;
	margin-top: var(--hl-space-8);
}

.hl-latest-insights a.hl-latest-insights__btn {
	display: inline-block;
	padding: 14px var(--hl-space-8);
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-sm);
	font-weight: var(--hl-fw-semibold);
	letter-spacing: 0.3px;
	border-radius: var(--hl-radius-sm);
	border: none;
	background-color: var(--hl-color-accent);
	color: var(--hl-color-white);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--hl-transition-fast), color var(--hl-transition-fast);
}

.hl-latest-insights a.hl-latest-insights__btn:hover,
.hl-latest-insights a.hl-latest-insights__btn:focus {
	background-color: var(--hl-color-accent-hover);
	color: var(--hl-color-white);
	text-decoration: none;
}

/* Clean Empty Posts State */
.hl-posts-empty {
	max-width: 560px;
	background-color: var(--hl-color-white);
	border: 1px dashed var(--hl-color-border-dark);
	border-radius: var(--hl-radius-md);
	padding: var(--hl-space-12) var(--hl-space-8);
}

.hl-posts-empty__icon {
	font-size: var(--hl-fs-3xl);
	color: var(--hl-color-accent);
	margin-bottom: var(--hl-space-4);
}

.hl-posts-empty__title {
	font-family: var(--hl-font-heading);
	font-size: var(--hl-fs-xl);
	color: var(--hl-color-text-primary);
	margin-bottom: var(--hl-space-2);
}

.hl-posts-empty__desc {
	font-size: var(--hl-fs-sm);
	color: var(--hl-color-text-muted);
	margin: 0;
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
	.hl-latest-insights {
		padding: 60px 40px;
	}

	.hl-latest-insights__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile */
@media (max-width: 768px) {
	.hl-latest-insights {
		padding: var(--hl-space-12) 20px;
	}

	.hl-latest-insights__grid {
		grid-template-columns: 1fr;
	}
}
