/**
 * 3MW Insights Frontend Styles
 *
 * Styles for insights display and Featured Insights block.
 *
 * @package TMW_Insights
 * @since 1.0.0
 */

/* Card fallback styles (when Card_System not available) */
.insight-card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-bg-secondary);
}

.insight-card__image {
	overflow: hidden;
}

.insight-card__image a {
	display: block;
}

.insight-card__image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform var(--transition-normal);
}

.insight-card:hover .insight-card__image img {
	transform: scale(1.05);
}

.insight-card__content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: var(--space-md);
}

.insight-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-bottom: var(--space-sm);
}

.insight-card__badges .badge {
	display: inline-block;
	padding: var(--space-2xs) var(--space-xs);
	font-size: var(--font-size-small);
	font-weight: var(--font-weight-semibold);
	color: var(--color-white);
	background-color: var(--color-primary);
	border-radius: var(--radius-badge);
}

.insight-card__badges .badge-featured {
	background-color: var(--color-accent);
}

/* Card title - wrapper styling only, let FSE handle typography */
.insight-card__title {
	margin: 0 0 var(--space-sm);
}

.insight-card__title a {
	color: var(--color-text-primary);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition-normal);
}

.insight-card__title a:hover,
.insight-card__title a:focus {
	border-bottom-color: currentcolor;
}

.insight-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-bottom: var(--space-sm);
	font-size: var(--font-size-small);
	color: var(--color-text-secondary);
}

.insight-card__date::after {
	content: "•";
	margin-left: var(--space-xs);
}

.insight-card__author {
	font-weight: var(--font-weight-medium);
}

.insight-card__excerpt {
	flex-grow: 1;
	margin-bottom: var(--space-md);
	color: var(--color-text-primary);
}

/* Single page */
.single-insights .post-meta .icon {
	width: 16px;
	height: 16px;
}

/* Author bio */
.insight-author {
	display: flex;
	gap: var(--space-md);
	margin: var(--space-lg) 0;
}

.insight-author__inner {
	background-color: var(--wp--preset--color--sea-foam-10);
	border-radius: var(--radius-card);
}

.insight-author__avatar {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: var(--radius-full);
}

.insight-author__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.insight-author__content {
	flex-grow: 1;
}

/* Author name - wrapper styling only */
.insight-author__name {
	margin: 0 0 var(--space-xs);
	font-weight: var(--font-weight-semibold);
}

.insight-author__bio {
	margin: 0;
	color: var(--color-text-secondary);
}

