/**
 * Trending & Search Block Styles
 * Styles for the Trending & Search custom block
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.trending-search-block {
	width: 100%;
	margin: 0 auto;
	padding: 18px 0;
}

.trending-search-container {
	display: flex;
	gap: 0;
	align-items: stretch;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0;
	justify-content: space-between;
	width: 97%;
}

/* Left Side: Featured Post */
.trending-search-left {
	flex: 0 0 483px;
	min-width: 0;
	position: relative;
	
	
	/* Background color inherited from WP core block settings */
	/* Default dark red background if no color set */
	border-radius: 25px;
	background: var(--PASSATA, #B63724);
	padding: 20px;
	display: flex;
	justify-content: space-between;
	height: fit-content;
}

/* Post Link */
.trending-search-post-link {
	display: flex;
	justify-content: space-between;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.trending-search-post-image-wrapper {
	position: relative;
	width: 223px;
	height: 194px;
	border-radius: 25px;
}

.trending-search-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 25px;
}

/* Highlight Badge (Yellow oval, top-left of image) */
.trending-search-badge {
	position: absolute;
	top: 11px;
	left: 192px;
	text-transform: lowercase;
	padding: 6px 10px;
	border-radius: 50%;
	z-index: 2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border: 3px solid #FFFB8B;
	color: var(--LEMON, #FFFB8B);
	text-align: center;
	font-family: "Young Serif";
	font-size: 23px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%; /* 23px */
	letter-spacing: -0.92px;
	width: 166px;
	height: 58px;
	transform: rotate(-13deg);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Post Title */
.trending-search-post-title {
	margin: 0;
	
	/* Text color inherited from WP core */
	width: 45%;
	color: var(--CREAM, #FFF7E4);
	
/* H4 */
	font-family: "Perfectly Nineties";
	font-size: 26px;
	font-style: normal;
	font-weight: 300;
	line-height: 120%; /* 31.2px */
	letter-spacing: 0.52px;
	text-align: left;
	text-transform: initial;
	display: flex;
	align-items: center;
	padding-top: 36px;
}

/* Right Side: Search Form */
.trending-search-right {
	flex: 0 0 62%;
	min-width: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: 234px;
	border-radius: 25px;
	background-color: black;
}

.trending-search-background-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.trending-search-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.trending-search-content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 90%;
	padding: 2rem;
	text-align: center;
}

/* Search Title */
.trending-search-title {
	letter-spacing: -0.1rem;
	color: var(--LEMON, #FFFB8B);
	text-align: center;

/* H2 */
	font-family: "Google Sans Flex";
	font-size: 32px;
	font-style: normal;
	font-weight: 800;
	line-height: 105%; /* 33.6px */
	text-transform: uppercase;
	margin: 7px 0 15px;
}

/* Search Form Wrapper */
.trending-search-form-wrapper {
	width: 100%;
}

/* Search Form */
.trending-search-form {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.trending-search-input-wrapper {
	position: relative;
	width: 100%;
	max-width: 515px;
}

.trending-search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	pointer-events: none;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6D240B;
	opacity: 0.7;
}

.trending-search-icon svg {
	width: 100%;
	height: 100%;
}

.trending-search-input {
	width: 100%;
	padding: 9px 16px 8px 41px;
	font-size: 16px;
	font-family: var(--wp--preset--font-family--google-sans-flex, "Google Sans Flex", sans-serif);
	color: #6D240B;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
	border-radius: 15px;
	border: 1.5px solid var(--LEMON-LIGHT, #FEFAC8);
	background: rgba(81, 37, 1, 0.45);
	backdrop-filter: blur(1.5px);
	color: var(--LEMON-LIGHT, #FEFAC8);
	font-family: "Google Sans Flex";
	font-size: 17px;
	font-style: normal;
	font-weight: 500;
	line-height: 140%; /* 23.8px */
	letter-spacing: 0.3px;
	text-align: left;
}
.trending-search-input::focus {
	outline:none;
	border: 1.5px solid var(--LEMON-LIGHT, #FEFAC8);
}

.trending-search-input::placeholder {
	color: rgba(109, 36, 11, 0.6);
	opacity: 1;
	color: var(--LEMON-LIGHT, #FEFAC8);
font-family: "Google Sans Flex";
font-size: 17px;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 23.8px */
letter-spacing: 0.3px;
}

/* Screen Reader Text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* Responsive Design */
@media (max-width: 1280px) {
	.trending-search-right {
		flex:0 0 58%;
	}
}
@media (max-width: 1080px) {
	.trending-search-container {
		display:block;
	}
	.trending-search-left {
		max-width:500px;
		margin: 0 auto 30px
	}
}

@media (max-width: 500px) {
	.trending-search-container {
		width:95%;
	}
	.trending-search-post-image-wrapper {
	width: 50%;
	height: 160px;
	}
	.trending-search-post-title {
	font-size: 18px;
	line-height: 1.5;
	}
	.trending-search-badge {
		width: 116px;
			height: 40px;
			font-size: 16px;
			letter-spacing: 0;
	}
			    .trending-search-left {
			    	max-width: 500px;
			    	margin: 0 auto 20px;
			    }

/* Accessibility: Focus States */
.trending-search-input:focus-visible {
	outline:none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.trending-search-left {
		border: 2px solid currentColor;
	}
	
	.trending-search-input {
		border-width: 3px;
	}
	
	.trending-search-badge {
		border: 2px solid #6D240B;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.trending-search-input {
		transition: none;
	}
}

