/* Blog Content Prose Styling */
/* This ensures TinyMCE and regular HTML content renders properly */

.prose {
    max-width: 100%;
    color: #374151;
}

.prose h1 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.25;
    color: #111827;
}

.prose h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #111827;
}

.prose h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.prose h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.prose h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.prose p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #374151;
    line-height: 1.75;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #374151;
    line-height: 1.75;
}

.prose li > p {
    margin-bottom: 0.5rem;
}

.prose ul > li::marker {
    color: #FF204E;
}

.prose ol > li::marker {
    color: #FF204E;
    font-weight: 600;
}

.prose a {
    color: #FF204E;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #A0153E;
}

.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prose blockquote {
    padding-left: 1.25rem;
    border-left: 4px solid #FF204E;
    color: #4b5563;
    font-style: italic;
    margin: 1.5rem 0;
    background: #f9fafb;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
}

.prose blockquote p {
    margin-bottom: 0;
}

.prose strong,
.prose b {
    font-weight: 700;
    color: #111827;
}

.prose em,
.prose i {
    font-style: italic;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: #FF204E;
    font-weight: 500;
}

.prose pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.75;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose table th {
    background-color: #f9fafb;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
}

.prose table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.prose table tr:hover {
    background-color: #f9fafb;
}

.prose hr {
    border: 0;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

.prose figure {
    margin: 1.5rem 0;
}

.prose figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prose h1 {
        font-size: 1.5rem;
    }
    
    .prose h2 {
        font-size: 1.25rem;
    }
    
    .prose h3 {
        font-size: 1.125rem;
    }
    
    .prose {
        font-size: 0.9375rem;
    }
}

/* TinyMCE specific styles */
.prose .mce-content-body {
    padding: 0;
}

/* Remove default margins on first/last children */
.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Video embeds */
.prose iframe,
.prose video {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Ensure images inside links don't get underline */
.prose a img {
    display: block;
}
