/* Wordpress Content Styles */

/* General Prose Styles (already in app.css, but can be extended here if needed) */
.prose {
    /* max-width: none; */ /* Already handled by Tailwind's prose plugin or app.css */
}

/* Headings */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--gray-900);
}

.prose h1 {
    font-size: 2.5em;
}

.prose h2 {
    font-size: 2em;
}

.prose h3 {
    font-size: 1.75em;
}

.prose h4 {
    font-size: 1.5em;
}

.prose h5 {
    font-size: 1.25em;
}

.prose h6 {
    font-size: 1em;
    color: var(--gray-600);
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.5em;
    line-height: 1.75;
    color: var(--gray-700);
}

/* Lists */
.prose ul,
.prose ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5em;
    line-height: 1.75;
    color: var(--gray-700);
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-bottom: 0;
    margin-top: 0.5em;
}

/* Links */
.prose a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-color: var(--primary-blue);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose a:hover {
    color: var(--primary-blue-dark);
    text-decoration-color: var(--primary-blue-dark);
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.prose figure {
    margin: 2em 0;
    text-align: center;
}

.prose figcaption {
    font-size: 0.875em;
    color: var(--gray-600);
    margin-top: 0.5em;
    text-align: center;
    font-style: italic;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    border: 1px solid var(--gray-300);
}

.prose th,
.prose td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.prose th {
    background-color: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
}

.prose tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 2em 0;
    font-style: italic;
    color: var(--gray-600);
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.25rem;
}

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

/* Code Blocks */
.prose code {
    background-color: var(--gray-100);
    color: var(--gray-800);
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.875em;
}

.prose pre {
    background-color: var(--gray-900);
    color: var(--gray-50);
    padding: 1.5em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.875em;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Embeds */
.prose iframe,
.prose video,
.prose audio {
    max-width: 100%;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.prose .wp-block-embed {
    margin: 2em 0;
}

/* Separators */
.prose hr {
    border: none;
    height: 1px;
    background-color: var(--gray-300);
    margin: 2em 0;
}

/* WordPress Specific Classes */
.prose .wp-caption {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 1em;
    border-radius: 0.5rem;
    text-align: center;
}

.prose .wp-caption-text {
    font-size: 0.875em;
    color: var(--gray-600);
    margin-top: 0.5em;
    font-style: italic;
}

.prose .alignleft {
    float: left;
    margin: 0.5em 1.5em 0.5em 0;
}

.prose .alignright {
    float: right;
    margin: 0.5em 0 0.5em 1.5em;
}

.prose .aligncenter {
    display: block;
    margin: 1.5em auto;
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .prose .alignleft,
    .prose .alignright {
        float: none;
        display: block;
        margin: 1.5em auto;
        clear: both;
    }
}

/* WordPress Gutenberg Block Styles */
.prose .wp-block-gallery {
    margin: 2em 0;
}

.prose .wp-block-gallery .blocks-gallery-item {
    margin: 0.5em;
}

.prose .wp-block-quote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 2em 0;
    font-style: italic;
    color: var(--gray-600);
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.25rem;
}

.prose .wp-block-pullquote {
    border-top: 4px solid var(--primary-blue);
    border-bottom: 4px solid var(--primary-blue);
    padding: 2em;
    margin: 2em 0;
    text-align: center;
    font-style: italic;
    color: var(--gray-700);
}

.prose .wp-block-code {
    background-color: var(--gray-900);
    color: var(--gray-50);
    padding: 1.5em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.875em;
}
