/* [한글 주석] 게시판 공통 버튼 시각 시스템입니다.
 * 기능: 리스트 툴바의 '목록' 버튼을 기준으로 상세/댓글 버튼까지 같은 규격·같은 색상으로 통일합니다.
 * 위치: /assets/css/board-buttons.css
 */

/* [한글 주석] 게시판 공통 액션 버튼의 기준 디자인입니다. */
.zyss-board .zyss-board__action-group--toolbar .zyss-board__btn,
.zyss-board .zyss-board__bottom-actions .zyss-board__action-group--toolbar .zyss-board__btn,
.zyss-board .zyss-board__detail-btn,
.zyss-board .zyss-board__like-btn,
.zyss-board .zyss-board__comment-attach-btn,
.zyss-board .zyss-board__comment-cancel,
.zyss-board .zyss-board__comment-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 80px !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* [한글 주석] hover 상태도 모두 같은 톤으로 유지합니다. */
.zyss-board .zyss-board__action-group--toolbar .zyss-board__btn:hover,
.zyss-board .zyss-board__bottom-actions .zyss-board__action-group--toolbar .zyss-board__btn:hover,
.zyss-board .zyss-board__detail-btn:hover,
.zyss-board .zyss-board__like-btn:hover,
.zyss-board .zyss-board__comment-attach-btn:hover,
.zyss-board .zyss-board__comment-cancel:hover,
.zyss-board .zyss-board__comment-submit:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* [한글 주석] 추천 버튼의 숫자/하트가 있어도 버튼 높이가 흐트러지지 않게 합니다. */
.zyss-board .zyss-board__like-btn {
  gap: 6px !important;
}

/* [한글 주석] 상세 버튼 좌우 묶음의 간격을 통일합니다. */
.zyss-board__detail-actions-side {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

/* [한글 주석] 댓글 버튼 줄에서 첨부는 좌측, 취소/등록은 우측으로 고정합니다. */
.zyss-board__comment-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
}

.zyss-board__comment-actions-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
}

.zyss-board__comment-file-list {
  margin-top: 10px !important;
}

/* [한글 주석] 모바일 상세 본문 액션 버튼 최종 정렬
 * board.css 이후 로드되는 이 파일에서 좌/우 버튼 묶음이 다시 inline-flex로 덮이는 것을 방지합니다.
 */
@media (max-width: 640px) {
  .zyss-board .zyss-board__detail-actions {
    justify-content: stretch !important;
    width: 100% !important;
  }

  .zyss-board .zyss-board__detail-actions-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .zyss-board .zyss-board__detail-actions-side,
  .zyss-board .zyss-board__detail-actions-side--left,
  .zyss-board .zyss-board__detail-actions-side--right {
    display: contents !important;
    margin-left: 0 !important;
  }

  .zyss-board .zyss-board__detail-actions .zyss-board__detail-btn,
  .zyss-board .zyss-board__detail-actions .zyss-board__like-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}
