@charset "utf-8";

/* ============================================================
   weblistbox 모바일 게시판 스킨 - 모던 뉴스/웹진 스타일 리뉴얼
   ============================================================ */

/* ── 상단 액션 바 (전체건수 & 관리자 옵션) ── */
.bo_top_action_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 14px;
}

.bo_total_badge {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.bo_total_badge strong {
    color: #2563eb;
    font-weight: 700;
}

.bo_top_right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn_admin_top, .btn_rss_top, .btn_more_opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn_admin_top:hover, .btn_rss_top:hover, .btn_more_opt:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.bo_admin_opt_wrap {
    position: relative;
}

.more_opt {
    display: none;
    position: absolute;
    top: 38px;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    min-width: 120px;
    z-index: 1000;
    padding: 6px 0;
    list-style: none;
    margin: 0;
}

.more_opt li button {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 9px 14px;
    font-size: 13px;
    color: #334155;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.more_opt li button:hover {
    background: #f8fafc;
    color: #2563eb;
}

/* ── 카테고리 탭 (가로 스크롤 필 스타일) ── */
#bo_cate {
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px;
}

#bo_cate::-webkit-scrollbar {
    display: none;
}

#bo_cate_ul {
    display: flex;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#bo_cate_ul li {
    flex-shrink: 0;
}

#bo_cate_ul a {
    display: block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

#bo_cate #bo_cate_on {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* ── 체크박스 스타일 ── */
.chk_box {
    position: relative;
}

.selec_chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chk_box label span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    vertical-align: middle;
    margin-right: 6px;
}

.selec_chk:checked + label span {
    background: #2563eb;
    border-color: #2563eb;
}

.all_chk {
    padding: 8px 4px 12px;
    font-size: 13px;
    color: #64748b;
}

.bo_chk {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

/* ── 게시물 카드 리스트 (.weblist_card_ul) ── */
.weblist_card_ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.weblist_item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.weblist_item:active {
    transform: scale(0.99);
}

.weblist_item.bo_notice {
    border-left: 4px solid #ef4444;
}

.card_inner {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 썸네일 박스 */
.card_thumb_link {
    text-decoration: none;
    display: block;
}

.card_thumb_box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #f1f5f9;
    overflow: hidden;
}

.card_thumb_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card_thumb_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: -0.2px;
}

.card_notice_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.card_thumb_box .card_notice_badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* 본문 영역 */
.card_body {
    padding: 14px 16px 16px;
}

.card_top_badges {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card_cat_tag {
    font-size: 11.5px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 4px;
}

.card_title_link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card_title {
    margin: 0 0 6px;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    letter-spacing: -0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new_badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    background: #ef4444;
    padding: 1px 4px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}

.card_desc_link {
    text-decoration: none;
    display: block;
}

.card_desc {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 하단 메타 정보 바 */
.card_meta_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.card_meta_left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card_meta_author {
    color: #475569;
    font-weight: 600;
}

.card_meta_dot {
    color: #cbd5e1;
}

.card_comment_badge {
    color: #2563eb;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

/* 승인 상태 칩 (파랑색 모던 배지) */
.confirm_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    border-radius: 5px !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    letter-spacing: -0.2px !important;
}

.confirm_btn.confirm_after,
.confirm_after {
    background-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25) !important;
}

.confirm_btn.confirm_befor,
.confirm_befor {
    background-color: #64748b !important;
    background: #64748b !important;
    color: #ffffff !important;
    border: 1px solid #64748b !important;
}

/* 빈 목록 */
.empty_card_list {
    text-align: center;
    padding: 40px 10px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

.empty_icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: #cbd5e1;
}

/* ── 모던 페이지네이션 ── */
.mob_pagination_wrap {
    margin: 24px 0 16px;
    text-align: center;
}

.mob_pagination_wrap .pg_wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mob_pagination_wrap .pg_page,
.mob_pagination_wrap .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.mob_pagination_wrap .pg_current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* ── 모던 검색 필드 ── */
#bo_sch {
    margin: 20px 0 30px;
    border: none;
    padding: 0;
}

#bo_sch legend {
    display: none;
}

.bo_sch_box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 5px 3px 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bo_sch_select {
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    padding-right: 8px;
    border-right: 1px solid #e2e8f0;
    outline: none;
}

.bo_sch_input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #1e293b;
    outline: none;
}

.bo_sch_submit {
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.bo_sch_submit:hover {
    background: #1d4ed8;
}

/* ── 글쓰기 플로팅 버튼 (FAB) ── */
.mob_fab_write_btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.mob_fab_write_btn:active {
    transform: scale(0.92);
}

/* ── 게시판 본문 뷰 (view.skin.php) 모던 개선 ── */
#bo_v {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    padding: 20px 16px;
    margin-bottom: 20px;
}

#bo_v > header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.bo_v_cate {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.bo_v_tit {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    color: #0f172a !important;
    margin: 4px 0 12px !important;
    letter-spacing: -0.4px !important;
}

#bo_v_info {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin: 12px 0 16px !important;
}

#bo_v_con {
    font-size: 16.5px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    padding: 10px 0 !important;
}

#bo_v_con img {
    border-radius: 10px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 10px 0 !important;
}


/* ── 1. 기자 프로필 사진 & 정보 가로(Flex) 배치 ── */
.bo_v_reporter_top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
}

.bo_v_reporter_top .reporter_photo {
    width: 58px !important;
    height: 58px !important;
    flex-shrink: 0 !important;
}

.bo_v_reporter_top .reporter_photo a,
.bo_v_reporter_top .reporter_photo img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

.bo_v_reporter_top .reporter_info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.bo_v_reporter_top .reporter_line1 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.bo_v_reporter_top .reporter_name {
    text-decoration: none !important;
}

.bo_v_reporter_top .reporter_name strong {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.bo_v_reporter_top .if_date {
    font-size: 12px !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.bo_v_reporter_top .reporter_email {
    margin: 1px 0 !important;
}

.bo_v_reporter_top .reporter_email a {
    font-size: 12.5px !important;
    color: #64748b !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.bo_v_reporter_top .reporter_more .btn_other_articles {
    display: inline-block !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    margin-top: 2px !important;
}

/* ── 2. 본문 제목 및 숨김 처리 ── */
#bo_v_info h2,
#bo_v_atc_title {
    display: none !important;
}

/* ── 3. 하단 액션 버튼 그룹 (목록 / 답변 / 글쓰기 / 수정 / 삭제) ── */
.mob_view_bottom_actions {
    margin: 24px 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.mob_btn_group_main {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.mob_v_btn {
    flex: 1 !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.mob_v_btn:active {
    transform: scale(0.98) !important;
}

.mob_btn_list {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.mob_btn_reply {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid #2563eb !important;
}

.mob_btn_write {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* 관리자 서브 액션 버튼 */
.mob_btn_group_sub {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
}

.mob_v_subbtn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

.mob_v_subbtn.mob_btn_del {
    color: #ef4444 !important;
    border-color: #fecaca !important;
    background: #fff5f5 !important;
}

/* ── 4. 이전글 / 다음글 모던 카드 네비게이션 ── */
.mob_prev_next_wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 18px !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 16px !important;
}

.mob_pn_item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

.mob_pn_item:hover, .mob_pn_item:active {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

.mob_pn_badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}

.mob_pn_item.mob_next .mob_pn_badge {
    color: #0284c7 !important;
    background: #f0f9ff !important;
}

.mob_pn_title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
}


/* ── 5. 스크랩 버튼 모던 캡슐 정돈 (글자 세로 깨짐 방지) ── */
#bo_v_share.mob_v_scrap_wrap,
.mob_v_scrap_wrap {
    display: block !important;
    position: static !important;
    text-align: center !important;
    margin: 16px 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#bo_v_share::before,
#bo_v_share::after {
    display: none !important;
}

.mob_scrap_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 38px !important;
    padding: 0 18px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.15s ease !important;
}

.mob_scrap_btn:hover,
.mob_scrap_btn:active {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #2563eb !important;
}

.mob_scrap_btn i {
    font-size: 14px !important;
    color: #2563eb !important;
}


/* ── 6. 본문(bo_v_con) 내 고정폭 테이블 & 이미지 모바일 화면 초과 완벽 방지 ── */
#bo_v,
#bo_v_atc,
#bo_v_con {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#bo_v_con table,
#bo_v_atc table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
    margin: 10px 0 !important;
}

#bo_v_con td,
#bo_v_atc td,
#bo_v_con th {
    max-width: 100% !important;
    width: auto !important;
    word-break: break-all !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

#bo_v_con figure,
#bo_v_atc figure {
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: transparent !important;
}

#bo_v_con img,
#bo_v_atc img,
#bo_v_img img,
.view_image img,
.photo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 10px auto !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}
