/* Stylish Search Block Editor */
.maa-stylish-search-editor {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	transition: all 0.3s ease;
}

.maa-stylish-search-editor:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Stylish Search Block Frontend */
.maa-stylish-search-block {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	margin: 30px 0;
}

.maa-stylish-search-container {
	background: var(--bg-color, #ffffff);
	padding: 30px 20px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.maa-stylish-search-container:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Search Input */
.maa-stylish-search-input-wrapper {
	position: relative;
	margin-bottom: 20px;
}

.maa-stylish-search-input {
	width: 100%;
	padding: 15px 20px;
	border: 2px solid var(--primary-color, #0073aa);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-sizing: border-box;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.maa-stylish-search-input:focus {
	outline: none;
	border-color: var(--primary-color, #0073aa);
	box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.15);
	transform: translateY(-2px);
}

.maa-stylish-search-input::placeholder {
	color: #999;
	font-weight: 400;
}

/* Filters */
.maa-stylish-filters-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 20px;
}

.maa-stylish-filter-group {
	display: flex;
	flex-direction: column;
}

.maa-stylish-filter-label {
	font-size: 12px;
	font-weight: 700;
	color: #333;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.maa-stylish-filter-select {
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background-color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	box-sizing: border-box;
	font-weight: 500;
}

.maa-stylish-filter-select:hover {
	border-color: var(--primary-color, #0073aa);
	background-color: #f9f9f9;
}

.maa-stylish-filter-select:focus {
	outline: none;
	border-color: var(--primary-color, #0073aa);
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.maa-stylish-filter-select:disabled {
	background-color: #f5f5f5;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Results */
.maa-stylish-search-results {
	margin-top: 25px;
}

.maa-stylish-results-header {
	font-size: 14px;
	font-weight: 700;
	color: #333;
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--primary-color, #0073aa);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.maa-stylish-results-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.maa-stylish-result-item {
	padding: 15px;
	margin-bottom: 12px;
	background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
	border-left: 4px solid var(--primary-color, #0073aa);
	border-radius: 6px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.maa-stylish-result-item:hover {
	background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.maa-stylish-result-item a {
	color: var(--primary-color, #0073aa);
	text-decoration: none;
	font-weight: 600;
	display: block;
	margin-bottom: 6px;
	word-break: break-word;
	font-size: 15px;
	transition: all 0.2s ease;
}

.maa-stylish-result-item a:hover {
	text-decoration: underline;
	color: #005a87;
}

.maa-stylish-result-meta {
	font-size: 12px;
	color: #999;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.maa-stylish-result-category {
	display: inline-block;
	background: var(--primary-color, #0073aa);
	color: white;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	transition: all 0.2s ease;
}

.maa-stylish-result-category:hover {
	transform: scale(1.05);
}

/* Ad Item in Results */
.maa-stylish-result-ad-item {
	list-style: none;
	padding: 15px 0;
	margin: 20px 0;
	border-top: 2px dashed #ddd;
	border-bottom: 2px dashed #ddd;
}

.maa-stylish-result-ad {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60px;
}

/* No Results */
.maa-stylish-no-results {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 15px;
}

/* Loading */
.maa-stylish-loading {
	text-align: center;
	padding: 25px;
	color: #999;
	font-size: 14px;
}

.maa-stylish-loading::after {
	content: '';
	display: inline-block;
	width: 4px;
	height: 4px;
	background: #999;
	border-radius: 50%;
	animation: maa-stylish-loading 1.4s infinite;
	margin-left: 4px;
}

@keyframes maa-stylish-loading {
	0%,
	100% {
		opacity: 0.3;
	}
	50% {
		opacity: 1;
	}
}

/* Pagination */
.maa-stylish-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.maa-stylish-pagination button {
	padding: 10px 14px;
	border: 2px solid #ddd;
	background: white;
	color: #333;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s ease;
	min-width: 40px;
}

.maa-stylish-pagination button:hover {
	border-color: var(--primary-color, #0073aa);
	color: var(--primary-color, #0073aa);
	background: #f9f9f9;
}

.maa-stylish-pagination button.active {
	background: var(--primary-color, #0073aa);
	color: white;
	border-color: var(--primary-color, #0073aa);
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.maa-stylish-pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Style Variants */

/* Modern Style */
.maa-style-modern .maa-stylish-search-container {
	background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
	border: 2px solid var(--primary-color, #0073aa);
	border-radius: 12px;
}

/* Minimal Style */
.maa-style-minimal .maa-stylish-search-input {
	border: none;
	border-bottom: 3px solid var(--primary-color, #0073aa);
	border-radius: 0;
	box-shadow: none;
	padding: 12px 0;
}

.maa-style-minimal .maa-stylish-search-input:focus {
	box-shadow: none;
	transform: none;
}

/* Bold Style */
.maa-style-bold .maa-stylish-search-input {
	border: 3px solid var(--primary-color, #0073aa);
	font-weight: 700;
	font-size: 18px;
	padding: 18px 20px;
}

.maa-style-bold .maa-stylish-filter-select {
	border: 2px solid var(--primary-color, #0073aa);
	font-weight: 700;
}

/* Gradient Style */
.maa-style-gradient .maa-stylish-search-container {
	background: linear-gradient(135deg, var(--primary-color, #0073aa) 0%, #005a87 100%);
	color: white;
}

.maa-style-gradient .maa-stylish-search-input {
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid white;
	color: #333;
}

.maa-style-gradient .maa-stylish-filter-select {
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid white;
	color: #333;
}

.maa-style-gradient .maa-stylish-results-header {
	color: white;
	border-bottom-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
	.maa-stylish-filters-wrapper {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.maa-stylish-search-container {
		padding: 20px 15px;
	}

	.maa-stylish-search-input {
		font-size: 16px; /* Prevents zoom on iOS */
		padding: 12px 15px;
	}

	.maa-stylish-filter-select {
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.maa-stylish-result-meta {
		flex-direction: column;
		gap: 6px;
	}

	.maa-stylish-pagination {
		gap: 6px;
	}

	.maa-stylish-pagination button {
		padding: 8px 12px;
		font-size: 12px;
		min-width: 36px;
	}
}

@media (max-width: 480px) {
	.maa-stylish-search-container {
		padding: 15px 12px;
		border-radius: 8px;
	}

	.maa-stylish-search-input {
		padding: 12px 12px;
		font-size: 16px;
	}

	.maa-stylish-result-item {
		padding: 12px;
		margin-bottom: 10px;
	}

	.maa-stylish-result-item a {
		font-size: 14px;
	}

	.maa-stylish-result-meta {
		font-size: 11px;
	}

	.maa-stylish-result-category {
		font-size: 10px;
		padding: 2px 8px;
	}

	.maa-stylish-pagination button {
		padding: 6px 10px;
		font-size: 11px;
		min-width: 32px;
	}
}
