/**
 * Lite YouTube Facade Styles
 *
 * Styling for the YouTube click-to-load facade pattern.
 * The facade replaces heavy YouTube iframes with a static thumbnail
 * and play button until the user clicks to watch.
 *
 * @package RCVMD
 * @since 1.3.0
 */

/* Container */
.lite-youtube {
	position: relative;
	cursor: pointer;
	background-color: #000;
	background-size: cover;
	background-position: center;
	aspect-ratio: 16 / 9;
	width: 100%;
	max-width: 100%;
	border-radius: 0.5rem;
	overflow: hidden;
}

/* Focus outline for keyboard navigation */
.lite-youtube:focus-visible {
	outline: 3px solid var(--wp--preset--color--cerise-red);
	outline-offset: 2px;
}

/* Play button hover effect */
.lite-youtube:hover .lite-youtube-play,
.lite-youtube:focus .lite-youtube-play {
	opacity: 1;
}

/* Play button container */
.lite-youtube-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

/* Iframe once loaded */
.lite-youtube iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}
