/* MS Certificate Manager — frontend
   Brand: lila #6B3FA0, türkiz #1FBCC9, magenta #E91E63 */

.mscm-hidden { display: none !important; }

/* ---- Választó ---- */
.mscm-selector {
	margin: 32px 0;
	padding: 28px;
	background: #faf8fc;
	border: 1px solid #ece4f3;
	border-radius: 16px;
}
.mscm-selector.mscm-deferred { display: none !important; } /* rejtve a kvíz teljesítéséig */
.mscm-selector.mscm-active { display: block !important; }   /* csak az eredmény-nézetben */

.mscm-selector__title {
	margin: 0 0 6px;
	font-size: 1.5em;
	color: #6B3FA0;
	text-align: center;
}
.mscm-selector__subtitle {
	margin: 0 0 24px;
	text-align: center;
	color: #6b6b6b;
}

.mscm-cards {
	display: flex;
	gap: 24px;
	justify-content: center;
	flex-wrap: wrap;
}
.mscm-card {
	flex: 1 1 320px;
	max-width: 420px;
	background: #fff;
	border: 2px solid #ece4f3;
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s, transform .2s;
	display: flex;
	flex-direction: column;
}
.mscm-card:hover {
	border-color: #1FBCC9;
	box-shadow: 0 8px 24px rgba(107, 63, 160, .12);
	transform: translateY(-2px);
}
.mscm-card__preview {
	background: #f3eef8;
	aspect-ratio: 1.414 / 1; /* A4 fekvő arány */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.mscm-card__preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.mscm-card__noimg {
	color: #b3a6c4;
	font-size: .9em;
}
.mscm-card__label {
	padding: 14px 16px 4px;
	font-size: 1.2em;
	font-weight: 700;
	color: #6B3FA0;
	text-align: center;
}
.mscm-card__actions {
	padding: 12px 16px 18px;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---- Gombok ---- */
.mscm-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 999px;
	font-size: .95em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity .2s, transform .1s;
	line-height: 1.2;
}
.mscm-btn:active { transform: scale(.97); }
.mscm-btn--generate {
	background: linear-gradient(135deg, #6B3FA0, #1FBCC9);
	color: #fff;
}
.mscm-btn--generate:hover { opacity: .92; }
.mscm-btn--generate:disabled { opacity: .55; cursor: default; }
.mscm-btn--download {
	background: #1FBCC9;
	color: #fff;
}
.mscm-btn--download:hover { opacity: .92; color: #fff; }

.mscm-card.mscm-busy .mscm-btn--generate { opacity: .55; cursor: default; }

.mscm-status {
	margin-top: 18px;
	text-align: center;
	min-height: 1.4em;
	font-weight: 600;
}
.mscm-status.mscm-status--ok { color: #1a9c52; }
.mscm-status.mscm-status--err { color: #E91E63; }
.mscm-status.mscm-status--busy { color: #6B3FA0; }

/* ---- Fiókom: Legenerált tanúsítványaim ---- */
.mscm-mycerts { margin: 24px 0; }
.mscm-mycerts__title {
	font-size: 1.4em;
	color: #6B3FA0;
	margin: 0 0 18px;
}
.mscm-mycerts__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.mscm-mycert {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 14px;
	background: #fff;
	border: 1px solid #ece4f3;
	border-radius: 12px;
}
.mscm-mycert__thumb {
	flex: 0 0 90px;
	width: 90px;
	height: 64px;
	background: #f3eef8;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mscm-mycert__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mscm-mycert__meta { flex: 1 1 auto; }
.mscm-mycert__course { font-weight: 700; color: #2b2b2b; }
.mscm-mycert__design { color: #6B3FA0; font-weight: 600; font-size: .95em; }
.mscm-mycert__date,
.mscm-mycert__serial { color: #777; font-size: .85em; }
.mscm-mycert__action { flex: 0 0 auto; }
.mscm-mycerts--empty p {
	padding: 18px;
	background: #faf8fc;
	border: 1px dashed #d9cae8;
	border-radius: 12px;
	color: #6b6b6b;
}

@media (max-width: 600px) {
	.mscm-mycert { flex-wrap: wrap; }
	.mscm-mycert__thumb { flex-basis: 100%; width: 100%; height: 120px; }
}
