/* ================================================
   후이소 - Company Pages CSS
   업체 등록 / 검색목록 / 상세 페이지
   ================================================ */

/* ── 공통 페이지 래퍼 ── */
.nb_page {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
    background: #F8FAFC;
}
.nb_page * { box-sizing: border-box; }
.nb_page a { text-decoration: none; color: inherit; }

/* ── 페이지 헤더 ── */
.nb_page_header {
    background: linear-gradient(135deg, #4361EE, #3A0CA3);
    padding: 32px 0;
    text-align: center;
    color: #fff;
}
.nb_page_header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}
.nb_page_header p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 6px;
}
.nb_page_nav {
    background: rgba(0,0,0,0.15);
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
}
.nb_page_nav a { color: rgba(255,255,255,0.7); }
.nb_page_nav a:hover { color: #fff; }
.nb_page_nav span { color: rgba(255,255,255,0.5); margin: 0 8px; }

/* ── 컨테이너 ── */
.nb_page_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* ══════════════════════════
   FORM (등록 폼)
   ══════════════════════════ */
.nb_form_card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 40px;
    margin-bottom: 24px;
}
.nb_form_card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E8EDFF;
}
.nb_form_card h2 em {
    color: #4361EE;
    font-style: normal;
}
.nb_form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.nb_form_group {
    margin-bottom: 20px;
}
.nb_form_group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.nb_form_group label .req {
    color: #F72585;
    margin-left: 2px;
}
.nb_form_group input,
.nb_form_group select,
.nb_form_group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #334155;
    transition: all 0.2s;
    background: #FAFBFC;
}
.nb_form_group input:focus,
.nb_form_group select:focus,
.nb_form_group textarea:focus {
    outline: none;
    border-color: #4361EE;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
    background: #fff;
}
.nb_form_group textarea { min-height: 120px; resize: vertical; }
.nb_form_hint {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 4px;
}

/* ── 버튼 ── */
.nb_btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}
.nb_btn_primary {
    background: linear-gradient(135deg, #4361EE, #3A0CA3);
    color: #fff;
}
.nb_btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67,97,238,0.35);
}
.nb_btn_secondary {
    background: #F1F5F9;
    color: #64748B;
}
.nb_btn_secondary:hover { background: #E2E8F0; }
.nb_btn_group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* ══════════════════════════
   LIST (검색/목록)
   ══════════════════════════ */
.nb_list_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.nb_list_count { font-size: 15px; color: #64748B; }
.nb_list_count strong { color: #4361EE; font-weight: 700; }

/* 필터 바 */
.nb_filter_bar {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.nb_filter_bar select,
.nb_filter_bar input {
    padding: 10px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    background: #FAFBFC;
    min-width: 140px;
}
.nb_filter_bar select:focus,
.nb_filter_bar input:focus {
    outline: none;
    border-color: #4361EE;
}
.nb_filter_search {
    flex: 1;
    min-width: 200px;
}
.nb_filter_btn {
    padding: 10px 24px;
    background: #4361EE;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}
.nb_filter_btn:hover { background: #3A0CA3; }

/* 업체 카드 (리스트) */
.nb_list_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.nb_list_card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
    cursor: pointer;
}
.nb_list_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(67,97,238,0.12);
}
.nb_list_card_thumb {
    height: 180px;
    background: linear-gradient(135deg, #E8EDFF, #F0E6FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
}
.nb_list_card_status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #06D6A0;
}
.nb_list_card_body { padding: 20px; }
.nb_list_card_cat {
    font-size: 12px;
    color: #4361EE;
    font-weight: 600;
    margin-bottom: 6px;
}
.nb_list_card_name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 8px;
}
.nb_list_card_desc {
    font-size: 13px;
    color: #64748B;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.nb_list_card_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.nb_list_card_rating { color: #FFD166; font-weight: 700; }
.nb_list_card_loc { color: #94A3B8; }

/* 페이지네이션 */
.nb_pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.nb_pagination a,
.nb_pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    color: #64748B;
    transition: all 0.2s;
}
.nb_pagination a:hover { background: #F1F5F9; }
.nb_pagination .active {
    background: #4361EE;
    color: #fff;
    border-color: #4361EE;
}

/* 빈 결과 */
.nb_empty {
    text-align: center;
    padding: 80px 20px;
    color: #94A3B8;
}
.nb_empty_icon { font-size: 48px; margin-bottom: 16px; }
.nb_empty_text { font-size: 16px; }

/* ══════════════════════════
   DETAIL (상세 페이지)
   ══════════════════════════ */
.nb_detail_hero {
    background: linear-gradient(135deg, #4361EE 0%, #7209B7 100%);
    padding: 40px 0;
    color: #fff;
}
.nb_detail_hero_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 32px;
    align-items: center;
}
.nb_detail_logo {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
}
.nb_detail_info h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
}
.nb_detail_cat {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}
.nb_detail_badges { display: flex; gap: 8px; }
.nb_detail_badge {
    padding: 4px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.nb_detail_body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.nb_detail_section {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.nb_detail_section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8EDFF;
}
.nb_detail_desc { font-size: 15px; line-height: 1.8; color: #475569; }
.nb_detail_table { width: 100%; }
.nb_detail_table tr { border-bottom: 1px solid #F1F5F9; }
.nb_detail_table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    width: 100px;
}
.nb_detail_table td { padding: 10px 12px; font-size: 14px; color: #334155; }

/* 사이드 카드 */
.nb_detail_side_card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    text-align: center;
}
.nb_detail_side_card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1A1A2E;
}
.nb_detail_stat_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.nb_detail_stat {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 14px;
}
.nb_detail_stat_num {
    font-size: 22px;
    font-weight: 800;
    color: #4361EE;
}
.nb_detail_stat_label {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 2px;
}
.nb_detail_contact_btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4361EE, #3A0CA3);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
}
.nb_detail_contact_btn:hover { box-shadow: 0 6px 20px rgba(67,97,238,0.35); }
.nb_detail_contact_btn.auction {
    background: linear-gradient(135deg, #7209B7, #F72585);
}

/* ── 리뷰 ── */
.nb_review_item {
    padding: 16px 0;
    border-bottom: 1px solid #F1F5F9;
}
.nb_review_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.nb_review_author { font-weight: 600; font-size: 14px; }
.nb_review_stars { color: #FFD166; font-size: 14px; }
.nb_review_text { font-size: 14px; color: #475569; line-height: 1.7; }
.nb_review_date { font-size: 12px; color: #94A3B8; margin-top: 6px; }

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 768px) {
    .nb_form_row { grid-template-columns: 1fr; }
    .nb_form_card { padding: 24px; }
    .nb_list_grid { grid-template-columns: 1fr; }
    .nb_filter_bar { flex-direction: column; }
    .nb_detail_hero_inner { flex-direction: column; text-align: center; }
    .nb_detail_body { grid-template-columns: 1fr; }
    .nb_detail_info h1 { font-size: 24px; }
}
