/**
 * 헤더 검색 아이콘 및 검색 모달 CSS
 * header.asp에서 사용
 */

/* 메인 헤더 검색 아이콘 (메뉴와 독립된 고정 위치) */
.header_search_icon_wrap {
	position: fixed !important;
	z-index: 1000000 !important;
	pointer-events: auto !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	/* 위치 변경 시 transition 제거하여 깜박임 방지 */
	transition: none !important;
	/* 모든 가능한 숨김 속성 강제 */
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	height: auto !important;
	width: auto !important;
	max-height: none !important;
	max-width: none !important;
	min-height: 0 !important;
	min-width: 0 !important;
}
.header_search_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 50%;
	text-decoration: none;
	font-size: 18px;
	/* hover 시에만 transition 적용 */
	transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.3);
}
.header_search_icon:hover {
	background-color: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
	border-color: rgba(255, 255, 255, 0.5);
}
.header_search_icon i {
	line-height: 1;
}

/* 검색 레이어 모달 */
.search_modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 100000 !important;
	display: none;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
.search_modal[style*="display: flex"],
.search_modal[style*="display:block"],
.search_modal[style*="display: flex !important"] {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.search_modal_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}
.search_modal_content {
	position: relative;
	width: 90%;
	max-width: 700px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	z-index: 10001;
	animation: searchModalFadeIn 0.3s ease;
}
@keyframes searchModalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}
.search_modal_close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: #666;
	font-size: 24px;
	cursor: pointer;
	border-radius: 50%;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10002;
}
.search_modal_close:hover {
	background-color: #f5f5f5;
	color: #333;
}
.search_modal_header {
	padding: 40px 40px 20px 40px;
	text-align: center;
	border-bottom: 1px solid #eee;
}
.search_modal_header h2 {
	font-size: 2rem;
	margin-bottom: 12px;
	color: #17479e;
	font-weight: 700;
}
.search_modal_header p {
	color: #555;
	font-size: 1.05rem;
	margin: 0;
}
.search_modal_form {
	padding: 30px 40px 40px 40px;
}
.search_input_wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 2px solid rgba(243, 156, 18, 1.0);
	border-radius: 50px;
	padding: 8px 8px 8px 24px;
	box-shadow: 0 4px 12px rgba(243, 156, 18, 0.1);
}
.search_input_wrap:hover,
.search_input_wrap:focus-within {
	box-shadow: none;
	outline: none;
}
.search_input_wrap input[type="text"] {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1.05rem;
	color: #333;
	background: transparent;
	padding: 8px 0;
}
.search_input_wrap input[type="text"]:hover,
.search_input_wrap input[type="text"]:focus {
	outline: none;
	box-shadow: none;
}
.search_input_wrap input[type="text"]::placeholder {
	color: #999;
}
.search_submit_btn {
	background: rgba(243, 156, 18, 1.0);
	color: #000;
	border: none;
	border-radius: 50%;
	width: 56px;
	height: 56px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.1s ease;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.search_submit_btn:hover {
	background: rgba(230, 126, 34, 1.0);
}
.search_submit_btn:active {
	transform: scale(0.95);
}

/* 모바일 스타일 */
@media screen and (max-width: 768px) {
	/* 검색 아이콘만 숨김 (모바일 헤더는 영향 없음) */
	.header_search_icon_wrap {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
	.header_search_icon {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
	/* 모바일에서 검색 모달 숨김 */
	.search_modal {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
	/* 모바일 헤더는 반드시 표시 */
	#mobile_header {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

