/********************************************************
 * zb-post.css
 * Estilos del contenido de una publicación de ZB News.
 *
 * Reemplaza al iframe que antes aislaba los estilos: el
 * contenido de Quill usa estilos inline (style="..."), que
 * ganan por especificidad a casi todo el CSS del sitio.
 * Acá solo re-componemos lo que la plantilla (Bootstrap
 * Reboot + style.css) pisa sobre p / span / strong / ul / etc.
 *
 * Debe cargarse DESPUES de css/combined.min.css.
 ********************************************************/

.zb-post {
    color: #212529;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Párrafos: Bootstrap Reboot mete margin-bottom: 1rem y margin-top: 0 */
.zb-post p {
    margin: 0 0 1rem;
}

/* Líneas en blanco de Quill (párrafos vacíos): sin el hack ::before
   que hacía falta cuando .ql-editor forzaba white-space: pre-wrap */
.zb-post p:empty {
    min-height: 1.2em;
}

.zb-post br {
    line-height: inherit;
}

/* Formato de texto: por si hay resets agresivos en la plantilla */
.zb-post strong,
.zb-post b {
    font-weight: 700;
}

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

.zb-post u {
    text-decoration: underline;
}

/* Listas: Reboot deja padding-left: 2rem y list-style del UA */
.zb-post ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.zb-post ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.zb-post li {
    margin: 0.25rem 0;
}

.zb-post li > ul,
.zb-post li > ol {
    margin: 0.25rem 0;
}

/* Encabezados */
.zb-post h1,
.zb-post h2,
.zb-post h3,
.zb-post h4,
.zb-post h5,
.zb-post h6 {
    margin: 1.5rem 0 0.75rem;
    line-height: 1.25;
    font-weight: 600;
}

/* Titulo de la publicacion: es el unico <h1> de la pagina, pero se ve igual que el parrafo
   de titulo original (el tamaño/color lo dan los estilos inline del contenido) */
.zb-post > h1:first-child,
.zb-post > [role="heading"][aria-level="1"]:first-child {
    margin: 0 0 1rem;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* Multimedia */
.zb-post img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 6px;
}

.zb-post iframe,
.zb-post video {
    max-width: 100%;
}

.zb-post a {
    color: #0d6efd;
    text-decoration: underline;
}

.zb-post a:hover {
    color: #0a58ca;
}

/* Bloques de código (editor nuevo) */
.zb-post pre,
.zb-post pre.ql-code-block {
    background: #2b2b2b;
    color: #eee;
    border-radius: 6px;
    padding: 12px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
    line-height: 1.5;
    margin: 1rem 0;
}

.zb-post blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #dee2e6;
    color: #495057;
}

/* Clases utilitarias que puede emitir Quill */
.zb-post .ql-align-center { text-align: center; }
.zb-post .ql-align-right { text-align: right; }
.zb-post .ql-align-justify { text-align: justify; }

.zb-post .ql-font-inter { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.zb-post .ql-font-roboto { font-family: "Roboto", Arial, sans-serif; }
.zb-post .ql-font-georgia { font-family: Georgia, serif; }
.zb-post .ql-font-times-new-roman { font-family: "Times New Roman", Times, serif; }
.zb-post .ql-font-arial { font-family: Arial, Helvetica, sans-serif; }
.zb-post .ql-font-verdana { font-family: Verdana, Geneva, sans-serif; }
.zb-post .ql-font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace; }

.zb-post .ql-size-10px { font-size: 10px; }
.zb-post .ql-size-12px { font-size: 12px; }
.zb-post .ql-size-14px { font-size: 14px; }
.zb-post .ql-size-16px { font-size: 16px; }
.zb-post .ql-size-18px { font-size: 18px; }
.zb-post .ql-size-20px { font-size: 20px; }
.zb-post .ql-size-24px { font-size: 24px; }
.zb-post .ql-size-32px { font-size: 32px; }
.zb-post .ql-size-36px { font-size: 36px; }
.zb-post .ql-size-40px { font-size: 40px; }
.zb-post .ql-size-48px { font-size: 48px; }
