/* ============ RICH TEXT CONTENT STYLES (Replaces @tailwindcss/typography) ============ */

.rich-content {
  color: #e5e7eb; /* text-gray-200 */
  line-height: 1.75;
  max-width: none;
}

/* Headings */
.rich-content h1 {
  color: white;
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.rich-content h2 {
  color: white;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  line-height: 1.35;
}

.rich-content h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.rich-content h4 {
  color: #f3f4f6;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.rich-content p {
  color: #e5e7eb;
  margin: 1.25rem 0;
  line-height: 1.75;
}

/* Links */
.rich-content a {
  color: #cda45e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rich-content a:hover {
  color: #fdba74;
  text-decoration: underline;
}

/* Bold & Strong */
.rich-content strong,
.rich-content b {
  color: white;
  font-weight: 700;
}

/* Italic */
.rich-content em,
.rich-content i {
  font-style: italic;
}

/* Lists */
.rich-content ul,
.rich-content ol {
  margin: 1.25rem 0;
  padding-right: 1.5rem;
}

.rich-content ul {
  list-style-type: disc;
}

.rich-content ol {
  list-style-type: decimal;
}

.rich-content li {
  color: #e5e7eb;
  margin: 0.5rem 0;
  padding-right: 0.5rem;
}

.rich-content li::marker {
  color: #cda45e;
}

.rich-content ul ul,
.rich-content ol ol,
.rich-content ul ol,
.rich-content ol ul {
  margin: 0.5rem 0;
}

/* Blockquotes */
.rich-content blockquote {
  border-right: 3px solid #cda45e;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  color: #9ca3af;
  background-color: rgba(205, 164, 94, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
}

.rich-content blockquote p {
  color: #9ca3af;
  font-style: italic;
  margin: 0.5rem 0;
}

/* Images */
.rich-content img {
  border-radius: 1rem;
  border: 1px solid #3f3f46;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.rich-content figure {
  margin: 1.5rem 0;
}

.rich-content figcaption {
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Horizontal Rule */
.rich-content hr {
  border: none;
  border-top: 1px solid #3f3f46;
  margin: 2.5rem 0;
}

/* Code */
.rich-content code {
  color: #cda45e;
  background-color: #18181b;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  direction: ltr;
  display: inline-block;
}

.rich-content pre {
  background-color: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  direction: ltr;
}

.rich-content pre code {
  color: #e5e7eb;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Tables */
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
}

.rich-content thead {
  border-bottom: 2px solid #3f3f46;
}

.rich-content th {
  color: white;
  background-color: #27272a;
  padding: 0.75rem 1rem;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.rich-content td {
  border-bottom: 1px solid #3f3f46;
  padding: 0.75rem 1rem;
  text-align: right;
  color: #d1d5db;
}

.rich-content tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ============ QUILL EDITOR COMPATIBILITY ============ */

/* Alignment classes from Quill */
.rich-content .ql-align-right {
  text-align: right;
}

.rich-content .ql-align-center {
  text-align: center;
}

.rich-content .ql-align-justify {
  text-align: justify;
}

.rich-content .ql-align-left {
  text-align: left;
}

/* RTL direction from Quill */
.rich-content .ql-direction-rtl {
  direction: rtl;
  text-align: right;
}

.rich-content .ql-direction-ltr {
  direction: ltr;
  text-align: left;
}

/* Quill indent classes */
.rich-content .ql-indent-1 {
  padding-right: 3em;
}

.rich-content .ql-indent-2 {
  padding-right: 6em;
}

.rich-content .ql-indent-3 {
  padding-right: 9em;
}

/* Quill font size classes (if used) */
.rich-content .ql-size-small {
  font-size: 0.75em;
}

.rich-content .ql-size-large {
  font-size: 1.5em;
}

.rich-content .ql-size-huge {
  font-size: 2.5em;
}