/**
 * WordPress Classic Editor Content Styles
 * Preserves WordPress default content formatting
 */

.entry-content {
    color: hsl(var(--foreground));
    font-size: 16px;
    line-height: 1.6;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: hsl(var(--foreground));
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content h1 { font-size: 2em; }
.entry-content h2 { font-size: 1.5em; }
.entry-content h3 { font-size: 1.17em; }
.entry-content h4 { font-size: 1em; }
.entry-content h5 { font-size: 0.83em; }
.entry-content h6 { font-size: 0.67em; }

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
    margin-top: 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

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

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

.entry-content li {
    margin-bottom: 0.25em;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.entry-content a {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.entry-content a:hover {
    opacity: 0.8;
}

.entry-content strong,
.entry-content b {
    font-weight: 700;
}

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

.entry-content blockquote {
    border-left: 4px solid hsl(var(--primary));
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em 0;
}

.entry-content img.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.entry-content img.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.entry-content img.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.entry-content hr {
    border: 0;
    border-top: 1px solid hsl(var(--border));
    margin: 2em 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid hsl(var(--border));
    padding: 0.5em;
    text-align: left;
}

.entry-content table th {
    background-color: hsl(var(--muted));
    font-weight: 600;
}

.entry-content code {
    background-color: hsl(var(--muted));
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background-color: hsl(var(--muted));
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.entry-content pre code {
    background-color: transparent;
    padding: 0;
}

/* WordPress alignment classes */
.entry-content .alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.entry-content .alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress caption styles */
.entry-content .wp-caption {
    max-width: 100%;
}

.entry-content .wp-caption-text {
    font-size: 0.9em;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 0.5em;
}

/* WordPress gallery styles */
.entry-content .gallery {
    margin: 1.5em 0;
}

.entry-content .gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0 0 1em;
}
