/**
 * YouTube Highlight Block Styles
 * Styles for the YouTube Highlight custom block
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.youtube-highlight-block {
	width: 100%;
	margin: 0 auto;
	position: relative;
	padding: 60px 0 25px;
	overflow: hidden;
}

.youtube-highlight-container {
	width: 100%;
	max-width: 986px;
	margin: 0 auto;
}

/* Video Section */
.youtube-highlight-video-section {
	width: 100%;
	margin-bottom: 0;
	position: relative;
}

.youtube-highlight-video-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	background-color: #000;
	overflow: hidden;
}

.youtube-highlight-cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	display: block;
}

.youtube-highlight-cover-image {
	width: 100%;
	height: 101%;
	object-fit: cover;
	display: block;
}

.youtube-highlight-iframe-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.youtube-highlight-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Custom Play Button */
.youtube-highlight-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 1;
	display: block;
}

.youtube-highlight-play-button:hover,
.youtube-highlight-play-button:focus {
	transform: translate(-50%, -50%) scale(1.1);
	outline: 3px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 3px;
	border-radius: 50%;
}

.youtube-highlight-play-button:active {
	transform: translate(-50%, -50%) scale(0.95);
}

.youtube-highlight-play-button.is-playing {
	opacity: 0;
	pointer-events: none;
	display: none;
}

.youtube-highlight-play-icon {
	width: 80px;
	height: 80px;
	color: var(--wp--preset--color--smoked, #6D240B);
	display: block;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Sunshine Highlight Badge */
.youtube-highlight-sunshine-badge {
	position: absolute;
	top: 45px;
	right: -101px;
	z-index: 4;
	background-image: url('../../assets/images/sun.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 151px;
	height: 151px;
}

.youtube-highlight-sunshine-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	transition: transform 0.3s ease;
	width: 100%;
	height: 100%;
}

.youtube-highlight-sunshine-link:hover,
.youtube-highlight-sunshine-link:focus {
	transform: scale(1.1);
	outline: 3px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 3px;
	border-radius: 50%;
}

.youtube-highlight-sunshine-icon {
	display: none;
}

.youtube-highlight-sunshine-text {
	margin-top: 40px;
	margin-bottom: 8px;
	color: var(--SMOKED, #6D240B);
	text-align: center;
/* Sticker */
	font-family: "Young Serif";
	font-size: 23px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%; /* 23px */
	letter-spacing: -0.92px;
	text-transform: lowercase;
	background-color: #ffc856;
	max-width: 104px;
}

/* Content Section */
.youtube-highlight-content-section {
	width: 100%;
	padding: 27px 0;
	text-align: center;
}

.youtube-highlight-main-title {
	color: var(--CREAM, #FFF7E4);
	text-align: center;
	

/* H1 */
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	font-weight: 900;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	margin: 0;
	letter-spacing: -0.25rem;
}

.youtube-highlight-subtitle {
	color: var(--CREAM, #FFF7E4);

/* H3 */
	font-family: "Perfectly Nineties";
	font-size: 36px;
	font-style: normal;
	font-weight: 300;
	line-height: normal;
	letter-spacing: 0.02rem;
	margin: 0px 0;
}

/* Button */
.youtube-highlight-button-wrapper {
	margin-top: 19px;
}

.youtube-highlight-button {
	background-color: transparent;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
	border-radius: 50px;
	border: 1.5px solid var(--CREAM, #FFF7E4);
	display: flex;
	height: 36px;
	padding: 10px 17px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	text-align: center;
	font-family: "Google Sans Flex";
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	line-height: 130%; /* 15.6px */
	letter-spacing: 2.4px;
	text-transform: uppercase;
	width: fit-content;
	margin: 0 auto;
}

.youtube-highlight-button:hover,
.youtube-highlight-button:focus {
	background-color: #FFC856;
	color: #6D240B;
	border:1px solid #6D240B;
}

.youtube-highlight-button:active {
	transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1100px) {
	.youtube-highlight-container {
		max-width:700px;
	}
}

@media (max-width: 768px) {
	.youtube-highlight-container {
		max-width:500px;
	}
	.youtube-highlight-main-title {
		font-size:45px;
	}
	.youtube-highlight-sunshine-badge {
		top: -44px;
		right: 15px;
		width:100px;
		height:100px;
	}
	.youtube-highlight-sunshine-text {
		width: 67px;
		font-size:15px;
		margin: 24px auto 0;
	}
	.youtube-highlight-subtitle {
		font-size:30px;
	}
}

@media (max-width: 500px) {
.youtube-highlight-container {
		max-width: 95%;
	}
	.youtube-highlight-main-title {
	font-size:42px;
	}
	.youtube-highlight-subtitle {
		font-size: 32px;
	}
}

/* Accessibility: Focus States */
.youtube-highlight-play-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 3px;
	border-radius: 50%;
}

.youtube-highlight-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 3px;
}

.youtube-highlight-sunshine-link:focus-visible {
	outline: 3px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 3px;
	border-radius: 50%;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.youtube-highlight-play-button,
	.youtube-highlight-button {
		border-width: 3px;
	}
	
	.youtube-highlight-cover-image {
		border: 2px solid currentColor;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.youtube-highlight-play-button,
	.youtube-highlight-button,
	.youtube-highlight-sunshine-link {
		transition: none;
	}
	
	.youtube-highlight-play-button:hover,
	.youtube-highlight-button:hover,
	.youtube-highlight-sunshine-link:hover {
		transform: none;
	}
	
	.youtube-highlight-play-button {
		transform: translate(-50%, -50%);
	}
	
	.youtube-highlight-play-button:hover {
		transform: translate(-50%, -50%);
	}
}

