/*
Theme Name: Zenite
Author: Armistag
Description: Tema de grid limpo, loader, sem sidebar
Version: 1.7.0
License: GNU General Public License v2 or later
Text Domain: zenite
Tags: news, blog, full-width, custom-menu, featured-images
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff; color: #111; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

:root {
    --primary:     #c0392b;
    --header-bg:   #111111;
    --header-text: #ffffff;
    --footer-bg:   #111111;
    --footer-text: #ffffff;
    --card-radius: 12px;
}

#mb-loader { transition: opacity .4s ease; }

.loader-spinner {
    width: 56px; height: 56px;
    border: 5px solid #e5e5e5;
    border-top-color: var(--loader-color, #c0392b);
    border-radius: 50%;
    animation: mb-spin .8s linear infinite;
    margin-bottom: 20px;
}
@keyframes mb-spin { to { transform: rotate(360deg); } }

.loader-bar-wrap { width: 220px; height: 5px; background: #e5e5e5; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.loader-bar { height: 100%; background: var(--loader-color, #c0392b); border-radius: 99px; width: 0; transition: width .04s linear; }

.loader-pct { font-size: 14px; font-weight: 700; color: var(--loader-color, #c0392b); }

.loader-pulse {
    width: 64px; height: 64px;
    border-radius: 50%;
    background-color: var(--loader-color, #c0392b);
    animation: mb-pulse 1.2s ease-in-out infinite;
}
@keyframes mb-pulse {
    0%   { transform: scale(0.2); opacity: 1; }
    80%  { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(0.2); opacity: 0; }
}

.loader-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}
.loader-dots span {
    display: block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background-color: var(--loader-color, #c0392b);
    animation: mb-dots .5s ease-in-out alternate infinite;
}
.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes mb-dots {
    from { transform: translateY(0);     opacity: .3; }
    to   { transform: translateY(-14px); opacity: 1;  }
}

#masthead {
    background: var(--header-bg);
    color: var(--header-text, #fff);
    padding: 0 24px; min-height: 64px;
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header-inner {
    max-width: 1280px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; gap: 20px;
}
.header-logo { flex-shrink: 0; }
.header-logo .custom-logo-link img { max-height: 44px; width: auto; display: block; }
.logo-text-fallback { color: var(--header-text, #fff); font-size: 22px; font-weight: 900; font-style: italic; white-space: nowrap; }
.header-search { flex: 1; max-width: 340px; }
.header-search form { display: flex; background: #fff; border-radius: 8px; overflow: hidden; height: 38px; }
.header-search input { border: none; outline: none; padding: 0 14px; font-size: 14px; flex: 1; min-width: 0; background: transparent; color: #111; }
.header-search button { background: none; border: none; cursor: pointer; padding: 0 12px; color: #888; font-size: 16px; }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; align-items: center; gap: 2px; }
.header-nav ul li a {
    color: var(--header-text, #fff); font-size: 13px; font-weight: 600;
    padding: 8px 12px; display: block;
    text-transform: uppercase; letter-spacing: .4px;
    border-radius: 6px; white-space: nowrap; transition: background .15s;
}
.header-nav ul li a:hover,
.header-nav ul li.current-menu-item > a { background: rgba(255,255,255,.15); }
.menu-toggle {
    display: none; background: none;
    border: 1px solid rgba(255,255,255,.35); color: var(--header-text, #fff);
    padding: 6px 12px; font-size: 20px;
    cursor: pointer; border-radius: 6px;
    margin-left: auto; flex-shrink: 0;
}

.page-wrap { max-width: 1280px; margin: 0 auto; padding: 36px 24px 60px; }
.section-heading { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 24px; }

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 52px;
}

.hero-card {
    border-radius: var(--card-radius);
}

.hero-img-wrap {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: var(--card-radius);
    background: #1a1a1a;
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}
.hero-card:hover .hero-img { transform: scale(1.04); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.2)  55%,
        transparent     80%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-pill {
    display: inline-block;
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 11px; font-weight: 600;
    padding: 4px 12px; border-radius: 99px;
    line-height: 1.4;
    align-self: flex-start;
}

.hero-title {
    display: block;
    color: #fff;
    font-size: 15px; font-weight: 700; line-height: 1.35;
    text-decoration: none;
}
.hero-title:hover { text-decoration: underline; }

.hero-meta {
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.article-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid #ebebeb;
    display: flex; flex-direction: column;
}
.article-card .thumb-link { display: block; overflow: hidden; flex-shrink: 0; }
.article-card .thumb-link img { width: 100%; height: 190px; object-fit: cover; object-position: center; display: block; transition: transform .35s; }
.article-card:hover .thumb-link img { transform: scale(1.04); }
.no-thumb-article { width: 100%; height: 190px; background: var(--fallback-bg, #1a1a2e); }

.hero-no-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--fallback-bg, #1a1a2e);
}
.article-card .card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.cat-pill-outline {
    display: inline-block;
    border: 1px solid var(--primary); color: var(--primary);
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 99px;
    margin-bottom: 10px; line-height: 1.4; align-self: flex-start;
}
.article-card .card-title { font-size: 15px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 8px; }
.article-card .card-title a { color: #111; }
.article-card .card-title a:hover { color: var(--primary); }
.article-card .card-meta { font-size: 12px; color: #999; margin-bottom: 12px; }
.article-card .read-more { color: var(--primary); font-size: 13px; font-weight: 700; margin-top: auto; display: inline-flex; align-items: center; gap: 3px; }
.article-card .read-more:hover { text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-weight: 600; color: #444; transition: all .15s; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

.single-wrap { max-width: 780px; margin: 0 auto; padding: 40px 24px 60px; }
.single-wrap h1 { font-size: 30px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.single-wrap .post-meta { font-size: 13px; color: #999; margin-bottom: 24px; }
.single-wrap .feat-img { margin-bottom: 28px; overflow: hidden; border-radius: var(--card-radius); }
.single-wrap .feat-img img { width: 100%; height: 420px; object-fit: cover; object-position: center; display: block; }
.entry-content { font-size: 17px; line-height: 1.8; color: #222; }
.entry-content p { margin-bottom: 18px; }
.entry-content h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { border-left: 4px solid var(--primary); background: #fdf5f5; padding: 14px 20px; margin: 20px 0; font-style: italic; color: #555; border-radius: 0 8px 8px 0; }
.entry-content a { color: var(--primary); }
.entry-content img { border-radius: 8px; margin: 12px 0; max-width: 100%; }

.related-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid #eee; }
.related-section .section-heading { font-size: 20px; }
.related-grid { display: grid; gap: 20px; }
.related-card { border-radius: var(--card-radius); overflow: hidden; border: 1px solid #ebebeb; }
.related-card .thumb-link { display: block; overflow: hidden; }
.related-card .thumb-link img { width: 100%; height: 170px; object-fit: cover; object-position: center; display: block; transition: transform .35s; }
.related-card:hover .thumb-link img { transform: scale(1.04); }
.related-card .card-body { padding: 12px 14px 16px; }
.related-card .card-title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 6px; }
.related-card .card-title a { color: #111; }
.related-card .card-title a:hover { color: var(--primary); }
.related-card .card-meta { font-size: 12px; color: #999; margin-bottom: 10px; }
.related-card .read-more { color: var(--primary); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }

.archive-header { margin-bottom: 32px; }
.archive-header h1 { font-size: 26px; font-weight: 800; }
.archive-header p { color: #777; font-size: 15px; margin-top: 6px; }

.page-content-wrap { max-width: 780px; margin: 0 auto; padding: 40px 24px; }
.page-content-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); }
.error-page { text-align: center; padding: 80px 24px; }
.error-page h1 { font-size: 100px; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.error-page p { color: #777; margin-bottom: 24px; }
.btn-home { display: inline-block; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 700; }
.btn-home:hover { opacity: .9; }

#colophon {
    background: var(--footer-bg);
    color: var(--footer-text, #fff);
    padding: 40px 24px 24px;
    text-align: center;
    margin-top: 20px;
}
.footer-logo {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-logo .custom-logo-link { display: inline-block; line-height: 0; }
.footer-logo .custom-logo-link img,
.footer-logo img {
    max-height: var(--footer-logo-size, 120px) !important;
    max-width: 300px !important;
    width: auto !important;
    height: auto !important;
    min-height: 40px;
    display: block;
    margin: 0 auto;
}
.footer-logo-text { font-size: 26px; font-weight: 900; font-style: italic; color: var(--footer-text, #fff); }
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-nav ul li a { color: var(--footer-text, #fff); font-size: 13px; font-weight: 600; padding: 8px 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-nav ul li a:hover { color: var(--primary); }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,.12); margin-bottom: 20px; }
.footer-desc { font-size: 13px; color: var(--footer-text, #fff); opacity: .6; line-height: 1.7; max-width: 700px; margin: 0 auto 10px; }
.footer-copy { font-size: 12px; color: var(--footer-text, #fff); opacity: .35; }

@media (max-width: 1100px) {
    .hero-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-img-wrap { height: 300px; }
}
@media (max-width: 768px) {
    .header-search { display: none; }
    .header-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--header-bg); padding: 8px 0; z-index: 99; }
    .header-nav.open { display: block; }
    .header-nav.open ul { flex-direction: column; }
    .header-nav.open ul li a { padding: 10px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .menu-toggle { display: block; }
    .hero-grid, .articles-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr !important; }
    .hero-img-wrap { height: 260px; }
}
@media (max-width: 480px) {
    .hero-grid, .articles-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr !important; }
    .hero-img-wrap { height: 220px; }
    .single-wrap h1 { font-size: 22px; }
}
