/*
 * Simple Social Feed — theme-agnostic default styling.
 *
 * A theme can restyle this without touching this file: define any of
 * --ssf-accent, --ssf-text, --ssf-text-muted, --ssf-bg, --ssf-border,
 * --ssf-radius, --ssf-font on :root (or any ancestor of .ssf-feed) and
 * it's picked up automatically via inheritance. Sensible defaults are
 * given inline at each use below (var(--name, default)) rather than
 * redeclared on .ssf-feed itself, since a custom property can't safely
 * reference its own name for a fallback (that's a cyclic reference and
 * resolves to invalid, not the fallback).
 */

.ssf-feed {
	display: grid;
	grid-template-columns: repeat(var(--ssf-columns, 3), 1fr);
	gap: 1.5rem;
	font-family: var(--ssf-font, inherit);
}

@media (max-width: 900px) {
	.ssf-feed {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.ssf-feed {
		grid-template-columns: 1fr;
	}
}

.ssf-card {
	background: var(--ssf-bg, #ffffff);
	border: 1px solid var(--ssf-border, #e2e2e2);
	border-radius: var(--ssf-radius, 10px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

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

.ssf-card__body {
	padding: 1.1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ssf-card__platform {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.8rem;
	color: var(--ssf-text-muted, #666666);
}

.ssf-card__platform svg {
	width: 16px;
	height: 16px;
	color: var(--ssf-accent, #0a66c2);
	flex-shrink: 0;
}

.ssf-card__platform time {
	margin-left: auto;
}

.ssf-card__text {
	color: var(--ssf-text, #1a1a1a);
	font-size: 0.95rem;
	line-height: 1.5;
}

.ssf-card__text p:last-child {
	margin-bottom: 0;
}

.ssf-card__link {
	color: var(--ssf-accent, #0a66c2);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.ssf-card__link:hover {
	text-decoration: underline;
}
