/*
 * CSS Base para o Jornal Vigilante
 * Foco em layout similar ao Newspaper, grids modernos e paleta vibrante.
 */

:root {
	--color-bg: #f8f9fa;
	--color-primary: #1e3a8a; /* Azul institucional escuro */
	--color-secondary: #ff3b30; /* Vermelho/alerta para features */
    --color-text-main: #333333;
    --color-text-muted: #6c757d;
	--color-white: #ffffff;
    --color-border: #e9ecef;
    --font-primary: 'Inter', 'Roboto', sans-serif;
    --container-width: 1280px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--color-secondary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================
   HEADER & TOP BAR
   ========================================================== */
.top-bar {
    background-color: #111;
    color: #dedede;
    font-size: 13px;
    padding: 5px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-socials a {
    color: #fff;
    margin-left: 10px;
}

.site-header {
    background: var(--color-white);
    border-bottom: 2px solid var(--color-border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 15px;
}
.site-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.ad-placeholder {
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.header-ad .ad-placeholder {
    width: 728px;
    height: 90px;
}

.main-navigation {
    background: var(--color-primary);
    color: var(--color-white);
}
.nav-inner {
    display: flex;
    justify-content: space-between;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navigation li a {
    color: var(--color-white);
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
}
.main-navigation li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    padding: 15px;
    cursor: pointer;
}

#search-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 15px;
}

/* ==========================================================
   HOMEPAGE GRIDS (Newspaper Style)
   ========================================================== */
.block-header {
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 20px;
}
.block-title {
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
}
.block-title span {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    display: inline-block;
}

.block-hero {
    margin-top: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    height: 550px;
}

.hero-item {
    position: relative;
    overflow: hidden;
    background: #000;
}
.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s ease;
}
.hero-item:hover img {
    transform: scale(1.05);
    opacity: 0.6;
}
.hero-item .item-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    width: 100%;
}
.item-meta .item-title {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.3;
}
.item-big {
    grid-row: span 2;
}
.item-big .item-title {
    font-size: 26px;
    font-weight: 800;
}

.home-columns {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}
.main-content-col {
    flex: 7;
}
.sidebar-col {
    flex: 3;
}

.category-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.cat-module {
    flex: 1;
    min-width: 300px;
}

.list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.list-thumb {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
}
.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.list-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    line-height: 1.3;
}
.list-info h4 a {
    color: var(--color-text-main);
}
.list-info h4 a:hover {
    color: var(--color-primary);
}
.post-date {
    font-size: 12px;
    color: var(--color-text-muted);
}

.widget {
    background: var(--color-white);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
}
.widget-title {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px;
    margin: -20px -20px 20px -20px;
    font-size: 16px;
}

.sidebar-ad {
    width: 100%;
    height: 250px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background: #000;
    color: #999;
    padding-top: 50px;
    margin-top: 50px;
}
.footer-widgets {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column {
    flex: 1;
}
.footer-title {
    color: #fff;
    margin-bottom: 20px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li a {
    color: #999;
}
.footer-column ul li a:hover {
    color: #fff;
}
.site-info {
    background: #111;
    padding: 20px 0;
    font-size: 13px;
}
.info-inner {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .header-ad .ad-placeholder {
        width: 100%;
        max-width: 320px;
        height: 50px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .home-columns {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
    }
    .main-navigation ul.toggled {
        display: flex;
    }
    .footer-widgets {
        flex-direction: column;
    }

    /* Mobile Single Post Adjustments */
    .single-title { font-size: 26px !important; }
    .entry-content { font-size: 16px !important; line-height: 1.6; }
    .entry-footer { flex-direction: column; gap: 15px; align-items: flex-start !important; }
    .social-share a { display: block; margin-bottom: 5px; text-align: center;}
    .author-bio { flex-direction: column; text-align: center; }
}

/* ==========================================================
   SINGLE POST (Article view)
   ========================================================== */
.single-post-view .entry-header { margin-bottom: 20px; }
.single-title { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; }
.cat-links a { background: var(--color-primary); color: #fff; padding: 3px 10px; font-size: 12px; text-transform: uppercase; font-weight: bold; border-radius: 2px;}
.bottom-meta { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; border-bottom: 1px solid var(--color-border); padding-bottom:10px; }
.single-thumb img { width: 100%; height: auto; border-radius: 4px; }
.wp-caption-text { font-size: 12px; color: #888; text-align: left; font-style: italic; margin-top: 5px; }
.entry-content { font-size: 18px; line-height: 1.8; margin-top: 30px; }
.entry-content p { margin-bottom: 25px; }
.entry-footer { border-top: 1px solid var(--color-border); padding-top: 15px; margin-top: 40px; display: flex; justify-content: space-between; align-items: center;}
.social-share a { display: inline-block; padding: 5px 12px; background: #eee; color: #333; margin-right: 5px; border-radius: 3px; font-size: 14px;}
.author-bio { display: flex; gap: 20px; background: #f4f4f4; padding: 25px; border-radius: 5px; margin-top: 40px; }
.author-bio h4 { margin: 0 0 10px 0; }

