/*
Theme Name: Blocksy Child
Theme URI: https://github.com/aalvestn/metric-site-modelo
Description: Child theme do Blocksy para customizações do Metric.
Author: Metric
Template: blocksy
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: blocksy-child
*/

/* === ARCHIVE WRAPPER (categoria, autor, busca, blog) === */
.mtk-archive-wrap {
    padding: 40px 20px 80px;
}
.mtk-archive-container {
    max-width: 1200px;
    margin: 0 auto;
}
.mtk-archive-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e1e8ed;
}
.mtk-archive-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-palette-color-1, #2872fa);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.mtk-archive-title {
    font-size: 32px;
    font-weight: 800;
    color: #192a3d;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.mtk-archive-title em {
    font-style: normal;
    color: var(--theme-palette-color-1, #2872fa);
}
.mtk-archive-desc {
    font-size: 16px;
    color: #3A4F66;
    line-height: 1.6;
    margin: 0;
}
.mtk-archive-empty,
.mtk-search-empty {
    text-align: center;
    color: #3A4F66;
    font-size: 16px;
    padding: 60px 20px;
}
.mtk-search-empty form {
    margin-top: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* === AUTHOR HEADER === */
.mtk-author-header {
    margin-bottom: 40px;
    max-width: 480px;
}
.mtk-author-header .sc-pwa-author-card {
    margin: 0;
}
.mtk-author-posts-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #192a3d;
    margin: 0 0 24px;
}

/* === PAGINATION === */
.mtk-archive-pagination {
    margin-top: 48px;
    text-align: center;
}
.mtk-archive-pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.mtk-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    background: #fff;
    color: #192a3d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.mtk-archive-pagination .page-numbers:hover {
    border-color: var(--theme-palette-color-1, #2872fa);
    color: var(--theme-palette-color-1, #2872fa);
}
.mtk-archive-pagination .page-numbers.current {
    background: var(--theme-palette-color-1, #2872fa);
    border-color: var(--theme-palette-color-1, #2872fa);
    color: #fff;
}
.mtk-archive-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* === SINGLE POST — Author Box e Related Posts no fim === */
.mtk-single-author-box {
    margin: 64px auto 32px;
    max-width: 720px;
}
.mtk-single-author-box .sc-pwa-author-card {
    /* Reaproveita estilos do plugin */
}

.mtk-single-related {
    margin: 48px auto 0;
    max-width: 1200px;
    padding: 48px 0 0;
    border-top: 1px solid #e1e8ed;
}
.mtk-single-related-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #192a3d;
    margin: 0 0 24px;
}

@media (max-width: 768px) {
    .mtk-single-author-box,
    .mtk-single-related {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* === SINGLE POST — CATEGORIA COMO PILL === */
/* Blocksy renderiza .entry-meta li.meta-categories no topo do post.
   Estilo padrao: data-type="underline". Vamos forcar pill via CSS. */

.entry-meta li.meta-categories,
.entry-meta li.meta-categories a {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none !important;
    border: none !important;
}
.entry-meta li.meta-categories a {
    background: color-mix(in srgb, var(--theme-palette-color-1, #2872fa) 10%, transparent);
    color: var(--theme-palette-color-1, #2872fa) !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background .15s, color .15s;
}
.entry-meta li.meta-categories a:hover {
    background: var(--theme-palette-color-1, #2872fa);
    color: #fff !important;
}

/* =============================================
   POST CONTENT — TYPOGRAPHY ENHANCEMENTS
   Aplicado APENAS em filhos diretos de .entry-content,
   pra nao afetar nossos shortcodes injetados (author box, related posts, etc.)
   ============================================= */

/* ── H2 com barra lateral ── */
.entry-content > h2 {
    position: relative;
    padding-left: 18px;
    border-left: 4px solid var(--theme-palette-color-1, #2872fa);
    line-height: 1.3;
}

/* ── Blockquote com aspas decorativas ── */
.entry-content > blockquote {
    position: relative;
    padding: 24px 28px 24px 64px;
    margin: 32px 0;
    background: #f2f5f7;
    border-left: none;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.6;
    color: #192a3d;
    font-style: italic;
}
.entry-content > blockquote::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 28px;
    height: 24px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='24' viewBox='0 0 28 24' fill='%232872fa'><path d='M0 24V12C0 5.4 5.4 0 12 0v4c-4.4 0-8 3.6-8 8h6v12H0zM16 24V12C16 5.4 21.4 0 28 0v4c-4.4 0-8 3.6-8 8h6v12H16z'/></svg>");
    background-repeat: no-repeat;
    opacity: 0.9;
}
.entry-content > blockquote p:last-child {
    margin-bottom: 0;
}
.entry-content > blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #3A4F66;
    font-style: normal;
    font-weight: 600;
}

/* ── Listas (UL) com bullets customizados ── */
.entry-content > ul:not(.wp-block-gallery):not(.blocks-gallery-grid) {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}
.entry-content > ul:not(.wp-block-gallery):not(.blocks-gallery-grid) > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    line-height: 1.65;
}
.entry-content > ul:not(.wp-block-gallery):not(.blocks-gallery-grid) > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 2px;
    background: var(--theme-palette-color-1, #2872fa);
    border-radius: 2px;
}

/* Listas aninhadas — bullet diferente pro segundo nivel */
.entry-content > ul > li ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 6px;
    list-style: none;
}
.entry-content > ul > li ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: transparent;
    border: 2px solid var(--theme-palette-color-1, #2872fa);
    border-radius: 50%;
}

/* ── Listas ordenadas (OL) — manter padrao mas com numeros coloridos ── */
.entry-content > ol {
    counter-reset: mtk-ol;
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}
.entry-content > ol > li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 8px;
    line-height: 1.65;
    counter-increment: mtk-ol;
}
.entry-content > ol > li::before {
    content: counter(mtk-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--theme-palette-color-1, #2872fa);
    font-weight: 700;
    min-width: 24px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .mtk-archive-wrap { padding: 24px 16px 60px; }
    .mtk-archive-title { font-size: 26px; }
    .mtk-archive-header { margin-bottom: 24px; padding-bottom: 16px; }

    /* Typography: ajustes pra mobile */
    .entry-content > h2 { padding-left: 14px; border-left-width: 3px; }
    .entry-content > blockquote { padding: 20px 20px 20px 56px; font-size: 16px; }
    .entry-content > blockquote::before { top: 18px; left: 16px; width: 24px; height: 20px; background-size: contain; }
}

/* === FOOTER REPLICAVEL (Esquema 3 — centralizado editorial) ============== */
/* Renderizado por metric_footer_legal() do plugin metric-toolkit v2.3.0+.   */
/* Substitui o footer nativo do Blocksy via footer.php do child theme.      */

.metric-footer {
    background: #0a0a0a;
    color: #ffffff;
    padding: 56px 20px 48px;
    text-align: center;
}
.metric-footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Brand (logo + nome lado a lado) */
.metric-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.metric-footer-logo,
.metric-footer-logo img,
.metric-footer-logo a img {
    max-height: 36px;
    width: auto;
    display: block;
    /* Inverte tonalidades preto<->branco mantendo gradacoes (estilo "fotonegativo"). */
    filter: grayscale(1) invert(1);
}
.metric-footer-site-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* Menu legais inline com bullets */
.metric-footer-menu {
    margin-bottom: 32px;
}
.metric-footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
}
.metric-footer-menu-list li {
    display: flex;
    align-items: center;
}
.metric-footer-menu-list li:not(:last-child)::after {
    content: '·';
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.4);
}
.metric-footer-menu-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color .15s;
}
.metric-footer-menu-list a:hover {
    color: #ffffff;
}

/* Divisor sutil */
.metric-footer-divider {
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 24px;
}

/* Bloco de legal (copyright + registry + tagline) */
.metric-footer-legal {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
}
.metric-footer-copy {
    margin: 0 0 4px;
}
.metric-footer-tagline {
    margin: 0;
}
.metric-footer-heart {
    color: #ef4444;
}

@media (max-width: 480px) {
    .metric-footer { padding: 40px 16px 32px; }
    .metric-footer-brand { margin-bottom: 20px; gap: 10px; }
    .metric-footer-site-name { font-size: 16px; }
    .metric-footer-menu-list a { font-size: 13px; }
    .metric-footer-menu-list li:not(:last-child)::after { margin: 0 8px; }
}
