/**
 * FooGallery Search Styling
 *
 * @package FooGallery_Search
 */

.foogallery-search-form {
	margin: 1rem 0;
}

.foogallery-search-wrapper {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.foogallery-search-input {
	flex: 1;
	min-width: 200px;
	padding: 0.5rem 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.foogallery-search-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.foogallery-search-form.active .foogallery-search-input {
	border-color: #0073aa;
}

.foogallery-search-button {
	padding: 0.5rem 1.5rem;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	white-space: nowrap;
}

.foogallery-search-button:hover {
	background-color: #005a87;
}

.foogallery-search-button:active {
	background-color: #004a6b;
}

.foogallery-search-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 600px) {
	.foogallery-search-wrapper {
		flex-direction: column;
	}

	.foogallery-search-input {
		min-width: 100%;
	}

	.foogallery-search-button {
		width: 100%;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.foogallery-search-input {
		background-color: #1e1e1e;
		color: #fff;
		border-color: #444;
	}

	.foogallery-search-input:focus {
		border-color: #4f94d4;
		box-shadow: 0 0 0 2px rgba(79, 148, 212, 0.1);
	}

	.foogallery-search-button {
		background-color: #4f94d4;
	}

	.foogallery-search-button:hover {
		background-color: #3d6fa1;
	}
}
