/* WYSIWYG Content Display - Override Tailwind CSS */

/* Base styling for the container */
.wysiwyg-content {
    font-size: 1rem !important; /* 16px base font size */
    line-height: 1.7 !important;
    color: rgb(244 244 245) !important;
}

/* Strong overrides for WYSIWYG content display */
.wysiwyg-content * {
    box-sizing: border-box !important;
}

/* Paragraphs */
.wysiwyg-content p {
    margin: 1rem 0 !important;
    line-height: 1.7 !important;
    color: rgb(244 244 245) !important; /* zinc-100 */
    font-size: 1rem !important; /* 16px base */
}

/* Headings */
.wysiwyg-content h1 {
    font-size: 1.875rem !important; /* text-3xl - 30px */
    font-weight: 700 !important;
    margin: 2rem 0 1rem 0 !important;
    line-height: 1.2 !important;
    color: rgb(244 244 245) !important;
}

.wysiwyg-content h2 {
    font-size: 1.5rem !important; /* text-2xl - 24px */
    font-weight: 600 !important;
    margin: 1.75rem 0 1rem 0 !important;
    line-height: 1.3 !important;
    color: rgb(244 244 245) !important;
}

.wysiwyg-content h3 {
    font-size: 1.25rem !important; /* text-xl - 20px */
    font-weight: 600 !important;
    margin: 1.5rem 0 0.75rem 0 !important;
    line-height: 1.4 !important;
    color: rgb(244 244 245) !important;
}

.wysiwyg-content h4 {
    font-size: 1.125rem !important; /* text-lg - 18px */
    font-weight: 500 !important;
    margin: 1.25rem 0 0.5rem 0 !important;
    color: rgb(244 244 245) !important;
}

.wysiwyg-content h5 {
    font-size: 1rem !important; /* text-base - 16px */
    font-weight: 500 !important;
    margin: 1rem 0 0.5rem 0 !important;
    color: rgb(244 244 245) !important;
}

.wysiwyg-content h6 {
    font-size: 0.875rem !important; /* text-sm - 14px */
    font-weight: 500 !important;
    margin: 1rem 0 0.5rem 0 !important;
    color: rgb(244 244 245) !important;
}

/* Lists - Force display with proper styling */
.wysiwyg-content ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 1rem 0 !important;
    padding-left: 2rem !important;
    display: block !important;
}

.wysiwyg-content ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin: 1rem 0 !important;
    padding-left: 2rem !important;
    display: block !important;
}

.wysiwyg-content li {
    display: list-item !important;
    list-style: inherit !important;
    margin: 0.5rem 0 !important;
    line-height: 1.7 !important;
    color: rgb(244 244 245) !important;
    position: relative !important;
    font-size: 1rem !important; /* Ensure consistent list item size */
}

.wysiwyg-content ul ul {
    list-style-type: circle !important;
    margin: 0.5rem 0 !important;
    padding-left: 1.5rem !important;
}

.wysiwyg-content ul ul ul {
    list-style-type: square !important;
}

.wysiwyg-content ol ol {
    list-style-type: lower-alpha !important;
    margin: 0.5rem 0 !important;
    padding-left: 1.5rem !important;
}

.wysiwyg-content ol ol ol {
    list-style-type: lower-roman !important;
}

/* Blockquotes */
.wysiwyg-content blockquote {
    background: linear-gradient(135deg, rgb(39 39 42) 0%, rgb(63 63 70) 50%, rgb(39 39 42) 100%) !important;
    border-left: 4px solid rgb(59 130 246) !important;
    margin: 1.5rem 0 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-style: italic !important;
    position: relative !important;
    color: rgb(228 228 231) !important; /* zinc-200 */
    display: block !important;
    font-size: 1.1rem !important; /* 17.6px - slightly larger for emphasis */
    line-height: 1.6 !important;
}

.wysiwyg-content blockquote::before {
    content: '"' !important;
    font-size: 3rem !important;
    color: rgb(59 130 246) !important;
    position: absolute !important;
    top: -0.5rem !important;
    left: 0.5rem !important;
    line-height: 1 !important;
}

.wysiwyg-content blockquote p {
    margin: 0.5rem 0 !important;
    padding-left: 2rem !important;
}

/* Code blocks */
.wysiwyg-content pre {
    background: rgb(24 24 27) !important; /* zinc-900 */
    border: 1px solid rgb(63 63 70) !important;
    border-radius: 0.5rem !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    overflow-x: auto !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    color: rgb(244 244 245) !important;
    display: block !important;
}

.wysiwyg-content code {
    background: rgb(39 39 42) !important; /* zinc-800 */
    color: rgb(244 244 245) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 0.9rem !important; /* Slightly smaller than body text */
    border: 1px solid rgb(63 63 70) !important;
}

.wysiwyg-content pre code {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    color: inherit !important;
}

/* Links */
.wysiwyg-content a {
    color: rgb(59 130 246) !important; /* blue-500 */
    text-decoration: underline !important;
    text-decoration-color: rgb(59 130 246) !important;
    text-underline-offset: 2px !important;
    transition: all 0.2s ease !important;
}

.wysiwyg-content a:hover {
    color: rgb(96 165 250) !important; /* blue-400 */
    text-decoration-color: rgb(96 165 250) !important;
}

/* Strong and emphasis */
.wysiwyg-content strong,
.wysiwyg-content b {
    font-weight: 700 !important;
    color: rgb(244 244 245) !important;
}

.wysiwyg-content em,
.wysiwyg-content i {
    font-style: italic !important;
    color: rgb(244 244 245) !important;
}

/* Tables */
.wysiwyg-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    background: rgb(39 39 42) !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    display: table !important;
}

.wysiwyg-content th,
.wysiwyg-content td {
    border: 1px solid rgb(63 63 70) !important;
    padding: 0.75rem !important;
    text-align: left !important;
    color: rgb(244 244 245) !important;
    display: table-cell !important;
}

.wysiwyg-content th {
    background: rgb(24 24 27) !important;
    font-weight: 600 !important;
    color: rgb(244 244 245) !important;
}

/* Images */
.wysiwyg-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem !important;
    margin: 1rem 0 !important;
    display: block !important;
}

/* Horizontal rules */
.wysiwyg-content hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgb(63 63 70), transparent) !important;
    margin: 2rem 0 !important;
    display: block !important;
}

/* Definition lists */
.wysiwyg-content dl {
    margin: 1rem 0 !important;
    display: block !important;
}

.wysiwyg-content dt {
    font-weight: 600 !important;
    color: rgb(244 244 245) !important;
    margin-top: 1rem !important;
    display: block !important;
}

.wysiwyg-content dd {
    margin: 0.5rem 0 1rem 2rem !important;
    color: rgb(228 228 231) !important;
    display: block !important;
}

/* Mark/highlight */
.wysiwyg-content mark {
    background: rgb(59 130 246) !important;
    color: rgb(24 24 27) !important;
    padding: 0.125rem 0.25rem !important;
    border-radius: 0.25rem !important;
}

/* Small text */
.wysiwyg-content small {
    font-size: 0.875rem !important;
    color: rgb(161 161 170) !important; /* zinc-400 */
}

/* Subscript and superscript */
.wysiwyg-content sub,
.wysiwyg-content sup {
    font-size: 0.75rem !important;
    line-height: 0 !important;
    position: relative !important;
    vertical-align: baseline !important;
}

.wysiwyg-content sup {
    top: -0.5em !important;
}

.wysiwyg-content sub {
    bottom: -0.25em !important;
}

/* Ensure all text has proper color */
.wysiwyg-content {
    color: rgb(244 244 245) !important;
}

/* Fix any Tailwind prose overrides */
.wysiwyg-content.prose,
.wysiwyg-content .prose {
    max-width: none !important;
    color: rgb(244 244 245) !important;
}

.wysiwyg-content.prose *,
.wysiwyg-content .prose * {
    color: inherit !important;
}

/* Override ANY Tailwind prose font sizing */
.wysiwyg-content.prose h1,
.wysiwyg-content .prose h1,
.prose .wysiwyg-content h1 {
    font-size: 1.875rem !important; /* 30px */
}

.wysiwyg-content.prose h2,
.wysiwyg-content .prose h2,
.prose .wysiwyg-content h2 {
    font-size: 1.5rem !important; /* 24px */
}

.wysiwyg-content.prose h3,
.wysiwyg-content .prose h3,
.prose .wysiwyg-content h3 {
    font-size: 1.25rem !important; /* 20px */
}

.wysiwyg-content.prose h4,
.wysiwyg-content .prose h4,
.prose .wysiwyg-content h4 {
    font-size: 1.125rem !important; /* 18px */
}

.wysiwyg-content.prose h5,
.wysiwyg-content .prose h5,
.prose .wysiwyg-content h5 {
    font-size: 1rem !important; /* 16px */
}

.wysiwyg-content.prose h6,
.wysiwyg-content .prose h6,
.prose .wysiwyg-content h6 {
    font-size: 0.875rem !important; /* 14px */
}

.wysiwyg-content.prose p,
.wysiwyg-content .prose p,
.prose .wysiwyg-content p {
    font-size: 1rem !important; /* 16px */
}

.wysiwyg-content.prose li,
.wysiwyg-content .prose li,
.prose .wysiwyg-content li {
    font-size: 1rem !important; /* 16px */
}

.wysiwyg-content.prose blockquote,
.wysiwyg-content .prose blockquote,
.prose .wysiwyg-content blockquote {
    font-size: 1.1rem !important; /* 17.6px */
}

/* CKEditor Font Size Classes */
.wysiwyg-content .text-tiny {
    font-size: 0.625rem !important; /* 10px */
}

.wysiwyg-content .text-small {
    font-size: 0.75rem !important; /* 12px */
}

.wysiwyg-content .text-big {
    font-size: 1.25rem !important; /* 20px */
}

.wysiwyg-content .text-huge {
    font-size: 1.75rem !important; /* 28px */
}

/* Apply font sizes to any element with these classes */
.wysiwyg-content span.text-tiny,
.wysiwyg-content p.text-tiny,
.wysiwyg-content div.text-tiny {
    font-size: 0.625rem !important; /* 10px */
}

.wysiwyg-content span.text-small,
.wysiwyg-content p.text-small,
.wysiwyg-content div.text-small {
    font-size: 0.75rem !important; /* 12px */
}

.wysiwyg-content span.text-big,
.wysiwyg-content p.text-big,
.wysiwyg-content div.text-big {
    font-size: 1.25rem !important; /* 20px */
}

.wysiwyg-content span.text-huge,
.wysiwyg-content p.text-huge,
.wysiwyg-content div.text-huge {
    font-size: 1.75rem !important; /* 28px */
}

/* Ensure these classes work within prose containers too */
.prose .wysiwyg-content .text-tiny,
.wysiwyg-content.prose .text-tiny {
    font-size: 0.625rem !important; /* 10px */
}

.prose .wysiwyg-content .text-small,
.wysiwyg-content.prose .text-small {
    font-size: 0.75rem !important; /* 12px */
}

.prose .wysiwyg-content .text-big,
.wysiwyg-content.prose .text-big {
    font-size: 1.25rem !important; /* 20px */
}

.prose .wysiwyg-content .text-huge,
.wysiwyg-content.prose .text-huge {
    font-size: 1.75rem !important; /* 28px */
}
