/* ===============================
   Summernote Frontend Rendering
   =============================== */

.summernote-content {
  color: #d1d5db; /* neutral-300 */
  font-size: 1rem;
  line-height: 1.75;
}

/* Headings */
.summernote-content h1,
.summernote-content h2,
.summernote-content h3,
.summernote-content h4,
.summernote-content h5,
.summernote-content h6 {
  color: #f9fafb; /* neutral-100 */
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.summernote-content h1 { font-size: 2.25rem; }
.summernote-content h2 { font-size: 1.75rem; }
.summernote-content h3 { font-size: 1.4rem; }
.summernote-content h4 { font-size: 1.2rem; }

/* Paragraphs */
.summernote-content p {
  margin-bottom: 1.25rem;
}

/* Links */
.summernote-content a {
  color: #60a5fa; /* blue-400 */
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.summernote-content a:hover {
  color: #93c5fd; /* blue-300 */
}

/* Lists */
.summernote-content ul,
.summernote-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
  padding-left: 1rem;
}

.summernote-content ul {
  list-style-type: disc;
}

.summernote-content ol {
  list-style-type: decimal;
}

.summernote-content li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
.summernote-content blockquote {
  border-left: 4px solid #3b82f6; /* blue-500 */
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #e5e7eb;
  font-style: italic;
  background: rgba(255, 255, 255, 0.03);
}

/* Inline code */
.summernote-content code {
  background: #1f2937; /* neutral-800 */
  color: #e5e7eb;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

/* Code blocks */
.summernote-content pre {
  background: #020617; /* very dark */
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.summernote-content pre code {
  background: none;
  padding: 0;
}

/* Images */
.summernote-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Horizontal rule */
.summernote-content hr {
  border: none;
  border-top: 1px solid #374151; /* neutral-700 */
  margin: 3rem 0;
}

/* Tables */
.summernote-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.summernote-content th,
.summernote-content td {
  border: 1px solid #374151;
  padding: 0.75rem;
}

.summernote-content th {
  background: #020617;
  color: #f9fafb;
  text-align: left;
}

/* Alignment helpers (Summernote uses inline styles sometimes) */
.summernote-content [style*="text-align:center"] {
  text-align: center;
}

.summernote-content [style*="text-align:right"] {
  text-align: right;
}
