@charset "utf-8";
/* ==========================================================
   Weblease Hub 공지/업데이트 보드 전용 스킨 스타일
   - 경로 : /theme/weblease_Simple-A/skin/board/hub_notice/style.css
   - 구성 :
     1) 목록(list) 스타일
     2) 읽기(view) 스타일
   ========================================================== */

/* ==========================================================
   1. 목록(list) 스타일
   ========================================================== */

/* 상단 영역 */
.wl-notice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* 관리자 선택 영역 */
.wl-notice-admin {
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 카드 리스트 */
.wl-notice-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* 개별 카드 */
.wl-notice-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.1rem 1.4rem;
  border-radius: 0.85rem;
  background: rgba(15, 20, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8f9fa;
}

/* 상단 메타+제목 영역 */
.wl-notice-main {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 1rem;
}

/* 우측 조회/수정일 영역 */
.wl-notice-right {
  flex: 0 0 auto;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 메타 라인 */
.wl-notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: #d0d4d8;
}

/* 제목 */
.wl-notice-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.wl-notice-title a {
  color: #f8f9fa;
}

.wl-notice-title a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

/* 본문 요약 */
.wl-notice-excerpt {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #c2c7cf;
}

/* 댓글 수 뱃지 */
.wl-notice-comment {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
}

/* 날짜 */
.wl-notice-date {
  margin-left: 0.25rem;
}

/* 공지/카테고리 뱃지 */
.wl-badge-important,
.wl-badge-cate {
  display: inline-block;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  margin-right: 0.25rem;
}

.wl-badge-important {
  background: rgba(220, 53, 69, 0.25);
  color: #ff8787;
}

.wl-badge-cate {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f3f5;
}

/* 중요 공지 카드 강조 (테두리만 조금 더 진하게) */
.wl-notice-card-important {
  border-color: rgba(255, 107, 107, 0.7);
}

/* 하단 버튼 영역 */
.wl-notice-bottom {
  margin-top: 0.5rem;
}

/* 반응형 조정 */
@media (max-width: 767.98px) {
  .wl-notice-card {
    flex-direction: column;
  }
  .wl-notice-main {
    padding-right: 0;
    margin-bottom: 0.4rem;
  }
  .wl-notice-right {
    align-items: flex-start;
  }
}

/* ==========================================================
   2. 읽기(view) 스타일
   ========================================================== */

.wl-view-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* hub-card 의 다크 박스를 그대로 사용 */

/* 상단 헤더 */
.wl-view-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

/* 상단 메타 라인 */
.wl-view-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* 하단 메타 (작성자/조회/댓글) */
.wl-view-meta-bottom {
  color: #ced4da;
  margin-top: 0.35rem;
}

/* 제목 */
.wl-view-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8f9fa;
}

/* 댓글/답글 뱃지 */
.wl-badge-reply {
  display: inline-block;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(13, 110, 253, 0.25);
  color: #9ec5fe;
}

/* 날짜 */
.wl-view-date {
  margin-left: 0.25rem;
}

/* 본문 내용 */
.wl-view-content {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 첨부파일/링크 제목 */
.wl-view-extra-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 첨부파일/링크 박스 */
.wl-view-files,
.wl-view-links {
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
}

.wl-view-files {
  margin-bottom: 0.5rem;
}

/* 파일/링크 링크 색상 */
.wl-view-file-link,
.wl-view-link {
  color: #f8f9fa;
}

.wl-view-file-link:hover,
.wl-view-link:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

.wl-view-file-size,
.wl-view-link-hit {
  margin-left: 0.25rem;
}

/* 이전/다음글 네비게이션 */
.wl-view-nav {
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.wl-view-nav-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.wl-view-nav-label {
  display: inline-block;
  width: 3.3rem;
  color: #adb5bd;
}

.wl-view-nav-link {
  flex: 1 1 auto;
  color: #f8f9fa;
}

.wl-view-nav-link:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

/* 버튼 영역 */
.wl-view-buttons .btn + .btn {
  margin-left: 0.25rem;
}

@media (max-width: 575.98px) {
  .wl-view-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .wl-view-btn-left,
  .wl-view-btn-right {
    width: 100%;
  }
  .wl-view-btn-right {
    margin-top: 0.5rem;
    text-align: right;
  }
}

/* ==========================================================
   3. 글쓰기(write) 스타일
   ========================================================== */

.wl-write-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wl-write-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.wl-write-card {
  /* hub-card 의 다크 스타일을 그대로 사용 */
}

.wl-write-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wl-write-meta-left {
  flex: 1 1 auto;
}

.wl-write-options label {
  cursor: pointer;
}

/* 에디터 박스 */
.wl-write-editor {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0.6rem;
  padding: 0.4rem;
}

/* 파일 입력 */
.wl-write-file-row .custom-file-input ~ .custom-file-label::after {
  content: "찾기";
}

.wl-write-bottom .btn + .btn {
  margin-left: 0.25rem;
}

@media (max-width: 575.98px) {
  .wl-write-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
