/* ========================================
   织网 (WebWeave) - 任务评论样式
   ======================================== */

/* === 评论列表 === */
.task-comment-item {
  transition: all var(--duration-normal);
  position: relative;
}

.task-comment-item:hover {
  background: rgba(184, 134, 11, 0.15) !important;
  box-shadow: var(--holy-glow-soft);
  transform: translateX(3px);
}

/* === 回复表单 === */
.reply-comment-form {
  animation: slideDown var(--duration-normal) ease-out;
  margin-top: 10px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reply-comment-form textarea {
  background: rgba(10, 10, 10, 0.5);
  border: 2px solid var(--sacred-gold);
  color: var(--holy-white);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: all var(--duration-normal);
}

.reply-comment-form textarea:focus {
  border-color: var(--divine-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  background: rgba(10, 10, 10, 0.7);
}

/* === 嵌套回复样式 === */
.task-comment-item[data-comment-id] {
  position: relative;
}

.task-comment-item[data-comment-id]::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    var(--divine-gold) 0%, 
    var(--sacred-gold) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.task-comment-item[data-comment-id]:hover::before {
  opacity: 1;
}

/* === 评论操作按钮 === */
.task-comment-item .holy-button.small {
  transition: all var(--duration-normal);
}

.task-comment-item .holy-button.small:hover {
  transform: scale(1.1);
  box-shadow: var(--holy-glow-soft);
}

/* === 评论头像 === */
.task-comment-item img,
.task-comment-item .avatar-placeholder {
  transition: all var(--duration-normal);
  box-shadow: 0 0 10px rgba(184, 134, 11, 0.3);
}

.task-comment-item:hover img,
.task-comment-item:hover .avatar-placeholder {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

/* === 评论内容 === */
.task-comment-item .comment-content {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* === 回复引用样式 === */
.task-comment-item .parent-comment-quote {
  position: relative;
  padding-left: 15px;
}

.task-comment-item .parent-comment-quote::before {
  content: '┃';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  color: var(--sacred-gold);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* === 响应式 === */
@media (max-width: 640px) {
  .task-comment-item {
    padding: 10px !important;
  }
  
  .task-comment-item .holy-button.small {
    padding: 3px 6px !important;
    font-size: 0.75rem !important;
  }
  
  .reply-comment-form {
    padding: 10px !important;
  }
}
