/* ===== 구인·구직 게시판 스타일 ===== */

/* 카테고리 탭 */
.job_cat_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 20px;
}
.job_cat_tab {
    display: inline-block;
    padding: 7px 20px;
    border-radius: 30px;
    border: 1.5px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.job_cat_tab:hover { border-color: #685FF4; color: #685FF4; }
.job_cat_tab.active { background: #685FF4; border-color: #685FF4; color: #fff; }

/* 검색바 */
.job_search_bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.job_search_bar form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.job_sel {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    flex-shrink: 0;
}
.job_stx {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.job_search_btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #685FF4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.job_search_btn:hover { background: #574dd6; }
.job_total { font-size: 13px; color: #888; white-space: nowrap; }
.job_total strong { color: #685FF4; }

/* 목록 카드 */
.job_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.job_card {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.job_card:hover {
    border-color: #685FF4;
    box-shadow: 0 2px 12px rgba(104,95,244,0.10);
    text-decoration: none;
}
.job_notice {
    border-color: #f0c040;
    background: #fffdf0;
}

.job_card_top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.job_badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.badge_recruit { background: #e8f5e9; color: #2e7d32; }
.badge_seek    { background: #e3f2fd; color: #1565c0; }
.badge_notice  { background: #fff3cd; color: #856404; }

.job_title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    flex: 1;
}
.job_cmt {
    font-size: 12px;
    color: #685FF4;
    font-weight: 700;
    flex-shrink: 0;
}
.job_new {
    font-size: 11px;
    font-weight: 800;
    color: #e53935;
    flex-shrink: 0;
}

.job_card_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.job_meta_item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
}
.job_meta_icon { font-size: 14px; }

.job_card_foot {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.job_empty {
    text-align: center;
    padding: 60px 0;
    color: #aaa;
    font-size: 15px;
}

/* 글쓰기 버튼 */
.job_write_wrap {
    display: flex;
    justify-content: flex-end;
    margin: 14px 0;
}
.job_write_btn {
    padding: 9px 24px;
    background: #685FF4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.job_write_btn:hover { background: #574dd6; }

/* ===== 작성 폼 ===== */
.job_write_form_wrap {
    max-width: 800px;
    margin: 0 auto;
}
.job_form_title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #685FF4;
}
.job_form_tbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.job_form_tbl th {
    width: 130px;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    background: #f8f8ff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}
.job_form_tbl td {
    padding: 10px 12px;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}
.req { color: #e53935; }
.job_form_inp {
    width: 100%;
    max-width: 500px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.job_form_inp:focus { border-color: #685FF4; outline: none; }
.job_form_sel {
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 160px;
}
.job_form_file { font-size: 13px; }

.job_form_btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.job_btn_cancel {
    padding: 10px 28px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}
.job_btn_cancel:hover { border-color: #999; color: #222; }
.job_btn_submit {
    padding: 10px 32px;
    background: #685FF4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.job_btn_submit:hover { background: #574dd6; }

/* ===== 뷰 ===== */
.job_view_wrap {
    max-width: 860px;
    margin: 0 auto;
}
.job_view_head {
    padding: 20px 0 16px;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 20px;
}
.job_view_title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 10px 0 10px;
    line-height: 1.4;
}
.job_view_info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
}

.job_info_box {
    background: #f7f7ff;
    border: 1px solid #e0dcff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.job_info_row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.job_info_label {
    min-width: 120px;
    font-size: 13px;
    font-weight: 600;
    color: #685FF4;
    flex-shrink: 0;
}
.job_info_val {
    font-size: 14px;
    color: #333;
}

.job_view_content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.job_file_list {
    margin-bottom: 16px;
    font-size: 13px;
}
.job_file_list strong { display: block; margin-bottom: 6px; color: #444; }
.job_file_item {
    display: inline-block;
    margin-right: 12px;
    color: #685FF4;
    text-decoration: none;
}
.job_file_item:hover { text-decoration: underline; }

.job_link_row {
    margin-bottom: 8px;
    font-size: 13px;
}
.job_link_row strong { margin-right: 8px; color: #444; }

.job_view_btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
    flex-wrap: wrap;
}
.job_btn_list {
    padding: 9px 24px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}
.job_btn_list:hover { border-color: #999; }
.job_btn_edit {
    padding: 9px 24px;
    background: #685FF4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.job_btn_edit:hover { background: #574dd6; }
.job_btn_del {
    padding: 9px 24px;
    background: #fff;
    color: #e53935;
    border: 1.5px solid #e53935;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.job_btn_del:hover { background: #ffeaea; }

/* 모바일 */
@media (max-width: 768px) {
    .job_cat_tab { font-size: 13px; padding: 6px 14px; }
    .job_search_bar form { flex-wrap: wrap; }
    .job_stx { min-width: 140px; }
    .job_form_tbl th { width: 90px; font-size: 13px; padding: 10px 10px; }
    .job_form_inp { max-width: 100%; }
    .job_view_title { font-size: 18px; }
    .job_info_label { min-width: 90px; }
    .job_card { padding: 12px 14px; }
}
