
:root { 
  --primary-color: #121212; /* 기본 색상 변수 */
}

/* 시맨틱 검색 팝업 스타일 */
.semantic-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000; display: none; } 
.semantic-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vw; height: 80vh; max-width: 1200px; background-color: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 1001; display: none; flex-direction: column; } 
.semantic-popup-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; background-color: var(--primary-color); color: #fff; } 
.semantic-popup-header h2 { margin: 0; font-size: 16px; font-weight: 500; }
.semantic-popup-close { cursor: pointer; border: none; background: transparent; font-size: 24px; font-weight: bold; color: #fff; } 
.semantic-popup-body { padding: 10px 0; flex-grow: 1; overflow-y: auto; font-weight: 400; } 

.semantic-results-list { list-style: none; padding: 0; margin: 0; } 
.semantic-result-item { padding: 20px 20px 22px; border-bottom: 1px solid #f0f0f0; } 
.semantic-result-item:last-child { border-bottom: none; } 
.semantic-result-item p { margin: 0 0 4px; line-height: 1.6; } 
.semantic-result-item .score { font-size: 13px; color: #666; font-weight: 500; } 

.related-menu-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; } 
.related-menu-item a { display: inline-block; padding: 4px 12px; border: 1px solid var(--primary-color); border-radius: 15px; color: var(--primary-color); text-decoration: none; font-size: 13px; transition: background-color 0.2s, color 0.2s;  font-weight: 500; } 
.related-menu-item a:hover { background-color: var(--primary-color); color: #fff; } 

.sementic-search-wrap { display: inline-flex; gap:4px; height: 24px; font-size: 13px; }
.sementic-search-wrap input { height:100%; padding: 0 8px; border: none; border-radius: 4px; background: #f7f7f7; font-weight: 400; font-size: 12px; border:1px solid transparent; line-height: 100%; }
.sementic-search-wrap input:focus { outline: none; border: 1px solid var(--primary-color); }
.sementic-search-wrap button { display: flex; align-items: center; justify-content: center; height:100%; padding: 4px 10px; background: var(--primary-color); color:white; font-weight: 500; font-size: 14px; border-radius: 4px; }

/* 반응형 스타일 */
@media (max-width: 768px){
 .semantic-popup { width: 95vw; height: 85vh; } 
 .semantic-popup-header h2 { font-size: 16px; } 
 .semantic-popup-body { padding: 15px; } 

 .related-menu-item a { font-size: 12px; padding: 3px 10px; } 
}