@charset "utf-8";

/* ═══════════════════════════════════════════════════════════════════════════
   CouponCMS Board Skin — Mobile
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 공통 변수 ── */
:root {
  --bd-primary:   #2d5a27;
  --bd-cream:     #fbf9f4;
  --bd-sand:      #f0ebe0;
  --bd-border:    #e8e3db;
  --bd-stone:     #7a7468;
  --bd-text:      #26231e;
  --bd-muted:     #9a9590;
  --bd-rose:      #c0392b;
  --bd-radius:    6px;
}

/* ── 목록 레이아웃 ── */
#bo_list { position: relative; margin: 0 0 24px; }
#bo_list:after { display: block; visibility: hidden; clear: both; content: ""; }

/* ── 카테고리 탭 (스크롤 가능) ── */
#bo_cate { margin: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#bo_cate::-webkit-scrollbar { display: none; }
#bo_cate h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_cate ul {
  display: flex; flex-wrap: nowrap; gap: 6px;
  padding: 0 0 4px; margin: 0; list-style: none;
  white-space: nowrap;
}
#bo_cate li { display: inline-block; flex-shrink: 0; }
#bo_cate a {
  display: block; padding: 7px 14px;
  border: 1px solid var(--bd-border); border-radius: 20px;
  font-size: 13px; color: var(--bd-stone);
}
#bo_cate #bo_cate_on {
  background: var(--bd-text); color: #fbf9f4;
  border-color: var(--bd-text); font-weight: 600;
}

/* ── 상단 버튼/정보 영역 ── */
#bo_btn_top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
#bo_btn_top:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_list_total { font-size: 12px; color: var(--bd-muted); }

.btn_bo_user { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.btn_bo_user li { position: relative; }
.btn_bo_user .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--bd-radius);
  border: 1px solid var(--bd-border); background: #fff;
  color: var(--bd-stone); font-size: 15px; cursor: pointer;
}
.btn_bo_user .btn_admin { background: var(--bd-sand); }

/* ── 게시글 목록 (카드형) ── */
.tbl_head01 table { display: none; } /* 테이블 숨김 */
.tbl_head01 caption { display: none; }

/* 모바일용 카드 리스트 */
#bo_list li {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--bd-border);
  background: var(--bd-cream);
}
#bo_list li.bo_notice { background: #f6f3ee; }
#bo_list li:last-child { border-bottom: 0; }

/* 공지 태그 */
.bo_notice .notice_icon {
  display: inline-block; padding: 1px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: var(--bd-text); color: #fbf9f4; margin-bottom: 4px;
}

/* 제목 행 */
.bo_subject { display: block; width: 100%; padding-bottom: 6px; }
.bo_tit { display: block; }
.bo_tit a {
  color: var(--bd-text); font-weight: 500; font-size: 15px;
  line-height: 1.45; text-decoration: none;
  word-break: break-all;
}
.bo_current { color: var(--bd-rose); font-size: 11px; }
.cnt_cmt {
  display: inline-block; padding: 0 5px; margin-left: 3px;
  background: var(--bd-sand); color: var(--bd-primary);
  font-size: 11px; border-radius: 3px; vertical-align: middle;
}
.new_icon {
  display: inline-block; width: 14px; line-height: 14px; font-size: 10px;
  color: #fff; background: var(--bd-primary); text-align: center;
  border-radius: 2px; margin-left: 2px; font-weight: bold; vertical-align: middle;
}
.hot_icon {
  display: inline-block; width: 14px; line-height: 14px; font-size: 10px;
  color: #fff; background: var(--bd-rose); text-align: center;
  border-radius: 2px; vertical-align: middle;
}
.bo_cate_link {
  display: inline-block; margin-right: 4px; padding: 2px 7px;
  background: var(--bd-sand); color: var(--bd-stone);
  font-size: 11px; border-radius: 4px;
}

/* 정보 행 (작성자 · 날짜 · 조회) */
.bo_info { position: relative; padding-top: 4px; line-height: 18px; color: var(--bd-muted); font-size: 12px; }
.bo_info:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_info .bo_date { margin-right: 8px; }
.bo_info .bo_chk { display: none; }

.bo_fx { float: right; margin-bottom: 6px; }
.bo_fx ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 4px; }

/* 빈 목록 */
.empty_table { text-align: center; padding: 40px 0 !important; color: var(--bd-muted); font-size: 14px; }

/* ── 체크박스 (숨김처리) ── */
.chk_all { display: none; }
.selec_chk { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; z-index: -1; }
.chk_box input[type="checkbox"] + label span {
  float: left; width: 14px; height: 14px;
  background: #fff; border: 1px solid var(--bd-border); border-radius: 3px;
}
.chk_box input[type="checkbox"]:checked + label span {
  background: var(--bd-primary) url(./img/chk.png) no-repeat 50% 50%;
  border-color: var(--bd-primary);
}

/* ── 관리자 옵션 드롭다운 ── */
.more_opt {
  display: none; position: absolute; top: 44px; right: 0;
  background: #fff; border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius); z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 100px;
}
.more_opt li { border-bottom: 1px solid var(--bd-border); margin: 0; float: none; }
.more_opt li:last-child { border-bottom: 0; }
.more_opt li button, .more_opt li a {
  display: block; width: 100%; padding: 12px 14px;
  font-size: 13px; color: var(--bd-stone);
  background: none; border: 0; text-align: left; cursor: pointer;
}
.more_opt li i { float: right; line-height: 20px; }

/* ── 검색 ── */
.bo_sch_wrap { display: none; width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: 9999; }
.bo_sch {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff; width: 90vw; max-width: 360px;
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.2);
  border: 1px solid var(--bd-border);
}
.bo_sch h3 { padding: 16px 18px; border-bottom: 1px solid var(--bd-border); font-size: 14px; font-weight: 700; }
.bo_sch form { padding: 14px 18px; }
.bo_sch select {
  width: 100%; height: 44px; border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius); padding: 0 10px; font-size: 14px;
  background: #fff; margin-bottom: 10px;
}
.bo_sch .sch_bar {
  display: flex; border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius); overflow: hidden;
}
.bo_sch .sch_input {
  flex: 1; height: 44px; border: 0; padding: 0 12px; font-size: 14px; background: #fff;
}
.bo_sch .sch_btn {
  width: 48px; height: 44px; border: 0;
  background: var(--bd-text); color: #fff; font-size: 16px; cursor: pointer;
}
.bo_sch .bo_sch_cls {
  position: absolute; right: 4px; top: 4px;
  padding: 12px; font-size: 18px;
  border: 0; background: none; color: var(--bd-muted); cursor: pointer;
}
.bo_sch_bg { background: rgba(0,0,0,.4); width: 100%; height: 100%; position: fixed; top: 0; left: 0; }

/* ── 게시글 읽기 ── */
#bo_v { margin-bottom: 24px; }

#bo_v_title { padding: 18px 0 14px; border-bottom: 2px solid var(--bd-text); }
#bo_v_title .bo_v_cate {
  display: inline-block; padding: 2px 9px; margin-bottom: 8px;
  background: var(--bd-sand); color: var(--bd-stone);
  font-size: 11px; border-radius: 4px;
}
#bo_v_title .bo_v_tit {
  display: block; font-size: 19px; font-weight: 700;
  color: var(--bd-text); margin: 0; line-height: 1.4; word-break: break-all;
}

#bo_v_info { padding: 10px 0; border-bottom: 1px solid var(--bd-border); color: var(--bd-muted); font-size: 13px; }
#bo_v_info:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_v_info h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_v_info strong { font-weight: 600; color: var(--bd-text); margin-right: 6px; }

#bo_v_con {
  padding: 22px 0; line-height: 1.85;
  color: var(--bd-text); font-size: 15px;
  min-height: 100px; word-break: break-all;
}
#bo_v_con a { color: var(--bd-primary); text-decoration: underline; }
#bo_v_con img { max-width: 100%; height: auto; }

/* 첨부파일 */
#bo_v_file h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_v_file ul { margin: 0; list-style: none; }
#bo_v_file li {
  padding: 12px 14px; margin: 6px 0;
  border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
  display: flex; align-items: center; gap: 10px;
}
#bo_v_file li i { color: var(--bd-muted); font-size: 18px; }
#bo_v_file a { color: var(--bd-text); text-decoration: none; font-size: 14px; }

/* 추천/비추천 */
#bo_v_act { margin: 18px 0; text-align: center; }
#bo_v_act .bo_v_good, #bo_v_act .bo_v_nogood {
  display: inline-block; border: 1px solid var(--bd-border);
  padding: 12px 28px; border-radius: 30px;
  font-size: 14px; color: var(--bd-stone); margin: 0 4px;
}

/* 이전/다음 글 */
.bo_v_nb { margin: 16px 0; clear: both; }
.bo_v_nb:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_v_nb li {
  border-top: 1px solid var(--bd-border); padding: 12px 0;
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px;
}
.bo_v_nb li:last-child { border-bottom: 1px solid var(--bd-border); }
.bo_v_nb li .nb_tit { color: var(--bd-muted); flex-shrink: 0; min-width: 36px; font-size: 12px; }
.bo_v_nb li a { color: var(--bd-text); line-height: 1.5; word-break: break-all; }
.bo_v_nb li .nb_date { margin-left: auto; color: var(--bd-muted); font-size: 12px; white-space: nowrap; }

/* 목록/글쓰기 버튼 */
.view_is_list {
  margin: 10px 0; padding: 0;
  height: auto; background: transparent;
  border-bottom: 0; text-align: right;
}
.view_is_list li { display: inline-block; }

/* ── 댓글 ── */
.cmt_btn {
  display: block; width: 100%; text-align: left;
  border: 0; border-bottom: 2px solid var(--bd-text);
  background: none; font-weight: 700; font-size: 14px;
  padding: 0 0 10px; margin: 24px 0 0; color: var(--bd-text); cursor: default;
}
.cmt_btn span.total { color: var(--bd-primary); margin-right: 3px; }

#bo_vc h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_vc article {
  padding: 16px 0; border-bottom: 1px solid var(--bd-border); position: relative;
}
#bo_vc article .pf_img { float: left; margin-right: 10px; }
#bo_vc article .pf_img img { border-radius: 50%; width: 32px; height: 32px; }
#bo_vc article .cm_wrap { float: left; width: calc(100% - 42px); }
#bo_vc .member, #bo_vc .sv_member { font-weight: 600; color: var(--bd-text); font-size: 14px; }
.bo_vc_hdinfo { font-size: 12px; color: var(--bd-muted); margin-top: 2px; }
#bo_vc .cmt_contents { line-height: 1.7; padding: 7px 0 0; font-size: 14px; color: var(--bd-text); }
#bo_vc_empty { padding: 36px 0 !important; color: var(--bd-muted); text-align: center; font-size: 14px; }

/* 댓글 작성 */
.bo_vc_w { position: relative; margin: 14px 0; }
.bo_vc_w textarea {
  width: 100%; height: 90px; padding: 12px;
  border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
  font-size: 14px; color: var(--bd-text); background: #fff;
  resize: none; -webkit-appearance: none;
}
.bo_vc_w textarea:focus { border-color: var(--bd-primary); outline: none; }
.bo_vc_w_info { margin: 8px 0; }
.bo_vc_w_info .frm_input {
  height: 44px; padding: 0 12px; border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius); font-size: 14px;
  margin-bottom: 6px; width: 100%; display: block;
}
.bo_vc_w .btn_confirm { margin-top: 8px; }
.bo_vc_w .btn_submit {
  height: 44px; padding: 0 20px;
  background: var(--bd-text); color: #fbf9f4;
  border: 0; border-radius: var(--bd-radius); font-size: 14px; font-weight: 600; cursor: pointer;
  width: 100%;
}

/* 댓글 액션 */
.bo_vl_opt { position: absolute; top: 14px; right: 0; }
.bo_vc_act {
  display: none; position: absolute; right: 0; top: 34px;
  background: #fff; border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius); z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); min-width: 80px;
}
.bo_vc_act li { border-bottom: 1px solid var(--bd-border); }
.bo_vc_act li:last-child { border-bottom: 0; }
.bo_vc_act li a { display: block; padding: 11px 14px; font-size: 13px; color: var(--bd-stone); }

/* ── 글쓰기 ── */
#bo_w { padding: 0; }
#bo_w .write_div { margin: 10px 0; }
#bo_w .frm_input {
  height: 44px; padding: 0 12px;
  border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
  font-size: 14px; background: #fff; color: var(--bd-text);
  width: 100%; display: block;
}
#bo_w .frm_input:focus { border-color: var(--bd-primary); outline: none; }
#bo_w .btn_submit {
  height: 48px; width: 100%;
  background: var(--bd-text); color: #fbf9f4;
  border: 0; border-radius: var(--bd-radius); font-size: 16px; font-weight: 600; cursor: pointer;
}
#bo_w .btn_cancel {
  height: 48px; width: 100%;
  border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
  background: #fff; color: var(--bd-stone); font-size: 15px; cursor: pointer;
  margin-top: 8px; display: block;
}
#bo_w .btn_confirm { display: flex; flex-direction: column; gap: 0; }
#bo_w .bo_w_select select {
  border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
  height: 44px; padding: 0 10px; font-size: 14px; width: 100%;
}
#bo_w #wr_email, #bo_w #wr_homepage, #bo_w #wr_subject { width: 100%; }

/* 파일첨부 */
.filebox .fileName {
  display: block; width: 100%; height: 44px;
  padding-left: 12px; line-height: 44px;
  border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
  background: #fff; font-size: 13px; color: var(--bd-stone);
}
.filebox .btn_file {
  display: inline-block; position: absolute; right: 8px; top: 7px;
  border: 1px solid var(--bd-primary); border-radius: var(--bd-radius);
  padding: 0 12px; height: 30px; line-height: 30px;
  color: var(--bd-primary); font-size: 13px; background: #fff; cursor: pointer;
}
.filebox input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* 페이징 */
#pagingnav { text-align: center; padding: 20px 0; }
#pagingnav .pg_wrap { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
#pagingnav a, #pagingnav strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px;
  border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
  font-size: 13px; color: var(--bd-stone);
}
#pagingnav strong.pg_current, #pagingnav .pg_current {
  background: var(--bd-text); color: #fbf9f4; border-color: var(--bd-text);
  font-weight: 700;
}
