/**
 * Frontend styles — Classificacao Indicativa overlay, blur, badges.
 *
 * @package AC24CI
 */

:root {
	--ac24ci-accent: #8b0000;
	--ac24ci-accent-hover: #6a0000;
}

/* ── Blur generico — conteudo dentro do gate ──────────────── */
.ac24ci-blur {
	filter: blur(20px);
	-webkit-filter: blur(20px);
	user-select: none;
	pointer-events: none;
	transition: filter 0.5s ease;
}
.ac24ci-gate.is-accepted .ac24ci-blur {
	filter: none;
	-webkit-filter: none;
	user-select: auto;
	pointer-events: auto;
}

/* ── Overlay de aviso ─────────────────────────────────────── */
.ac24ci-overlay {
	position: relative;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 2.5rem 1.5rem;
	min-height: 360px;
	text-align: center;
}
.ac24ci-gate.is-accepted .ac24ci-overlay {
	display: none;
}
.ac24ci-overlay__inner {
	max-width: 480px;
	color: #fff;
}
.ac24ci-overlay__badge {
	display: inline-flex;
	margin-bottom: 1rem;
}
.ac24ci-overlay__badge svg {
	width: 64px;
	height: 64px;
}
.ac24ci-overlay__title {
	font-size: 1.375rem;
	font-weight: 800;
	margin: 0 0 0.75rem;
	color: #fff;
}
.ac24ci-overlay__rating {
	font-size: 0.95rem;
	color: #ccc;
	margin: 0 0 0.75rem;
}
.ac24ci-overlay__message {
	font-size: 0.9rem;
	color: #bbb;
	line-height: 1.6;
	margin: 0 0 1.5rem;
}
.ac24ci-overlay__accept {
	display: inline-block;
	background: var(--ac24ci-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.75rem 2rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: background 0.2s;
}
.ac24ci-overlay__accept:hover {
	background: var(--ac24ci-accent-hover);
}
.ac24ci-overlay__back {
	display: block;
	margin-top: 1rem;
	color: #888;
	font-size: 0.82rem;
	text-decoration: underline;
}
.ac24ci-overlay__back:hover {
	color: #ccc;
}

/* ── Blur em thumbnails (homepage / listagens) ────────────── */
img.ac24ci-blurred-img {
	filter: blur(12px) !important;
	-webkit-filter: blur(12px) !important;
}
/* Remove blur de thumbnails no single apos aceite */
body.ac24ci-accepted img.ac24ci-blurred-img {
	filter: none !important;
	-webkit-filter: none !important;
}

/* ── Badge de classificacao nos cards ─────────────────────── */
.ac24ci-card-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.ac24ci-card-badge svg {
	width: 14px;
	height: 14px;
}

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 600px) {
	.ac24ci-overlay {
		padding: 1.5rem 1rem;
		min-height: 280px;
	}
	.ac24ci-overlay__title {
		font-size: 1.15rem;
	}
	.ac24ci-overlay__accept {
		padding: 0.65rem 1.5rem;
		font-size: 0.85rem;
	}
}
