@charset "utf-8";

/* ============================================
   먹튀정보 및 신고 — 전용 리스트 스킨
   ============================================ */

:root {
  --mk-bg: #ffffff;
  --mk-card: #ffffff;
  --mk-hover: #f8f9fb;
  --mk-text: #191f28;
  --mk-text-sec: #4e5968;
  --mk-muted: #8b95a1;
  --mk-line: #e8ebed;
  --mk-danger: #ef4444;
  --mk-danger-hover: #dc2626;
  --mk-danger-bg: rgba(239,68,68,0.07);
  --mk-primary: #3182f6;
  --mk-primary-light: #e8f3ff;
  --mk-notice-bg: #fffbeb;
  --mk-notice-border: #fbbf24;
}

/* ── 래퍼 ── */
#bo_list_wrap.mk-wrap {
  background: var(--mk-bg);
  border-radius: 12px;
  padding: 0;
  box-shadow: none;
}

/* ============================================
   1. Banner (게시판 밖 상단)
   ============================================ */
.mk-banner {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 8px;
  margin-top: -6px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.mk-banner::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.mk-banner::after {
  content: '';
  position: absolute;
  right: 50px;
  bottom: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.mk-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.mk-banner h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.4;
}
.mk-banner p {
  font-size: 12.5px;
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   2. Search
   ============================================ */
.mk-search-box {
  background: var(--mk-hover);
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 16px 8px;
}
.mk-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mk-search-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238b95a1'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  padding: 8px 28px 8px 12px;
  font-size: 13px;
  color: var(--mk-text-sec);
  min-width: 90px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mk-search-select:focus {
  outline: none;
  border-color: var(--mk-danger);
}
.mk-search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.mk-search-input-group:focus-within {
  border-color: var(--mk-danger);
}
.mk-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--mk-text);
  outline: none;
}
.mk-search-input::placeholder {
  color: var(--mk-muted);
}
.mk-search-submit {
  border: none;
  background: var(--mk-danger);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.mk-search-submit:hover {
  background: var(--mk-danger-hover);
}

/* ============================================
   3. Category Chips
   ============================================ */

/* 컨테이너 리셋 */
#bo_list_wrap.mk-wrap #bo_cate {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 12px 16px 6px !important;
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
}
#bo_list_wrap.mk-wrap #bo_cate.sly-tab {
  border: none !important;
}
#bo_list_wrap.mk-wrap #bo_cate .d-flex {
  border: none !important;
  border-left: none !important;
}
#bo_list_wrap.mk-wrap #bo_cate hr {
  display: none !important;
}
#bo_list_wrap.mk-wrap #bo_cate .px-3,
#bo_list_wrap.mk-wrap #bo_cate .px-sm-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* LI 리셋 */
#bo_list_wrap.mk-wrap #bo_cate #bo_cate_ul > li {
  list-style: none !important;
  flex-shrink: 0 !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  float: none !important;
  border: none !important;
}

/* Chip 스타일 — sly 호환 유지 (display 변경 안 함) */
#bo_list_wrap.mk-wrap #bo_cate #bo_cate_ul > li > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 34px !important;
  letter-spacing: -0.01em !important;
  color: var(--mk-text-sec) !important;
  background: #f2f4f6 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
#bo_list_wrap.mk-wrap #bo_cate #bo_cate_ul > li > a:hover {
  background: #e5e8eb !important;
  color: var(--mk-text) !important;
  text-decoration: none !important;
}
#bo_list_wrap.mk-wrap #bo_cate #bo_cate_ul > li.active > a {
  background: var(--mk-text) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(25, 31, 40, 0.18) !important;
}

/* Sly prev/next 버튼 — 기본 숨김, overflow 시 표시 */
#bo_list_wrap.mk-wrap #bo_cate .sly-btn {
  display: none !important;
}
#bo_list_wrap.mk-wrap #bo_cate.sly-overflow .sly-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 34px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--mk-muted) !important;
  font-size: 15px !important;
  cursor: pointer !important;
}
#bo_list_wrap.mk-wrap #bo_cate.sly-overflow .sly-btn:hover {
  background: var(--mk-hover) !important;
  color: var(--mk-text-sec) !important;
}

/* ============================================
   4. Toolbar
   ============================================ */
.mk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 10px;
}
.mk-toolbar-left,
.mk-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sort Button */
.mk-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-text-sec);
  cursor: pointer;
  transition: color 0.15s;
}
.mk-sort-btn:hover,
.mk-sort-btn:focus {
  color: var(--mk-danger);
  outline: none;
}
.mk-sort-btn.dropdown-toggle::after {
  display: none;
}
.mk-sort-btn .fa-chevron-down {
  font-size: 9px;
  opacity: 0.5;
}
.mk-sort-dropdown {
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 4px 0;
  min-width: 120px;
}
a.mk-sort-item {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--mk-text-sec);
  text-decoration: none;
  transition: background 0.1s;
}
a.mk-sort-item:hover {
  background: var(--mk-danger-bg);
  color: var(--mk-danger);
  text-decoration: none;
}

/* Icon Buttons */
.mk-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--mk-line);
  background: var(--mk-card);
  color: var(--mk-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  padding: 0;
}
.mk-icon-btn:hover {
  border-color: var(--mk-danger);
  color: var(--mk-danger);
  text-decoration: none;
}

/* Admin Dropdown */
.mk-admin-dropdown {
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 4px 0;
  min-width: 140px;
}
.mk-admin-dropdown .dropdown-item {
  font-size: 13px;
  padding: 8px 16px;
  color: var(--mk-text-sec);
}
.mk-admin-dropdown .dropdown-item:hover {
  background: var(--mk-danger-bg);
  color: var(--mk-danger);
}

/* Write (신고하기) Button */
.mk-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--mk-danger);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.mk-write-btn:hover {
  background: var(--mk-danger-hover);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   5. 리스트 영역
   ============================================ */
#bo_list_wrap.mk-wrap #bo_list {
  background: var(--mk-card);
}

/* 테이블 헤드 숨김 */
#bo_list_wrap.mk-wrap .na-table-head {
  display: none !important;
}

/* 게시글 행 */
#bo_list_wrap.mk-wrap #bo_list ul.na-table {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
}
#bo_list_wrap.mk-wrap #bo_list ul.na-table li {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px !important;
  border-top: 1px solid var(--mk-line);
  border-bottom: none;
  background: var(--mk-card);
  cursor: pointer;
  transition: background .12s ease;
  gap: 16px;
  margin: 0;
}
#bo_list_wrap.mk-wrap #bo_list ul.na-table li:hover {
  background: var(--mk-hover);
}

/* 공지 행 */
#bo_list_wrap.mk-wrap #bo_list ul.na-table li.mk-notice {
  background: var(--mk-notice-bg);
  border-left: 3px solid var(--mk-notice-border);
}
#bo_list_wrap.mk-wrap #bo_list ul.na-table li.mk-notice:hover {
  background: #fef9e7;
}

/* 체크박스 */
#bo_list_wrap.mk-wrap .mk-chk {
  flex-shrink: 0;
  width: 18px;
}

/* ============================================
   6. 게시글 내부 요소
   ============================================ */

/* 콘텐츠 영역 (flex-column) */
.mk-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 1행: 카테고리 tag + 제목 */
.mk-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mk-title-row a.na-subject {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mk-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  min-width: 0;
  flex: 1;
}
.mk-title-row a.na-subject:hover {
  color: var(--mk-primary);
}

/* 카테고리 tag — 회색 단일 */
.mk-cat-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
}

/* 공지 뱃지 */
.mk-notice-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--mk-text);
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* 2행: 업체명 + 피해액 */
.mk-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 공통 tag 기본 — 회색 둥근사각형 */
.mk-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  gap: 4px;
}

/* tag 내 라벨/값 분리 */
.mk-tag-label {
  color: #9ca3af;
  font-weight: 400;
}
.mk-tag-value {
  font-weight: 600;
  color: #374151;
}

/* 피해액 tag — 레드 경고 */
.mk-tag.mk-tag-danger {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.4);
  color: #dc2626;
}
.mk-tag.mk-tag-danger .mk-tag-label {
  color: #ef4444;
}
.mk-tag.mk-tag-danger .mk-tag-value {
  color: #dc2626;
  font-weight: 700;
}

/* 우측 작성자 블록 */
.mk-author {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 80px;
}
.mk-author-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mk-author-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mk-text);
  white-space: nowrap;
}
.mk-author-name .xp-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.mk-author-name .xp-icon img {
  height: 17px;
  width: auto;
  vertical-align: middle;
}
.mk-author-name .sv_wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mk-author-name .sv_wrap .sv_member {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.mk-author-name a,
.mk-author-name .sv_wrap a,
.mk-author-name .sv_member a {
  color: var(--mk-text) !important;
  text-decoration: none !important;
}
.mk-author-name .profile_img {
  display: none !important;
}
.mk-author-time {
  font-size: 12.5px;
  color: var(--mk-muted);
}
.mk-author-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.mk-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  color: var(--mk-muted);
}
.mk-stat i {
  font-size: 11.5px;
}

/* 빈 목록 */
#bo_list_wrap.mk-wrap .mk-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--mk-muted);
  font-size: 14px;
}

/* ============================================
   7. 페이지네이션
   ============================================ */
#bo_list_wrap.mk-wrap .pagination .page-link {
  border: none;
  border-radius: 8px;
  color: var(--mk-text-sec);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  margin: 0 2px;
}
#bo_list_wrap.mk-wrap .pagination .page-item.active .page-link {
  background: var(--mk-danger);
  color: #fff;
}
#bo_list_wrap.mk-wrap .pagination .page-link:hover {
  background: var(--mk-danger-bg);
  color: var(--mk-danger);
}

/* ============================================
   8. 반응형
   ============================================ */
@media (max-width: 575px) {
  .mk-banner {
    padding: 16px 18px;
    border-radius: 10px;
  }
  .mk-banner h2 { font-size: 15px; }

  #bo_list_wrap.mk-wrap #bo_cate {
    padding: 10px 12px 4px !important;
  }

  .mk-toolbar {
    padding: 6px 12px 8px;
  }

  #bo_list_wrap.mk-wrap #bo_list ul.na-table li {
    padding: 12px 12px !important;
    gap: 8px;
  }
  .mk-info-row {
    gap: 6px;
    flex-wrap: wrap;
  }
  .mk-tag {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }
  .mk-author {
    min-width: 60px;
  }

  .mk-search-box {
    margin: 0 12px 6px;
  }
  .mk-search-row {
    flex-wrap: wrap;
  }
  .mk-search-select {
    min-width: 0;
    flex: 1;
  }
  .mk-search-input-group {
    flex-basis: 100%;
  }

  .mk-write-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}
