/* ============================================
   모바일 검색 결과 페이지 스타일
   ============================================ */

.mobile_search_wrap {
    padding: 0;
    background: #fff;
}

/* 검색 폼 박스 */
.mobile_search_form_box {
    padding: 15px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mobile_search_input_wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    padding-top:15px;
    padding-bottom:15px;
}

.mobile_search_select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.mobile_search_input_inner {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.mobile_search_input {
    flex: 1;
    width: 100%;
    padding: 14px 15px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
}

.mobile_search_input::placeholder {
    color: #999;
}

.mobile_search_submit {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    border: none;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.mobile_search_submit:active {
    background: #5568d3;
}

.mobile_search_submit svg {
    width: 20px;
    height: 20px;
}

.mobile_search_options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile_search_radio {
    display: flex;
    gap: 15px;
    padding: 0 5px;
}

.mobile_search_radio label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.mobile_search_radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* 검색 결과 통계 */
.mobile_search_stats {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.stats_text {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.5;
}

.stats_text strong {
    color: #667eea;
    font-weight: 700;
}

.stats_detail {
    font-size: 13px;
    color: #999;
}

/* 검색 결과 없음 */
.mobile_search_no_result {
    padding: 40px 15px;
    text-align: center;
    color: #666;
}

.mobile_search_no_result p {
    font-size: 15px;
    line-height: 1.6;
}

.mobile_search_no_result strong {
    color: #667eea;
    font-weight: 700;
}

/* 게시판 필터 */
.mobile_search_board_filter {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.board_filter_scroll {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.board_filter_scroll .filter_item {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.board_filter_scroll .filter_item.active,
.board_filter_scroll .filter_item:active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* 검색 결과 목록 */
.mobile_search_results {
    padding: 0;
}

/* 게시판 섹션 */
.mobile_search_board_section {
    border-bottom: 8px solid #f8f9fa;
}

.board_section_title {
    padding: 15px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.board_section_title a {
    color: #fff;
    text-decoration: none;
}

/* 검색 결과 리스트 */
.mobile_search_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile_search_item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile_search_item:last-child {
    border-bottom: none;
}

.item_link {
    display: flex;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.item_link:active {
    background: #f8f9fa;
}

.item_thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    margin-right: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.item_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item_content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item_title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.comment_badge {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 6px;
    background: #667eea;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    vertical-align: middle;
}

.item_summary {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item_meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.meta_author {
    color: #667eea;
    font-weight: 500;
}

.meta_separator {
    color: #ddd;
}

.meta_date {
    color: #999;
}

/* 섹션 더보기 */
.board_section_more {
    padding: 12px 15px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.board_section_more a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.board_section_more a:active {
    opacity: 0.7;
}

/* 빈 상태 */
.mobile_search_empty {
    padding: 60px 15px;
    text-align: center;
    color: #999;
}

.mobile_search_empty p {
    font-size: 15px;
}

/* 페이지네이션 */
.mobile_search_pagination {
    padding: 20px 15px;
    background: #fff;
}

/* 반응형 */
@media (max-width: 360px) {
    .item_thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .item_title {
        font-size: 14px;
    }
    
    .item_summary {
        font-size: 12px;
    }
}
