/* =========================
   Search (board 스타일 매칭)
   ========================= */

.search-container {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 16px auto; /* board-header에서 우측 정렬 */
    margin-top: 20px;
}

/* 검색 옵션 드롭다운 */
.search-option {
    height: 42px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #2c3e50;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-option:focus {
    border-color: #b8c0c7;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* 검색 인풋 + 아이콘 묶음 */
.search-box {
    position: relative;
    flex: 1;
    max-width: 250px;
}
.search-box-lg{
    position: relative;
    flex: 1;
    max-width: 500px;
}

/* 검색 입력창 */
.search-input {
    width: 100%;
    height: 42px;
    padding: 10px 44px 10px 14px; /* 오른쪽 아이콘 공간 확보 */
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #2c3e50;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-input:focus {
    border-color: #b8c0c7;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* 돋보기 아이콘 */
.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.search-icon::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid #6c757d;
    border-radius: 50%;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 2px;
    background-color: #6c757d;
    transform: rotate(45deg);
    right: 6px;
    bottom: 6px;
}

.search-icon:hover {
    background-color: #f1f3f4;
}

.search-icon:active {
    background-color: #e9ecef;
}

/* 반응형 */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }
    .search-option,
    .search-input {
        height: 40px;
        font-size: 13px;
    }
    .search-icon {
        width: 26px;
        height: 26px;
    }
    .search-icon::before {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
        gap: 6px;
    }
    .search-box {
        width: 100%;
    }
}
