/* Substack Feed Curator — frontend cards.
   Intentionally minimal and theme-friendly; uses CSS variables so themes/users
   can override without touching the plugin. */

.sfc-grid {
	--sfc-gap: 1.5rem;
	--sfc-radius: 10px;
	--sfc-border: rgba(0, 0, 0, 0.1);
	--sfc-muted: #566;
	--sfc-accent: currentColor;

	display: grid;
	gap: var(--sfc-gap);
	grid-template-columns: repeat(var(--sfc-cols, 3), minmax(0, 1fr));
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.sfc-grid--cols-1 { --sfc-cols: 1; }
.sfc-grid--cols-2 { --sfc-cols: 2; }
.sfc-grid--cols-3 { --sfc-cols: 3; }
.sfc-grid--cols-4 { --sfc-cols: 4; }

@media (max-width: 900px) {
	.sfc-grid { --sfc-cols: 2; }
}
@media (max-width: 600px) {
	.sfc-grid { --sfc-cols: 1; }
}

.sfc-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--sfc-border);
	border-radius: var(--sfc-radius);
	overflow: hidden;
	background: transparent;
}

.sfc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.sfc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sfc-card__badge {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 0.9rem;
	padding-left: 2px;
}

.sfc-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
}

.sfc-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.sfc-card__title a {
	text-decoration: none;
	color: inherit;
}

.sfc-card__title a:hover,
.sfc-card__title a:focus {
	text-decoration: underline;
}

.sfc-card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--sfc-muted);
}

.sfc-card__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--sfc-accent);
}

.sfc-card__cta:hover,
.sfc-card__cta:focus {
	text-decoration: underline;
}

.sfc-card__cta-icon {
	font-size: 0.75rem;
}
