/* [한글 주석] 게시판 상세 댓글 액션 영역 전용 스타일입니다.
 * 기능: 첨부는 좌측, 취소/등록은 우측으로 배치하고 3종 버튼 디자인을 통일합니다.
 * 위치: /assets/css/board-comments.css
 */

/* [한글 주석] 댓글 버튼 줄 전체 레이아웃입니다. */
.zyss-board__comment-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 16px !important;
}

/* [한글 주석] 첨부 버튼은 좌측에 고정합니다. */
.zyss-board__comment-attach-wrap {
  display: inline-flex !important;
  align-items: center !important;
  margin-right: auto !important;
}

/* [한글 주석] 취소/등록 버튼만 우측 묶음으로 배치합니다. */
.zyss-board__comment-actions-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
}

/* [한글 주석] 댓글에 이미 등록된 첨부파일 항목도 링크와 삭제 버튼을 한 줄에 정렬합니다. */
.zyss-board__comment-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zyss-board__comment-attachment-delete {
  flex: 0 0 auto;
}

/* [한글 주석] 관리자 전용 댓글 IP 표기는 메타 영역에서 은은하게 노출합니다. */
.zyss-board__comment-ip {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

/* [한글 주석] 첨부/취소/등록 3종을 목록 버튼 기준으로 동일하게 맞춥니다. */
.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;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* [한글 주석] 댓글 액션 버튼 공통 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;
}

/* [한글 주석] 반응형에서 버튼이 아래로 내려가도 첨부 좌측 / 액션 우측 흐름은 유지합니다. */
@media (max-width: 640px) {
  .zyss-board__comment-actions {
    flex-wrap: wrap !important;
  }

  .zyss-board__comment-attach-wrap {
    margin-right: auto !important;
  }

  .zyss-board__comment-actions-right {
    margin-left: auto !important;
  }
}

/* [한글 주석] 비회원 입력 필드는 가로 정렬 + 충분한 간격으로 보여줍니다. */
.zyss-board__comment-guest-fields {
  display: flex;
  gap: 10px !important;
  margin-bottom: 10px;
  align-items: stretch;
}

.zyss-board__comment-guest-fields input {
  flex: 1;
}

.zyss-board__comment-ip {
  font-size: 0.75rem;
  color: var(--zyss-color-text-muted, rgba(255,255,255,0.4));
  margin-left: 6px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .zyss-board__comment-guest-fields {
    flex-direction: column;
  }
}

/* [한글 주석] 비회원 비밀번호 확인 모달 중앙 배치 및 글래스 디자인 */
.zyss-board__password-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center; /* 수직 중앙 */
  justify-content: center; /* 수평 중앙 */
  z-index: 10000;
  animation: zyssFadeIn 0.3s ease;
}

.zyss-board__password-modal-inner {
  width: 320px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateY(0);
  animation: zyssSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zyss-board__password-modal-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #fff;
}

.zyss-board__password-modal-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.zyss-board__password-modal-input {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  margin-bottom: 20px;
  outline: none;
}

.zyss-board__password-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.zyss-board__password-modal[hidden] {
  display: none !important;
}

@keyframes zyssFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zyssSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* [한글 주석] 답글은 1단계만 30px 우측으로 들여쓰고, 이후 답글도 같은 위치에서 시작합니다. */
.zyss-board__comment-item--reply {
  margin-left: 30px !important;
}

/* [한글 주석] 답글 표시용 보조 화살표는 같은 위치에서만 보이게 유지합니다. */
.zyss-board__comment-item--reply::before {
  content: "↳";
  position: absolute;
  left: -18px;
  top: 15px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .zyss-board__comment-item--reply {
    margin-left: 20px !important;
  }

  .zyss-board__comment-item--reply::before {
    left: -14px;
  }
}
