/* =========================================================
   Vélemény kártyák – Kreatívoldal
   ========================================================= */

/* A felugró ablak a <body> végére kerül, ezért ott is kellenek a színváltozók. */
.mtv-blokk,
.mtv-modal {
	--mtv-akcent: #007399;
	--mtv-halvany: #74afc3;
	--mtv-lap: #ffffff;
	--mtv-szoveg: #2b3a41;
	--mtv-halvany-szoveg: #6b7c85;
	--mtv-keret: rgba(0, 115, 153, 0.14);
	--mtv-oszlop: 3;
	--mtv-sorok: 8;
}

.mtv-blokk {
	margin: 0 0 10px;
}

.mtv-blokk .mtv-cim {
	margin: 0 0 28px;
	text-align: center;
}

/* ---------- rács ---------- */

.mtv-racs {
	display: grid;
	grid-template-columns: repeat(var(--mtv-oszlop), minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.mtv-racs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.mtv-racs {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

/* ---------- kártya ---------- */

.mtv-kartya {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 34px 28px 26px;
	background: var(--mtv-lap);
	border: 1px solid var(--mtv-keret);
	border-radius: 20px;
	box-shadow: 0 12px 30px rgba(0, 61, 82, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mtv-kartya:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 38px rgba(0, 61, 82, 0.12);
}

.mtv-idezojel {
	position: absolute;
	top: 6px;
	left: 22px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 76px;
	line-height: 1;
	color: var(--mtv-halvany);
	opacity: 0.32;
	pointer-events: none;
	user-select: none;
}

.mtv-csillagok {
	position: relative;
	margin: 0 0 10px;
	font-size: 16px;
	letter-spacing: 2px;
	color: #f0a92c;
}

/* ---------- szöveg + levágás ---------- */

/* A rövidebb szöveg középre kerül a kártyán, így nem alul gyűlik össze az üres hely. */
.mtv-szoveg {
	position: relative;
	flex: 0 1 auto;
	margin-top: auto;
	margin-bottom: auto;
	color: var(--mtv-szoveg);
	font-size: 15.5px;
	line-height: 1.65;
}

.mtv-szoveg p {
	margin: 0 0 0.9em;
}

.mtv-szoveg p:last-child {
	margin-bottom: 0;
}

/* A levágás csak akkor él, ha fut a JS – így JS nélkül is olvasható marad minden. */
.mtv-js .mtv-szoveg {
	display: -webkit-box;
	-webkit-line-clamp: var(--mtv-sorok);
	line-clamp: var(--mtv-sorok);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mtv-js .mtv-kartya.mtv-tul-hosszu .mtv-szoveg::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.6em;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--mtv-lap) 85%);
	pointer-events: none;
}

/* ---------- "Teljes vélemény" gomb ---------- */

.mtv-tovabb {
	align-self: flex-start;
	margin: 14px 0 0;
	padding: 0;
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: var(--mtv-akcent);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

/* A téma minden <button>-re rátesz egy rózsaszín hover-hátteret, ezt írjuk felül. */
.mtv-tovabb:hover,
.mtv-tovabb:focus,
.mtv-tovabb:focus-visible,
.mtv-tovabb:active {
	background: none;
	box-shadow: none;
	color: #005a78;
	text-decoration: none;
}

.mtv-tovabb:focus {
	outline: none;
}

.mtv-tovabb:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.mtv-tovabb[hidden] {
	display: none;
}

/* ---------- lábléc ---------- */

.mtv-labl {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--mtv-keret);
}

.mtv-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--mtv-halvany), var(--mtv-akcent));
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	overflow: hidden;
}

.mtv-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.mtv-adatok {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mtv-nev {
	color: var(--mtv-szoveg);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.mtv-szerep {
	color: var(--mtv-halvany-szoveg);
	font-size: 13px;
	line-height: 1.4;
}

/* ---------- színes változat ---------- */

.mtv-stilus-szines .mtv-kartya {
	--mtv-lap: #74afc3;
	--mtv-szoveg: #ffffff;
	--mtv-halvany-szoveg: rgba(255, 255, 255, 0.85);
	--mtv-keret: rgba(255, 255, 255, 0.3);
	box-shadow: 0 12px 30px rgba(0, 61, 82, 0.13);
}

.mtv-stilus-szines .mtv-idezojel {
	color: #ffffff;
	opacity: 0.45;
}

.mtv-stilus-szines .mtv-tovabb {
	color: #ffffff;
}

.mtv-stilus-szines .mtv-avatar {
	background: rgba(255, 255, 255, 0.9);
	color: var(--mtv-akcent);
}

/* ---------- felugró ablak ---------- */

.mtv-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 36, 46, 0.62);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mtv-modal.mtv-nyitva {
	opacity: 1;
	visibility: visible;
}

.mtv-modal__lap {
	position: relative;
	width: min(680px, 100%);
	max-height: 82vh;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 40px 34px 30px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 70px rgba(0, 40, 55, 0.35);
	transform: translateY(14px);
	transition: transform 0.2s ease;
}

.mtv-modal.mtv-nyitva .mtv-modal__lap {
	transform: none;
}

.mtv-modal__bezar {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 38px;
	height: 38px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: #6b7c85;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mtv-modal__bezar:hover,
.mtv-modal__bezar:focus,
.mtv-modal__bezar:focus-visible,
.mtv-modal__bezar:active {
	background: #f2f2f2;
	box-shadow: none;
	color: #007399;
}

.mtv-modal__bezar:focus {
	outline: none;
}

.mtv-modal__bezar:focus-visible {
	outline: 2px solid #007399;
	outline-offset: 2px;
}

.mtv-modal__szoveg {
	color: #2b3a41;
	font-size: 16px;
	line-height: 1.7;
}

.mtv-modal__szoveg p {
	margin: 0 0 1em;
}

.mtv-modal__szoveg p:last-child {
	margin-bottom: 0;
}

.mtv-modal__labl {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(0, 115, 153, 0.14);
}

body.mtv-zarolt {
	overflow: hidden;
}

@media print {
	.mtv-js .mtv-szoveg {
		display: block;
		overflow: visible;
	}

	.mtv-tovabb,
	.mtv-kartya.mtv-tul-hosszu .mtv-szoveg::after {
		display: none;
	}
}
