/**
 * Comments Module Styles
 */

/* Comments Panel */
.comments-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comments-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.comments-header h5 {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Comment Item */
.comment-item {
  display: flex;
  gap: 12px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f86cf, #5671c0);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  font-size: 13px;
  color: #1f2937;
}

.comment-date {
  font-size: 12px;
  color: #9ca3af;
}

.comment-edited {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
}

.comment-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  word-wrap: break-word;
}

.comment-mention {
  color: #6f86cf;
  font-weight: 500;
  background: #eff6ff;
  padding: 1px 4px;
  border-radius: 4px;
}

.comment-footer {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.comment-footer button {
  padding: 4px 8px;
  font-size: 11px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.comment-footer button:hover {
  background: #f3f4f6;
  color: #374151;
}

.comment-reply-btn:hover {
  color: #6f86cf;
  background: #eff6ff;
}

.comment-edit-btn:hover {
  color: #10b981;
  background: #ecfdf5;
}

.comment-delete-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Comment Reply Form */
.comment-reply-form {
  margin-top: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}

.comment-reply-form.hidden {
  display: none;
}

.comment-reply-input {
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}

.comment-reply-input:focus {
  outline: none;
  border-color: #6f86cf;
  box-shadow: 0 0 0 3px rgba(111, 134, 207, 0.1);
}

.comment-reply-actions {
  display: flex;
  gap: 8px;
}

.comment-reply-actions button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.comment-reply-actions button:first-child {
  background: #6f86cf;
  border-color: #6f86cf;
  color: white;
}

.comment-reply-actions button:first-child:hover {
  background: #5671c0;
}

.comment-reply-actions button:last-child:hover {
  background: #f3f4f6;
}

/* Comment Form */
.comment-form {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.comment-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}

.comment-input:focus {
  outline: none;
  border-color: #6f86cf;
  box-shadow: 0 0 0 3px rgba(111, 134, 207, 0.1);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
}

.comment-submit-btn {
  padding: 8px 20px;
  background: #6f86cf;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.comment-submit-btn:hover {
  background: #5671c0;
}

/* Comments Empty */
.comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
}

.comments-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.comments-empty p {
  margin: 0;
  font-size: 14px;
}

.comments-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #d1d5db;
}

/* Dark Theme */
body.dark-theme .comments-header {
  border-bottom-color: #334155;
}

body.dark-theme .comments-header h5 {
  color: #e2e8f0;
}

body.dark-theme .comments-list {
  background: transparent;
}

body.dark-theme .comment-item {
  background: transparent;
}

body.dark-theme .comment-content {
  background: #1e293b;
  border-radius: 8px;
  padding: 12px;
}

body.dark-theme .comment-author {
  color: #e2e8f0;
}

body.dark-theme .comment-text {
  color: #cbd5e1;
}

body.dark-theme .comment-footer button {
  color: #94a3b8;
}

body.dark-theme .comment-footer button:hover {
  background: #334155;
  color: #e2e8f0;
}

body.dark-theme .comment-reply-form {
  background: #0f172a;
}

body.dark-theme .comment-reply-input {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-theme .comment-reply-input:focus {
  border-color: #6f86cf;
}

body.dark-theme .comment-reply-actions button {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-theme .comment-reply-actions button:first-child {
  background: #6f86cf;
  border-color: #6f86cf;
}

body.dark-theme .comment-reply-actions button:first-child:hover {
  background: #5671c0;
}

body.dark-theme .comment-reply-actions button:last-child:hover {
  background: #475569;
}

body.dark-theme .comment-form {
  background: #1e293b;
  border-top-color: #334155;
}

body.dark-theme .comment-input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-theme .comment-input:focus {
  border-color: #6f86cf;
}

body.dark-theme .comment-submit-btn {
  background: #6f86cf;
}

body.dark-theme .comment-submit-btn:hover {
  background: #5671c0;
}

body.dark-theme .comments-empty {
  color: #64748b;
}

body.dark-theme .comment-mention {
  background: #1e3a5f;
  color: #93c5fd;
}
