/* CloudSocial editor — Quill skin tweaks */

.cs-editor-wrap {
  border-radius: 6px;
  background: #fff;
}
.cs-editor-wrap .ql-toolbar {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-color: #e5e7eb;
}
.cs-editor-wrap .ql-container {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-color: #e5e7eb;
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 100px;
}
.cs-editor-wrap .ql-editor {
  min-height: 100px;
  padding: 12px 14px;
}
.cs-editor-wrap .ql-editor.ql-blank::before {
  color: #9ca3af;
  font-style: normal;
}
.cs-editor-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 4px 0;
}
.cs-editor-wrap .cs-link-preview img {
  margin: 0;
  border-radius: 6px 6px 0 0;
}
.cs-editor-wrap .ql-snow .ql-tooltip {
  z-index: 1080;
}

/* Mention links — styled both inside the editor and on rendered content */
.mention {
  color: var(--bs-primary, #0d6efd);
  text-decoration: none;
  background: var(--bs-primary-bg-subtle, #eff6ff);
  padding: 1px 4px;
  border-radius: 4px;
}
.mention:hover { text-decoration: underline; }

/* Mention popup */
#cs-mention-popup .cs-mention-item:hover {
  background: #eff6ff !important;
}

/* Rendered link preview cards in posts/comments */
.cs-link-preview {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0;
  background: #fff;
}
.cs-link-preview a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cs-link-preview img {
  max-width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
