/**
 * [bp_instructors] shortcode: reszponzív kártyarács az /oktatok oldalhoz.
 *
 * Márkaszínek (a plugin többi elemével összhangban):
 *   - Navy   (#2c3e91) — badge, profil-link, kártya hover szegély
 *   - Szürke (#6b7290 / #9a9fb5 / #e2e2e6) — másodlagos szöveg / szegély
 */

.ld-ice-instructors-directory {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.ld-ice-instructors-directory * {
	box-sizing: border-box;
}

.ld-ice-instructors-directory__empty {
	color: #6b7290;
	font-size: 14px;
}

/* Ugyanaz a cím-stílus, mint a /csoportok oldalon (lásd
   my-groups-showcase.css .ld-ice-my-groups-showcase__title). */
.ld-ice-instructors-directory__title {
	margin: 0 0 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 19px;
	font-weight: 800;
	color: #1f2430;
}

.ld-ice-instructors-directory__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1px solid #e2e2e6;
	border-radius: 10px;
	padding: 24px 20px;
	box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
	transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.ld-ice-instructors-directory__card-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: inherit;
	text-decoration: none;
}

.ld-ice-instructors-directory__avatar {
	width: 96px !important;
	height: 96px !important;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 14px;
}

.ld-ice-instructors-directory__name {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #1f2430;
}

.ld-ice-instructors-directory__badge {
	display: inline-block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #2c3e91;
	background: #eef0fb;
	padding: 3px 9px;
	border-radius: 999px;
}

.ld-ice-instructors-directory__bio {
	margin: 14px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #6b7290;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ld-ice-instructors-directory__meta {
	margin-top: 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: #6b7290;
}

/* A LD_ICE_Group_Owner_Card::render_social_links() metódust hívjuk
   újra a "Kapcsolat" ikonokhoz (lásd class-ld-ice-instructors-
   directory.php), ami mindig a ".ld-ice-owner-card__social" saját
   osztálynevekkel írja ki a markupot. Az az osztály eredetileg csak a
   class-ld-ice-group-owner-card.php-ban, inline <style>-ként adott
   stílust kap (ott, ahol a kártya ténylegesen meg is jelenik) — itt,
   az oktatói kártyákon belül, ugyanezt a stílust kell megadnunk
   ehelyütt is, mert ez a fájl mindig betöltődik, amikor a
   [bp_instructors] shortcode fut. */
.ld-ice-instructors-directory__card .ld-ice-owner-card__social {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}

.ld-ice-instructors-directory__card .ld-ice-owner-card__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f1f2f8;
	color: #013941;
	text-decoration: none;
}

.ld-ice-instructors-directory__profile-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	border: 1px solid #e2e2e6;
	border-radius: 999px;
	padding: 8px 18px;
	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-instructors-directory__profile-link:hover {
	border-color: #2c3e91;
	background: #f4f5fb;
}

/* "Oktató csoportja" link — a "Profil megtekintése" gomb ALATT jelenik
   meg (lásd class-ld-ice-instructors-directory.php render_group_link()),
   csak akkor, ha az oktatónak van saját LearnDash csoportja. Tömörebb,
   kitöltött stílus, hogy vizuálisan másodlagos cselekvésként hasson a
   profil-linkhez képest. */
.ld-ice-instructors-directory__group-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	padding: 8px 18px;
	background: #1DF79E !important;
	font-family: "Poppins", Sans-serif;
	font-size: 16px !important;
	font-weight: 400 !important;
	fill: #013941;
	color: #013941 !important;
	border-style: solid;
	border-width: 1px 1px 1px 1px !important;
	border-color: #013941 !important;
	border-radius: 100px 100px 100px 100px !important;
	text-decoration: none;
	transform: translateY(0) !important;
	box-shadow: 0 5px 0 #013941 !important;
	transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}

.ld-ice-instructors-directory__group-link:active {
	transform: translateY(4px) !important;
	box-shadow: 0 1px 0 #013941 !important;
}

.ld-ice-instructors-directory__group-link:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 7px 0 #013941 !important;
	border-style: solid;
	border-width: 1px 1px 1px 1px !important;
	color: #013941 !important;
}

.ld-ice-instructors-directory__group-link:focus {
	outline: unset !important;
	font-family: "Poppins", Sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	border-style: solid;
	border-width: 1px 1px 1px 1px !important;
}

@media ( max-width: 480px ) {
	.ld-ice-instructors-directory {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.ld-ice-instructors-directory__card {
		padding: 18px 14px;
	}
}
