/**
 * Artwork Search Dropdown Styles
 * Standalone component for artwork search functionality
 * 
 * @package CSP_Geeks_Helper_Functions
 */

/* Search Container */
.artwork-search-container {
	position: relative;
	display: inline-block;
}

/* Search Toggle Button */
.artwork-search-toggle {
	background: transparent;
	border: none;
	color: currentColor;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
	line-height: 1;
}

.artwork-search-toggle:hover {
	opacity: 0.75;
}

.artwork-search-toggle svg {
	width: 20px;
	height: 20px;
}

/* Search Dropdown */
.artwork-search-dropdown {
	position: absolute;
	top: calc(100% + 15px);
	right: 0;
	background: #000000;
	padding: 25px;
	min-width: 320px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 9999;
}

.artwork-search-dropdown form {
	margin: 0;
}

.artwork-search-dropdown .search-form {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.artwork-search-dropdown .search-form label {
	flex: 1;
	margin: 0;
}

.artwork-search-dropdown .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.artwork-search-dropdown input[type="search"],
.artwork-search-dropdown .search-field {
	width: 100%;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	font-size: 15px;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.artwork-search-dropdown input[type="search"]::placeholder,
.artwork-search-dropdown .search-field::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.artwork-search-dropdown input[type="search"]:focus,
.artwork-search-dropdown .search-field:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.12);
}

.artwork-search-dropdown .search-submit {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	padding: 14px 18px;
	cursor: pointer;
	border-radius: 2px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.artwork-search-dropdown .search-submit:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.3);
}

.artwork-search-dropdown .search-submit svg {
	width: 16px;
	height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
	.artwork-search-dropdown {
		min-width: 280px;
		right: auto;
		left: 50%;
		transform: translateX(-50%);
	}
}

@media (max-width: 480px) {
	.artwork-search-dropdown {
		min-width: calc(100vw - 40px);
		max-width: 320px;
	}
}
