/* engagement.css — 댓글/좋아요/신고 UI 스타일 (다크 핀테크 톤) */

/* 댓글 컨테이너 */
#comments-list {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid rgba(61, 214, 196, 0.2);
}

.comments-empty {
  text-align: center;
  color: #888;
  padding: 2rem 1rem;
  font-size: 14px;
}

/* 댓글 블록 (최상위) */
.comment {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #3DD6C4;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.comment:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* 댓글 헤더 (닉네임 + 시간 + 삭제버튼) */
.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 13px;
}

.user-nick {
  font-weight: 600;
  color: #3DD6C4;
}

.anon-nick {
  font-weight: 600;
  color: #FFB347;
}

.comment-time,
.reply-time {
  color: #999;
  font-size: 12px;
}

.comment-delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: background 0.2s;
}

.comment-delete-btn:hover {
  background: rgba(231, 76, 60, 0.1);
}

/* 댓글 본문 */
.comment-body,
.reply-body {
  color: #e0e0e0;
  line-height: 1.5;
  word-wrap: break-word;
  margin-bottom: 0.75rem;
  font-size: 14px;
}

/* 댓글 액션 (좋아요/답글/신고) */
.comment-actions,
.reply-actions {
  display: flex;
  gap: 1rem;
  font-size: 12px;
}

.comment-like-btn,
.comment-reply-btn,
.comment-report-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.comment-like-btn:hover,
.comment-reply-btn:hover,
.comment-report-btn:hover {
  color: #3DD6C4;
}

.comment-like-btn.liked {
  color: #FFC43D;
}

.like-count {
  font-variant-numeric: tabular-nums;
}

/* 대댓글 그룹 (들여쓰기) */
.comment-replies {
  margin-top: 1rem;
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(61, 214, 196, 0.3);
}

/* 대댓글 블록 */
.reply {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.reply:hover {
  background: rgba(255, 255, 255, 0.02);
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 12px;
}

.reply-actions {
  font-size: 11px;
}

/* 답글 작성 폼 */
.reply-form {
  margin-top: 1rem;
  margin-left: 1.5rem;
  padding: 1rem;
  background: rgba(61, 214, 196, 0.05);
  border-left: 3px solid #3DD6C4;
  border-radius: 4px;
}

.reply-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(14, 15, 18, 0.8);
  border: 1px solid rgba(61, 214, 196, 0.3);
  border-radius: 4px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.reply-form textarea:focus {
  outline: none;
  border-color: #3DD6C4;
  box-shadow: 0 0 0 2px rgba(61, 214, 196, 0.1);
}

.reply-form-actions {
  display: flex;
  gap: 0.75rem;
}

.reply-submit-btn,
.reply-cancel-btn {
  padding: 0.5rem 1rem;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.reply-submit-btn {
  background: #3DD6C4;
  color: #0E0F12;
  font-weight: 600;
}

.reply-submit-btn:hover {
  background: #2ec7b7;
  transform: translateY(-1px);
}

.reply-cancel-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #999;
}

.reply-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* 댓글 작성 폼 (상단) */
#comment-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(61, 214, 196, 0.05);
  border: 1px solid rgba(61, 214, 196, 0.2);
  border-radius: 6px;
}

#comment-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(14, 15, 18, 0.9);
  border: 1px solid rgba(61, 214, 196, 0.3);
  border-radius: 4px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 1rem;
  min-height: 80px;
}

#comment-form textarea:focus {
  outline: none;
  border-color: #3DD6C4;
  box-shadow: 0 0 0 3px rgba(61, 214, 196, 0.1);
}

#comment-form button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: #3DD6C4;
  color: #0E0F12;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

#comment-form button[type="submit"]:hover {
  background: #2ec7b7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 214, 196, 0.3);
}

#comment-form button[type="submit"]:active {
  transform: translateY(0);
}

/* 신고 모달 오버레이 */
.report-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

/* 신고 모달 */
.report-modal {
  background: #1a1b1e;
  border: 1px solid rgba(61, 214, 196, 0.3);
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.2s ease-out;
}

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

.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(61, 214, 196, 0.2);
}

.report-modal-header h3 {
  margin: 0;
  color: #3DD6C4;
  font-size: 16px;
}

.report-modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.report-modal-close:hover {
  color: #e74c3c;
}

.report-modal-body {
  padding: 1.5rem;
}

.report-modal-body label {
  display: block;
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.report-reason-select,
.report-modal-body textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(14, 15, 18, 0.9);
  border: 1px solid rgba(61, 214, 196, 0.3);
  border-radius: 4px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 1rem;
}

.report-reason-select {
  cursor: pointer;
}

.report-reason-select:focus,
.report-modal-body textarea:focus {
  outline: none;
  border-color: #3DD6C4;
  box-shadow: 0 0 0 2px rgba(61, 214, 196, 0.1);
}

.report-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(61, 214, 196, 0.2);
}

.report-submit-btn,
.report-cancel-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.report-submit-btn {
  background: #e74c3c;
  color: #fff;
}

.report-submit-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

.report-cancel-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #999;
}

.report-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* 반응형 */
@media (max-width: 640px) {
  .comment,
  .reply {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .comment-replies {
    margin-left: 0.75rem;
  }

  .reply-form {
    margin-left: 0;
  }

  #comment-form {
    padding: 1rem;
  }

  .comment-actions,
  .reply-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
