/* MedSkill – favorite (inimioară) */

/* Iconița din header, cu contor */
.ms-fav-ic {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #e4e9f5;
	border-radius: 50%;
	background: #fff;
	color: #0e1b4d !important;
	text-decoration: none !important;
	transition: background .2s, color .2s, border-color .2s;
}
.ms-fav-ic:hover {
	border-color: #e5232e;
	background: #e5232e;
	color: #fff !important;
}
.ms-fav-ic svg {
	width: 20px;
	height: 20px;
}
.ms-fav-ic__nr {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #e5232e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
	text-align: center;
	box-sizing: border-box;
}
.ms-fav-ic__nr.este-gol {
	background: #525d7d;
}
.ms-puls {
	animation: msPuls .45s ease;
}
@keyframes msPuls {
	45% { transform: scale(1.35); }
}

/* Butonul cu text (pagina cursului) */
.ms-fav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid #e4e9f5;
	border-radius: 999px;
	background: #fff;
	color: #0e1b4d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ms-fav-btn:hover {
	border-color: #e5232e;
	color: #e5232e;
}
.ms-fav-btn.este-activ {
	border-color: #e5232e;
	background: #fde8ea;
	color: #b3101b;
}
.ms-fav-btn__ic {
	display: inline-flex;
}
.ms-fav-btn svg {
	width: 18px;
	height: 18px;
}
.ms-fav-btn.se-incarca {
	opacity: .6;
	pointer-events: none;
}
.ms-fav-btn:focus-visible,
.ms-fav-ic:focus-visible {
	outline: 2px solid #e5232e;
	outline-offset: 2px;
}

/* Inima rotundă de pe carduri */
.ms-fav-btn--card {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, .95);
	color: #0e1b4d;
	box-shadow: 0 4px 12px rgba(14, 27, 77, .18);
}
.ms-fav-btn--card:hover {
	transform: scale(1.1);
	color: #e5232e;
}
.ms-fav-btn--card.este-activ {
	background: #e5232e;
	color: #fff;
}
.ms-fav-btn--card svg {
	width: 16px;
	height: 16px;
}
/* Cardul Divi cu inimă funcțională nu mai arată inima decorativă din temă */
.ms-fav-are-buton .et_pb_main_blurb_image:after {
	display: none !important;
}

/* Pagina de favorite */
.ms-fav-lista {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}
.ms-fav-card {
	position: relative;
	overflow: hidden;
	border: 1px solid #e4e9f5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(14, 27, 77, .08);
}
.ms-fav-card__img {
	display: block;
	aspect-ratio: 16 / 10;
	background: #e8eefa;
}
.ms-fav-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ms-fav-card__txt {
	padding: 14px 16px 18px;
}
.ms-fav-card__tip {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 5px;
	background: #fde8ea;
	color: #b3101b;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.ms-fav-card h3 {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.35;
}
.ms-fav-card h3 a {
	color: #0e1b4d;
}
.ms-fav-gol {
	max-width: 480px;
	margin: 0 auto;
	padding: 40px 20px;
	color: #333d5c;
	text-align: center;
}
.ms-fav-gol svg {
	width: 48px;
	height: 48px;
	color: #e5232e;
}
.ms-fav-gol p {
	margin: 14px 0 20px;
	font-size: 16px;
}
.ms-fav-gol__btn {
	display: inline-block;
	padding: 15px 32px;
	border-radius: 999px;
	background: #e5232e;
	color: #fff !important;
	font-weight: 600;
}
.ms-fav-gol__btn:hover {
	background: #c4141f;
}
@media (prefers-reduced-motion: reduce) {
	.ms-puls { animation: none; }
	.ms-fav-btn { transition: none; }
}
