.redcat-pub-search * {
	color: inherit;
}



/* Editor Preview Notice */
.block-editor-notice {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	color: #856404;
	padding: 1rem;
	border-radius: 4px;
	text-align: center;
}

.block-editor-notice h4 {
	margin: 0 0 0.5rem 0;
	color: #856404;
}

.block-editor-notice p {
	margin: 0;
	font-size: 0.9rem;
}


/* Banner Content */
.redcat-pub-search .banner-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	z-index: 10;
}

.redcat-pub-search .pub-search-container {
	width: 100%;
	background: rgba(255, 255, 255, 0.7);
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
	margin-top: auto;
}

.redcat-pub-search .pub-search-container.full-width {
	padding-left: 0;
	padding-right: 0;
}

.redcat-pub-search .pub-search-form {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 35px;
	padding-bottom: 35px;
}

.redcat-pub-search .compact .pub-search-form {
	max-width: var(--wp--style--global--wide-size);
}

.redcat-pub-search .full-width .pub-search-form {
	max-width: 100%;
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

.redcat-pub-search .pub-search-form .search-header {
	flex-basis: 30%;
}

.redcat-pub-search .pub-search-form .search-header .search-title {
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0;
}

.redcat-pub-search .pub-search-form .search-header .search-subtitle {
	font-size: 15px;
	color: #888;
	margin-top: 4px;
}

.redcat-pub-search .pub-search-form .search-fields {
	flex-basis: 70%;
	display: flex;
	gap: 20px;
}

.redcat-pub-search .pub-search-form .search-field {
	flex-basis: 0;
	flex-grow: 1;
}

.redcat-pub-search .pub-search-form .search-field.search-action {
	width: 150px;
	flex-basis: auto;
	flex-grow: 0;
}

.redcat-pub-search .pub-search-form .search-field .search-label {
	display: none;
}

.redcat-pub-search .pub-search-form .search-field .search-input {
	font-size: 15px;
	color: var(--wp--preset--color--black);
	background: var(--wp--preset--color--white);
	display: block;
	width: 100%;
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 0px;
	outline: none;
	height: 40px;
}

.redcat-pub-search .pub-search-form .search-field .search-input:focus {
	outline: none;
}

.redcat-pub-search .pub-search-form .search-field .search-button {
	font-family: var(--wp--preset--font-family--raleway);
	font-size: var(--wp--preset--font-size--button);
	font-weight: var(--wp--custom--font-weight--bold);
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 0px;
	padding: 8px 25px;
	text-decoration: none;
	text-transform: uppercase;
	outline: none;
	display: inline-block;
	height: 40px;
	cursor: pointer;
	width: 100%;
}

.redcat-pub-search .pub-search-form .search-field .search-button.loading {
	opacity: 0.7;
	pointer-events: none;
}

.redcat-pub-search .pub-search-form .search-field .search-button.loading::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid transparent;
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Radius Field */
.radius-field {
	transition: opacity 0.3s ease;
}

.radius-field[style*="none"] {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 1199px) {
	.redcat-pub-search .pub-search-form {
		flex-wrap: wrap;
	}

	.redcat-pub-search .pub-search-form .search-header {
		flex-basis: 100%;
		text-align: center;
	}

	.redcat-pub-search .pub-search-form .search-fields {
		flex-basis: 100%;
		gap: 15px;
	}
}

@media (max-width: 991px) {
	.redcat-pub-search .pub-search-form {
		padding-top: 25px;
		padding-bottom: 25px;
	}
}

@media (max-width: 767px) {
	.redcat-pub-search .banner-content {
		position: relative;
	}

	.redcat-pub-search .pub-search-form .search-fields {
		gap: 12px;
		flex-direction: column;
	}

	.redcat-pub-search .pub-search-form .search-field.search-action {
		width: 100%;
	}
}


/* ==========================================================================
   BANNER STYLES
   ========================================================================== */
/* Banner Container */
.redcat-pub-search .pub-search-banner {
	position: relative;
	width: 100%;
}

.redcat-pub-search .pub-search-banner .banner-main-container {
	position: relative;
}

.redcat-pub-search .pub-search-banner.banner-height-small .banner-main-container {
	min-height: 400px;
}

.redcat-pub-search .pub-search-banner.banner-height-medium .banner-main-container {
	min-height: 500px;
}

.redcat-pub-search .pub-search-banner.banner-height-large .banner-main-container {
	min-height: 600px;
}

.redcat-pub-search .pub-search-banner.banner-height-full .banner-main-container {
	height: 100vh;
	min-height: 540px;
	overflow: hidden;
}




.redcat-pub-search .pub-search-banner .banner-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.redcat-pub-search .pub-search-banner .banner-image .banner-img-element {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Banner Video */
.redcat-pub-search .banner-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--black);
}

.redcat-pub-search .video-poster {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: opacity 0.5s ease;
	z-index: 1;
}

.redcat-pub-search .video-poster-element {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.redcat-pub-search .banner-video.video-loaded .video-poster {
	opacity: 0;
	pointer-events: none;
}

/* Video Loading Indicator */
.video-loading-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	color: white;
	text-align: center;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top: 3px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

/* Hide loading indicator when video is loaded */
.banner-video.video-loaded .video-loading-indicator {
	display: none;
}

.banner-video-element {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100%;
	min-width: 177.77vh;
	transform: translate(-50%, -50%);
	pointer-events: none;
	border: none;
	outline: none;
	transition: opacity 0.8s ease-in-out;
	z-index: 1;
}

/* Banner Overlays */
.redcat-pub-search .banner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.redcat-pub-search .banner-overlay.overlay-light {
	background: rgba(255, 255, 255, 0.25);
}

.redcat-pub-search .banner-overlay.overlay-medium {
	background: rgba(0, 0, 0, 0.5);
}

.redcat-pub-search .banner-overlay.overlay-dark {
	background: rgba(0, 0, 0, 0.75);
}

.redcat-pub-search .banner-overlay.overlay-gradient {
	background: linear-gradient(135deg,
			rgba(0, 0, 0, 0.3) 0%,
			rgba(0, 0, 0, 0.7) 100%);
}

/* Accessibility - Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.banner-video-element {
		display: none;
	}

	.pub-search-banner.banner-youtube::after,
	.pub-search-banner.banner-vimeo::after {
		content: "🎥 Video disabled due to motion preferences";
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: white;
		background: rgba(0, 0, 0, 0.8);
		padding: 1rem;
		border-radius: 4px;
		z-index: 1;
	}
}