/**
 * MentionFetch Frontend Styles.
 *
 * Ships layout CSS for the `grid` layout plus a single shared
 * "no mentions" notice. Additional layout styles are provided by
 * separately distributed premium extensions.
 */

/* =============================================
   Grid layout (default)
   ============================================= */

.mfch-mentions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

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

.mfch-card-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mfch-card-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.mfch-card-body {
	padding: 16px 20px 20px;
}

.mfch-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 0.8125rem;
	color: #666;
}

.mfch-card-source {
	font-weight: 600;
	color: #333;
}

.mfch-card-date::before {
	content: "\00B7";
	margin-right: 8px;
}

.mfch-card-title {
	margin: 0 0 8px;
	font-size: 1.125rem;
	line-height: 1.4;
}

.mfch-card-title a {
	color: inherit;
	text-decoration: none;
}

.mfch-card-title a:hover {
	text-decoration: underline;
}

.mfch-card-excerpt {
	margin: 0 0 12px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #555;
}

.mfch-card-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0073aa;
	text-decoration: none;
}

.mfch-card-link:hover {
	text-decoration: none;
}

.mfch-card-link:hover .mfch-card-link-text {
	text-decoration: underline;
}

.mfch-card-link-text {
	text-decoration: inherit;
}

.mfch-card-link-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	text-decoration: none;
}

.mfch-card-link-icon i,
.mfch-card-link-icon svg {
	display: inline-block;
	line-height: 1;
}

.mfch-card-link-icon--after {
	margin-left: 4px;
}

.mfch-card-link-icon--before {
	margin-right: 4px;
}

/* =============================================
   Shared
   ============================================= */

.mfch-no-mentions {
	color: #666;
	font-style: italic;
}
