/*!
            * KEDD KFT - KEDD Rajzfilmünnep Site v1.0.0 (http://www.rajzfilmunnep.hu/)
            * Copyright 2024-2026 Peter Nagy
            * Licensed under MIT (https://github.com/StartBootstrap/rajzfilmunnep-site-generator/blob/master/LICENSE)
            */
/* Rajzverseny – nyilvános szavazás (rajzverseny.html) és a szavazat megerősítése (szavazas-megerosites.html) */

.cv-badge {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: var(--rajzfilmunnep-pink);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.cv-status,
.cv-note {
	display: flex;
	align-items: center;
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.92);
	color: #212529;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.cv-note {
	display: block;
	border-left: 6px solid var(--rajzfilmunnep-lila);
}

.cv-status--error {
	border-left: 6px solid var(--rajzfilmunnep-pink);
}

/* ---- Rajzok rácsa ---- */
.cv-grid,
.cv-winners {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.95);
	color: #212529;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.cv-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 0;
	background: #f1eef5;
	cursor: zoom-in;
}

.cv-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cv-card__noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 2.5rem;
	color: rgba(89, 50, 142, 0.4);
}

.cv-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1 1 auto;
	padding: 1rem 1.1rem 1.15rem;
}

.cv-card__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
	word-break: break-word;
}

.cv-card__meta,
.cv-card__venue {
	margin: 0;
	color: #555;
	font-size: 0.95rem;
}

.cv-card__body .btn {
	margin-top: auto !important;
}

/* ---- Nyertesek (lezárás után, szavazatszám nélkül) ---- */
.cv-card[class*='cv-card--place-'] {
	border-width: 3px;
}

.cv-card--place-1 {
	border-color: #e3b23c;
}

.cv-card--place-2 {
	border-color: #a7a9ad;
}

.cv-card--place-3 {
	border-color: #c07a45;
}

.cv-place {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--rajzfilmunnep-lila);
	color: #fff;
	font-size: 1.3rem;
	font-weight: 900;
	box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
}

/* ---- Szavazó ablak ---- */
.cv-vote-drawing {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding: 0.75rem;
	border-radius: 0.75rem;
	background: #f6f3fa;
}

.cv-vote-drawing img {
	width: 6rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: 0.5rem;
	flex: 0 0 auto;
}

.cv-vote-drawing--large img {
	width: 10rem;
	height: 7.5rem;
}

/* Csalimező: embernek nem látható (képernyőolvasónak sem), a robot kitölti */
.cv-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cv-vote-success,
.cv-confirm {
	padding: 1.5rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.95);
	color: #212529;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
	outline: none;
}

.cv-vote-success {
	padding: 0.5rem 0;
	text-align: center;
	box-shadow: none;
}

.cv-vote-success__icon,
.cv-confirm__icon {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 2.75rem;
	color: var(--rajzfilmunnep-pink);
}

/* A Font Awesome saját display-értéke miatt a középre igazítás margóval */
.cv-vote-success .cv-vote-success__icon {
	width: fit-content;
	margin-right: auto;
	margin-left: auto;
}

.cv-confirm__icon--ok {
	color: #2e9e5b;
}

.cv-lightbox-img {
	max-height: 75vh;
	border-radius: 10px;
}

@media (max-width: 575.98px) {
	.cv-vote-drawing {
		flex-direction: column;
		align-items: flex-start;
	}

	.cv-vote-drawing img,
	.cv-vote-drawing--large img {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}
}
