/**
 * EWL Pet Club — video questions on the Earn Treats page.
 *
 * Loaded after ewl-member-m2.css, on the Earn Treats screen only (see
 * Assets::enqueue()). Every selector is scoped under .ewl-videos so nothing
 * here reaches the rest of the club.
 */

.ewl-videos {
	margin-top: 6px;
}

.ewl-videos__intro {
	max-width: 640px;
	margin: 0 auto 22px;
	color: var(--ewl-slate, #454f5e);
	font-size: 14.5px;
	text-align: center;
}

.ewl-videos__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}

/* --------------------------------------------------------------- the card */

.ewl-vq {
	display: flex;
	flex-direction: column;
	padding: 14px;
	border: 1.5px solid #cbe8ec;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ewl-vq__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: #0f172a;
}

.ewl-vq__media iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* The theme paints every bare button orange (and the Elementor kit restyles
   it again), so the facade needs the id to stay a plain, dark video frame
   while the picture loads — or if YouTube's thumbnail never comes. */
#ewl-club .ewl-vq__facade,
#ewl-club .ewl-vq__facade:hover,
#ewl-club .ewl-vq__facade:focus {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #0f172a;
	box-shadow: none;
	line-height: 0;
	cursor: pointer;
}

.ewl-vq__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ewl-vq__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #12889c;
	color: #fff;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
	transition: transform 0.15s ease;
}

.ewl-vq__facade:hover .ewl-vq__play,
.ewl-vq__facade:focus-visible .ewl-vq__play {
	transform: translate(-50%, -50%) scale(1.07);
}

.ewl-vq__lead {
	margin: 12px 0 0;
	color: var(--ewl-muted, #7c8794);
	font-size: 12.5px;
	font-style: italic;
}

.ewl-vq__title {
	margin: 6px 0 8px;
	color: #123a5a;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.3;
}

.ewl-vq__pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: fit-content;
	margin: 0 0 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(220, 156, 28, 0.16);
	color: #7a5a10;
	font-size: 12px;
	font-weight: 800;
}

.ewl-vq__pill svg {
	color: #dc9c1c;
}

/* ------------------------------------------------------------ the answers */

.ewl-vq__form {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ewl-vq__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

.ewl-vq__opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 38px 10px 14px;
	border: 1.5px solid #dfe4ea;
	border-radius: 10px;
	color: #123a5a;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ewl-vq__opt input {
	flex-shrink: 0;
	accent-color: #12889c;
}

.ewl-vq__options:not([disabled]) .ewl-vq__opt:hover {
	border-color: #12889c;
	background: #eaf5f7;
}

.ewl-vq__opt:has(input:focus-visible) {
	outline: 2px solid #12889c;
	outline-offset: 2px;
}

.ewl-vq__opt:has(input:checked) {
	border-color: #12889c;
	background: #eaf5f7;
}

.ewl-vq__options[disabled] .ewl-vq__opt {
	cursor: default;
}

.ewl-vq__opt.is-right {
	border-color: #6fa03c;
	background: rgba(111, 160, 60, 0.14);
	color: #3f6b21;
}

.ewl-vq__opt.is-wrong {
	border-color: #ef5a45;
	background: rgba(239, 90, 69, 0.1);
	color: #a53324;
}

.ewl-vq__mark {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}

.ewl-vq__mark--right {
	color: #6fa03c;
}

.ewl-vq__mark--wrong {
	color: #ef5a45;
}

.ewl-vq__result {
	min-height: 18px;
	margin: 0 0 10px;
	color: #123a5a;
	font-size: 13px;
	font-weight: 700;
}

.ewl-vq__join,
.ewl-vq__form button[type="submit"] {
	align-self: flex-start;
	margin-top: auto;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
	.ewl-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ewl-videos__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ewl-vq__play {
		width: 46px;
		height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ewl-vq__play,
	.ewl-vq__opt {
		transition: none;
	}
}
