/* ── Editor toolbar hint ─────────────────────── */
.editor-toolbar-hint {
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(201,147,58,0.06);
  border: 1px solid rgba(201,147,58,0.15);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.editor-toolbar-hint strong { color: #E8B96A; font-weight: 500; }

/* ── Editor mode toggle ──────────────────────── */
.editor-mode-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  width: fit-content;
}
.editor-mode-btn {
  background: #0E1320;
  border: none;
  color: #8A8FA0;
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.editor-mode-btn:last-child { border-right: none; }
.editor-mode-btn.active {
  background: #141B2D;
  color: #C9933A;
}
.editor-mode-btn:hover:not(.active) {
  background: #141B2D;
  color: #F0EDE6;
}

/* ── Quill wrapper ───────────────────────────── */
#quill-wrapper { display: block; }
.ql-toolbar.ql-snow {
  background: #0E1320;
  border-color: rgba(255,255,255,0.08) !important;
  border-radius: 0 4px 0 0;
}
.ql-container.ql-snow {
  background: #141B2D;
  border-color: rgba(255,255,255,0.08) !important;
  border-radius: 0 0 4px 4px;
  color: #F0EDE6;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  min-height: 400px;
}
.ql-editor.ql-blank::before { color: #8A8FA0 !important; font-style: normal !important; }
.ql-toolbar .ql-stroke         { stroke: #8A8FA0 !important; }
.ql-toolbar .ql-fill           { fill:   #8A8FA0 !important; }
.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke { stroke: #C9933A !important; }
.ql-toolbar button:hover .ql-fill,
.ql-toolbar button.ql-active .ql-fill   { fill:   #C9933A !important; }
.ql-toolbar .ql-picker-label,
.ql-toolbar .ql-picker-item             { color:  #8A8FA0 !important; }
.ql-toolbar .ql-picker-label:hover,
.ql-toolbar .ql-picker-item:hover       { color:  #C9933A !important; }
.ql-toolbar .ql-picker-options          { background: #0E1320 !important; border-color: rgba(255,255,255,0.08) !important; }

/* Images inside Quill */
.ql-editor img { max-width:100%; height:auto; border-radius:6px; margin:1rem 0; display:block; }

/* Code inside Quill */
.ql-editor code {
  background: #1a2235 !important; color: #E8B96A !important;
  padding: 0.15em 0.45em; border-radius: 3px;
  font-size: 0.875em; font-family: 'Courier New', Courier, monospace;
}
.ql-editor pre.ql-syntax {
  background: #0d1117 !important; color: #c9d1d9 !important;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
  padding: 1rem 1.25rem; font-size: 0.875rem;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto; white-space: pre; line-height: 1.6;
}

/* ── CodeMirror HTML editor ──────────────────── */
#html-wrapper { display: none; }
#html-wrapper .CodeMirror {
  height: 500px;
  font-size: 0.875rem;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0 4px 4px 4px;
}
.html-editor-info {
  font-size: 0.78rem;
  color: #8A8FA0;
  padding: 0.5rem 0.75rem;
  background: rgba(201,147,58,0.05);
  border: 1px solid rgba(201,147,58,0.12);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* ── Images on PUBLIC post page ──────────────── */
.post-content img {
  max-width: 100%; height: auto; border-radius: 8px;
  margin: 1.5rem auto; display: block; border: 1px solid rgba(255,255,255,0.08);
}

/* ── Code on PUBLIC post page ────────────────── */
.post-content code {
  background: #141B2D; color: #E8B96A;
  padding: 0.15em 0.45em; border-radius: 3px;
  font-size: 0.875em; font-family: 'Courier New', Courier, monospace;
}
.post-content pre {
  background: #0d1117; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 1.25rem 1.5rem;
  overflow-x: auto; margin: 1.5rem 0; line-height: 1.7;
}
.post-content pre code {
  background: none; color: #c9d1d9;
  padding: 0; font-size: 0.875rem; border-radius: 0;
}
