/* 검색 버튼 스타일 */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
}

.search-toggle img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* 아이콘을 흰색으로 변경 */
    transition: transform 0.2s ease;
}

.search-toggle:hover img {
    transform: scale(1.1);
}

/* 검색 오버레이 스타일 */
#search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
}

.search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    background-color: #fff;
    color: #333;
    outline: none;
}

#close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#search-results {
    width: 90%;
    max-width: 600px;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.search-result-item a:hover {
    color: #2A4C76;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* 스크롤바 스타일 */
#search-results::-webkit-scrollbar {
    width: 8px;
}

#search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
} 