/**
 * "Fedezd fel a csoportokat" blokk a "közösség" (BuddyPress
 * aktivitás-könyvtár) oldal tetején — vízszintesen görgethető,
 * lekerekített csoport-kártyák, a site meglévő kártyás design
 * nyelvét követve (lásd activity-directory-style.css).
 *
 * Márkaszínek (a plugin többi elemével összhangban):
 *   - Navy   (#2c3e91) — cím-szomszédos link, kártya hover szegély
 *   - Szürke (#6b7290 / #9a9fb5 / #e2e2e6) — másodlagos szöveg / szegély
 */

.ld-ice-groups-showcase {
	margin: 0 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

/* JS inserts the block as the first child of #buddypress, so give it
   a touch of breathing room above it regardless of what the theme's
   own #buddypress wrapper does with its own top padding/margin. */
#buddypress > .ld-ice-groups-showcase:first-child {
	margin-top: 4px;
}

.ld-ice-groups-showcase * {
	box-sizing: border-box;
}

.ld-ice-groups-showcase__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ld-ice-groups-showcase__title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: #1f2430;
}

.ld-ice-groups-showcase__all-link {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	border: 1px solid #e2e2e6;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 12.5px;
	font-weight: 700;
	color: #2c3e91;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ld-ice-groups-showcase__all-link:hover {
	border-color: #2c3e91;
	background: #f4f5fb;
}

.ld-ice-groups-showcase__row {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 2px 2px 8px;
	margin: -2px -2px 0;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #e2e2e6 transparent;
}

.ld-ice-groups-showcase__row::-webkit-scrollbar {
	height: 6px;
}

.ld-ice-groups-showcase__row::-webkit-scrollbar-track {
	background: transparent;
}

.ld-ice-groups-showcase__row::-webkit-scrollbar-thumb {
	background: #e2e2e6;
	border-radius: 999px;
}

.ld-ice-groups-showcase__card {
	flex: 0 0 168px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #e2e2e6;
	border-radius: 18px;
	padding: 18px 14px;
	box-shadow: 0 2px 8px rgba(31, 36, 48, 0.04);
	color: inherit;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ld-ice-groups-showcase__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(31, 36, 48, 0.09);
	border-color: #c7cdf0;
}

.ld-ice-groups-showcase__avatar img.avatar {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 2px 6px rgba(31, 36, 48, 0.12);
}

.ld-ice-groups-showcase__name {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
	color: #1f2430;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ld-ice-groups-showcase__meta {
	font-size: 12px;
	font-weight: 600;
	color: #9a9fb5;
}

@media ( max-width: 600px ) {
	.ld-ice-groups-showcase__header {
		flex-wrap: wrap;
	}

	.ld-ice-groups-showcase__card {
		flex-basis: 140px;
	}
}
