/* =========================================================
 * Jalinan — gaya paparan hadapan
 * Dimuat hanya apabila shortcode [jalinan_feed] atau
 * [jalinan_partners] digunakan pada halaman.
 * ========================================================= */

.jalinan-feed {
	display: grid;
	grid-template-columns: repeat(var(--jalinan-columns, 3), minmax(0, 1fr));
	gap: 22px;
	margin: 2em 0;
}

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

.jalinan-card {
	border: 1px solid #e3e0d8;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jalinan-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -20px rgba(20, 30, 25, 0.35);
}

.jalinan-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eceade;
}

.jalinan-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.jalinan-card:hover .jalinan-card__media img { transform: scale(1.05); }

.jalinan-card__type {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(16, 26, 21, 0.85);
	color: #ffd98c;
	padding: 3px 9px;
	border-radius: 999px;
}

.jalinan-card__body { padding: 16px 18px 18px; }

.jalinan-card__title { font-size: 1.05em; line-height: 1.35; margin: 0 0 6px; }
.jalinan-card__title a { color: #14201a; text-decoration: none; }
.jalinan-card__title a:hover { color: #0e7a4d; }

.jalinan-card__price { font-weight: 700; color: #b4531f; margin-bottom: 8px; }

.jalinan-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6f7a72;
	margin: 0;
}

.jalinan-card__meta a { color: #0e7a4d; }
.jalinan-card__glyph { color: #c99a3f; flex: none; }

.jalinan-feed-empty { color: #6f7a72; font-style: italic; }

/* ---------- panel diagnostik (admin sahaja) ---------- */

.jalinan-debug {
	margin: 1.2em 0;
	padding: 14px 18px;
	border: 1px dashed #c9a24b;
	border-radius: 8px;
	background: #fbf6e8;
	font-size: 13px;
	color: #6b5a1f;
}

.jalinan-debug__title {
	font-weight: 700;
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 11px;
}

.jalinan-debug ul { margin: 0 0 8px; padding-left: 18px; }
.jalinan-debug li { margin: 3px 0; }
.jalinan-debug__hint { margin: 0; }
.jalinan-debug code {
	background: rgba(107, 90, 31, 0.12);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
}

.jalinan-widget__hint { color: #a07b2a; margin-top: 6px; }

/* ---------- widget sidebar ---------- */

.jalinan-widget__items,
.jalinan-widget__partners { list-style: none; margin: 0; padding: 0; }

.jalinan-widget__items li { padding: 8px 0; border-bottom: 1px dotted #d8d5c9; }
.jalinan-widget__items li:last-child { border-bottom: 0; }

.jalinan-widget__items a {
	display: block;
	font-weight: 600;
	color: #14201a;
	text-decoration: none;
	line-height: 1.35;
}
.jalinan-widget__items a:hover { color: #0e7a4d; }

.jalinan-widget__via { display: block; font-size: 11px; color: #8a8f85; margin-top: 2px; }

.jalinan-widget__partners li {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px dotted #d8d5c9;
}
.jalinan-widget__partners li span { font-size: 11px; color: #8a8f85; }

.jalinan-widget__empty { color: #8a8f85; font-size: 13px; }

/* ---------- [jalinan_partners] ---------- */

.jalinan-partners__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 0.8em 0 0;
}

.jalinan-partners__list li {
	border: 1px solid #e3e0d8;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	background: #fff;
}

.jalinan-partners__list a { color: #14201a; text-decoration: none; font-weight: 600; }
.jalinan-partners__count { color: #8a8f85; margin-left: 6px; }
