/*
Theme Name: Nexo Blog Theme
Theme URI: https://nexomeet.io
Author: Nexo Team
Author URI: https://nexomeet.io
Description: A custom WordPress theme for the Nexo blog designed to match the main platform. Tailwind CSS included.
Version: 1.0.0
Text Domain: nexoblog
*/

/* Custom WP CSS to layer over Tailwind if needed */
.wp-block-image img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

.wp-block-heading {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', 'Geist', sans-serif;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h2.wp-block-heading {
    font-size: 2.25rem;
}

h3.wp-block-heading {
    font-size: 1.75rem;
}

.dark .wp-block-heading {
    color: #f1f5f9;
}

.wp-block-quote {
    border-left: 4px solid #8b5cf6;
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.25rem;
    color: #475569;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.wp-block-paragraph {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
    line-height: 1.9;
    font-size: 1.125rem;
    color: #334155;
    font-family: 'Inter', 'Geist', sans-serif;
}

.wp-block-list {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    font-size: 1.125rem;
    color: #334155;
    font-family: 'Inter', 'Geist', sans-serif;
}

.wp-block-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.wp-block-list.ordered,
ol.wp-block-list {
    list-style-type: decimal;
}

/* Reading Progress Bar */
#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 9999;
}

#reading-progress-bar {
    height: 100%;
    background-color: #10b981;
    /* Tailwind emerald-500 */
    width: 0%;
    transition: width 0.1s ease;
}

/* Floating Table of Contents */
#floating-toc {
    top: 6rem;
    position: sticky;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

#floating-toc ul {
    list-style: none;
    padding-left: 0;
}

#floating-toc li {
    margin-bottom: 0.75rem;
}

#floating-toc a {
    display: block;
    color: #64748b;
    /* Tailwind slate-500 */
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    line-height: 1.4;
}

#floating-toc a:hover,
#floating-toc a.active {
    color: #8b5cf6;
    /* Tailwind violet-500 */
    font-weight: 600;
}

/* Chart Styles */
.chart-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin: 3rem 0;
}

.chart-bar-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-label {
    width: 120px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
}

.chart-bar-wrapper {
    flex: 1;
    background: #e2e8f0;
    height: 1.5rem;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Fix global para legibilidad en cajas premium (evita que .prose machaque el color de las listas) */
.article-content .has-text-color li,
.article-content .has-background li,
.article-content .has-text-color p,
.article-content .has-background p {
    color: inherit !important;
}

/* Fix global para evitar que las citas (pullquotes) queden en columna hiper-estrecha */
.article-content .wp-block-pullquote,
.article-content .wp-block-pullquote blockquote {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    border: none;
    padding: 0;
}

.article-content .wp-block-pullquote p {
    font-size: 1.7rem;
    line-height: 1.3;
    font-weight: 800;
    font-style: italic;
    color: #1e293b;
    display: block;
    padding: 2rem 0;
}

/* Fix global para forzar la separación de párrafos y sobreescribir el reseteo de Tailwind Prose */
.article-content p {
    margin-bottom: 2.5rem !important;
}