@charset "utf-8";
/* Sideview (회원 레이어 메뉴 / 그누보드 코어) */
.sv_member {
  text-decoration: none;
  color: var(--bs-body-color);
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}
.sv_member:hover {
  color: var(--bs-primary);
}
.sv_wrap {
  display: inline-block;
  position: relative;
}
.sv_wrap .sv {
  z-index: 1100;
  display: none;
  margin: 8px 0 0;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--bs-border-radius-lg);
  padding: 8px 0;
  box-shadow: var(--bs-box-shadow-sm);
  min-width: 130px;
}
.sv_wrap .sv a {
  display: block;
  padding: 8px 16px;
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.sv_wrap .sv a:hover {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-primary);
}
.sv_on {
  display: block !important;
  position: absolute;
  top: 25px;
  left: 0;
  animation: sv_fade_in 0.2s ease-out;
}
@keyframes sv_fade_in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[data-bs-theme='dark'] .sv_wrap .sv {
  background-color: var(--bs-secondary-bg);
}

/* 화면낭독기 사용자용 (그누보드 코어) */
#hd_login_msg {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.msg_sound_only,
.sound_only {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  border: 0;
  overflow: hidden;
}

/* Captcha (자동등록방지) */
#captcha {
  background: transparent;
  text-align: center;
}
#captcha_img {
  border-radius: 12px;
  border: 1px solid var(--bs-border-color-translucent);
}
#captcha_key {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 10px auto;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color-translucent);
}

/* 카테고리 기본 뱃지 스타일 */
#bo_cate_ul li a {
  display: inline-block;
  border-radius: var(--bs-border-radius);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  white-space: nowrap; /* 글자 줄바꿈 방지 */

  /* bg-primary-subtle & text-primary 스타일 */
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  border: 1px solid var(--bs-primary-border-subtle);
}

#bo_cate_ul li a:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

#bo_cate_ul li a#bo_cate_on {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: var(--bs-box-shadow-sm);
}

[data-bs-theme='dark'] #bo_cate_ul li a:not(#bo_cate_on) {
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  border-color: var(--bs-primary-border-subtle);
}

/* 검색창 */
.bo_sch_wrap {
  position: relative;
  z-index: 1050;
}
.bo_sch_wrap .btn-close {
  transition: transform 0.2s ease-in-out;
}
.bo_sch_wrap .btn-close:hover {
  transform: rotate(90deg);
}
[data-bs-theme='dark'] .bo_sch_wrap .card {
  border: 1px solid var(--bs-border-color-translucent);
}

/* 본문 영역(CKEditor) 레이아웃 */

/* a. 이미지 및 캡션(Figure) 정렬 정상화 */
#bo_v_con figure {
  display: table;
  margin: 1rem auto; /* 기본 중앙 정렬 */
}
#bo_v_con figure img {
  display: block;
  max-width: 100%;
  height: auto;
}
#bo_v_con figure figcaption {
  display: table-caption;
  caption-side: bottom;
  text-align: center;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  word-break: keep-all;
}

/* b. 에디터 좌/우/중앙 정렬 클래스 지원 */
#bo_v_con .image-style-align-left,
#bo_v_con figure.align-left,
#bo_v_con figure.image-style-align-left {
  float: left;
  margin: 0.5rem 1.5rem 0.5rem 0;
}
#bo_v_con .image-style-align-right,
#bo_v_con figure.align-right,
#bo_v_con figure.image-style-align-right {
  float: right;
  margin: 0.5rem 0 0.5rem 1.5rem;
}
#bo_v_con .image-style-align-center,
#bo_v_con figure.align-center,
#bo_v_con figure.image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}

/* c. 표(Table) 정상화 */
#bo_v_con table {
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
#bo_v_con table td,
#bo_v_con table th {
  padding: 0.5rem;
  border: 1px solid var(--bs-border-color-translucent);
}

/* d. Float 레이아웃 붕괴 방지 */
#bo_v_con::after {
  content: '';
  display: block;
  clear: both;
}

/* 게시물 선택복사 / 선택이동 */
#copymove .win_desc {
  display: block;
  text-align: center;
}

#copymove .tbl_wrap {
  margin: 1.25rem; /* 20px */
}

#copymove .win_btn {
  padding: 0 1.25rem 1.25rem;
}

.copymove_current {
  float: right;
  background-color: var(--bs-danger); /* #ff3061 대체 */
  padding: 0.3rem 0.5rem;
  color: var(--bs-white) !important;
  border-radius: var(--bs-border-radius); /* rounded-2 원칙 반영 */
}

.copymove_currentbg {
  background-color: var(--bs-secondary-bg); /* #f4f4f4 대체 */
}

/* 새창 (New Window) 기본 스타일 */
.new_win {
  position: relative;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.new_win .tbl_wrap {
  margin: 0 1.25rem;
}

/* a. 타이틀: Flexbox를 활용한 수직 정렬 */
.new_win #win_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25rem;
  padding: 1rem 1.25rem;
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color-translucent);
  box-shadow: var(--bs-box-shadow-sm);
  margin-bottom: 1rem;
}

.new_win #win_title .sv {
  font-size: 0.875rem;
}

/* b. 탭 메뉴 (ul/li): 구형 float 제거 및 Flexbox 탭 전환 */
.new_win .win_ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0 1.25rem;
  list-style: none;
}

.new_win .win_ul li {
  background-color: var(--bs-body-bg);
  text-align: center;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--bs-border-radius);
}

.new_win .win_ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--bs-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.new_win .win_ul li a:hover {
  background-color: var(--bs-secondary-bg);
}

.new_win .win_ul .selected {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  z-index: 5;
}

.new_win .win_ul .selected a {
  color: var(--bs-white) !important;
  font-weight: 600;
}

/* c. 설명창 (Alert 스타일) */
.new_win .win_desc {
  position: relative;
  margin: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-danger-bg-subtle); /* 다크모드 대응 옅은 붉은색 */
  color: var(--bs-danger-text-emphasis);
  text-align: left;
  border-left: 4px solid var(--bs-danger); /* 구형 ::after 디자인을 border-left로 간소화 */
}

.new_win .win_desc i {
  font-size: 1.2em;
  vertical-align: baseline;
  margin-right: 0.5rem;
}

.new_win .frm_info {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.new_win .win_total {
  float: right;
  display: inline-block;
  font-size: 0.875rem;
  color: var(--bs-primary);
  background-color: var(--bs-tertiary-bg);
  padding: 0.25rem 0.5rem;
  border-radius: var(--bs-border-radius);
}

/* d. 컨텐츠 영역 (Clearfix 제거) */
.new_win .new_win_con {
  margin: 1.25rem 0;
  padding: 1.25rem;
}

.new_win .new_win_con2 {
  margin: 1.25rem 0;
}

/* 버튼 영역 */
.new_win .win_btn,
.new_win .cert_btn {
  text-align: center;
  margin-bottom: 1.5rem;
}

.new_win .btn_close,
.new_win .btn_submit {
  padding: 0 1.25rem;
  height: 45px;
  font-weight: 600;
  border-radius: var(--bs-border-radius);
}

/* 페이징 (Pagination) */
.pg_wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  clear: both;
}

.pg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem; /* 버튼 간격 */
  align-items: center;
}

/* a. 공통 버튼 스타일 */
.pg_page,
.pg_current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--bs-border-radius);
  transition: all 0.2s ease-in-out;
}

/* b. 일반 페이지 버튼 */
.pg_page {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
}

.pg_page:hover,
.pg_page:focus {
  background-color: var(--bs-secondary-bg);
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* c. 현재 페이지 버튼 */
.pg_current {
  background-color: var(--bs-primary);
  color: var(--bs-white) !important;
  border: 1px solid var(--bs-primary);
  font-weight: 600;
  cursor: default;
}

/* d. 방향 버튼 공통 설정 (gif 이미지 대체 및 텍스트 숨김) */
.pg_start,
.pg_prev,
.pg_next,
.pg_end {
  font-size: 0 !important; /* '처음', '이전' 텍스트 숨김 */
  position: relative;
  width: 36px;
}

/* e. FontAwesome 6 아이콘 삽입 */
.pg_start::after,
.pg_prev::after,
.pg_next::after,
.pg_end::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  transition: color 0.2s ease-in-out;
}

.pg_start:hover::after,
.pg_prev:hover::after,
.pg_next:hover::after,
.pg_end:hover::after {
  color: var(--bs-primary);
}

/* f. 방향 아이콘 유니코드 매핑 */
.pg_start::after {
  content: '\f100';
} /* fa-angles-left */
.pg_prev::after {
  content: '\f104';
} /* fa-angle-left */
.pg_next::after {
  content: '\f105';
} /* fa-angle-right */
.pg_end::after {
  content: '\f101';
} /* fa-angles-right */

/* 팝업 레이어 (Popup Layer) */
#hd_pop {
  z-index: 1050; /* Bootstrap 모달(1055)보다 살짝 아래, 일반 요소보다 위로 조정 */
  position: relative;
  margin: 0 auto;
  height: 0;
}

#hd_pop h2 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.hd_pops {
  position: absolute;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--bs-border-radius); /* rounded-2 원칙 반영 */
  box-shadow: var(--bs-box-shadow-lg); /* 팝업의 입체감 부여 */
  overflow: visible; /* 레이아웃 겹침 방지 */
}

.hd_pops img {
  max-width: 100%;
  height: auto;
  display: block; /* 이미지 하단 여백 제거 */
}

/* #. 팝업 하단 (하루 열지 않음 / 닫기 버튼 영역) */
.hd_pops_footer {
  display: flex;
  align-items: center;
  padding: 0;
  background-color: var(--bs-tertiary-bg); /* 부드러운 하단 배경색 */
  border-top: 1px solid var(--bs-border-color-translucent);
  border-bottom-left-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.hd_pops_footer button {
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.hd_pops_footer button:hover {
  background-color: var(--bs-secondary-bg);
}

.hd_pops_footer .hd_pops_reject {
  text-align: left;
  flex: 1; /* 남은 공간을 차지하여 닫기 버튼을 밀어냄 */
}

.hd_pops_footer .hd_pops_close {
  margin-left: auto; /* Flexbox 환경에서 항상 우측 끝으로 정렬 */
  font-weight: 600;
  border-left: 1px solid var(--bs-border-color-translucent);
}

/* ==========================================================================
   Candays Community Standard Style (Integrated)
   Base: Bootstrap 5.3+ / GNUBOARD 5
   ========================================================================== */

/* 1. Global Utilities & Common Components */

/* 보더 표준 (전역에서 테두리 색상과 전환 효과만 공통으로 사용) */
.border-standard {
  border-color: var(--bs-border-color-translucent) !important;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

/* 포커스 효과 (write 스킨 #bo_w 내부의 폼 요소에만 제한) */
#bo_w .border-standard:focus-within {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25) !important;
  z-index: 1;
}

/* 점선 구분선 (안정적인 1px 명시형 채택) */
.border-dashed {
  border-top: 1px dashed var(--bs-border-color);
}

/* 말줄임표 (2줄) */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 자간 최적화 */
.tracking-tight {
  letter-spacing: -0.025em;
}

/* 2. List Page (#bo_list) */

/* 공지사항 배경 및 아이콘 */
.table-notice {
  background-color: var(--bs-danger-bg-subtle);
}
.notice_icon {
  font-weight: 800;
  color: var(--bs-danger);
}

/* 페이지네이션 커스텀 */
.pg_wrap .page-link {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  margin: 0 2px;
}

/* 3. View Page (#bo_v) */

#bo_v {
  overflow: visible; /* 레이아웃 겹침 방지 */
}

/* 작성자 프로필 이미지 */
.view-pf-img img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--bs-primary-subtle);
  background: var(--bs-body-bg);
}

/* 본문 이미지 (표준 변수 채택) */
#bo_v_img img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bs-border-radius-lg);
  margin-bottom: 1rem;
}

/* 4. Comment Section (#bo_vc) */

/* 댓글 아이템 (표준 변수 채택) */
.cmt-item {
  border-bottom: 1px solid var(--bs-border-color-translucent);
}
.cmt-item:hover {
  background-color: var(--bs-body-tertiary);
}

/* 댓글 작성자 프로필 */
.cmt-pf-img img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bs-body-bg);
  box-shadow: var(--bs-box-shadow-sm);
}

/* 댓글 입력창 포커스 */
#bo_vc_w textarea:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.1);
}

/* 5. Gallery Board Specific (#bo_gall) */

/* 갤러리 카드 베이스 */
.card.rounded-2 {
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari 버그 방지 */
}

/* 썸네일 애니메이션 */
.card-img-top {
  transition: transform 0.5s ease;
  border-top-left-radius: calc(var(--bs-border-radius-2) - 1px);
  border-top-right-radius: calc(var(--bs-border-radius-2) - 1px);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.card:hover .card-img-top {
  transform: scale(1.05) translateZ(0);
}

/* 카드 부유 효과 (Hover Lift) */
.card.hover-lift {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.2s;
}
.card.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
  border-color: var(--bs-primary-border-subtle);
}

/* 6. Write Page & Utilities */

/* 캡차 미니 스타일 */
.captcha-mini #captcha_img {
  height: 30px;
  width: auto;
  border-radius: 4px;
}
.captcha-mini #captcha_key {
  width: 70px;
  height: 30px;
  padding: 0 5px;
  font-size: 0.8rem;
  border: 1px solid var(--bs-border-color);
}

/* 7. Media Queries (Mobile & Tablet) */

@media (max-width: 768px) {
  /* 모바일 제목 크기 조정 */
  #bo_v_title {
    font-size: 1.25rem;
  }

  /* 글쓰기 폼 패딩 최적화 */
  #bo_w .card-body {
    padding: 20px;
  }

  /* 대댓글 여백 (rem 단위 채택) */
  .cmt-item[style*='margin-left'] {
    margin-left: 0.75rem !important;
  }

  /* 모바일 풀사이즈 버튼 */
  .marketing-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* 모바일 경계선 전환 */
  .border-end-md {
    border-right: 0;
    border-bottom: 1px solid var(--bs-border-color);
  }
}

/* Brand Identity */
.text-candays {
  color: #d8292f;
}
.bg-candays {
  background-color: #d8292f;
}
.btn-candays {
  background-color: #d8292f;
  border-color: #d8292f;
  color: #fff;
  transition: all 0.3s;
}
.btn-candays:hover {
  background-color: #b51f24;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(216, 41, 47, 0.3);
}
