/*
Theme Name: ZanaNova Official
Theme URI: https://zananova.org
Author: J-PRO
Description: Clone exato do GSNews v2 para WordPress. Inclui Dark Mode, Mosaic Grid e Auto-idioma.
Version: 7.0
Text Domain: zananova
*/

:root { --main-color: #bb1a73; --bg-body: #f4f7f9; --bg-card: #ffffff; --text-main: #222222; --text-sub: #656565; --border: #eeeeee; }
body.darkmode { --bg-body: #121212; --bg-card: #1e1e1e; --text-main: #eeeeee; --text-sub: #aaaaaa; --border: #333333; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-body); color: var(--text-main); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; transition: 0.3s; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }

/* HEADER DESIGN */
.header-wrapper { background: var(--bg-card); padding: 15px 0; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
#jt_header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.header-logo h1 { color: var(--main-color); font-weight: 900; text-transform: uppercase; font-size: 28px; margin: 0; letter-spacing: -1px; }
.search-wrapper { flex: 1; max-width: 450px; margin: 0 20px; }
.search-input { width: 100%; padding: 10px 20px; border-radius: 25px; border: 1px solid #ddd; background: var(--bg-body); color: var(--text-main); outline: none; }

/* NAVIGATION */
.menu-wrapper { background: var(--bg-card); border-bottom: 3px solid var(--main-color); position: sticky; top: 0; z-index: 999; }
.menu-wrapper ul { display: flex; list-style: none; overflow-x: auto; }
.menu-wrapper ul li a { padding: 15px 20px; display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; white-space: nowrap; }
.menu-wrapper ul li a:hover { color: var(--main-color); }

/* MOSAIC FEATURED (IGUAL AO DEMO GSNEWS) */
.featured-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 210px 210px; gap: 10px; margin: 20px 0; list-style: none; }
.feat-item { position: relative; overflow: hidden; border-radius: 8px; background: #000; }
.feat-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; } /* O Grande da Esquerda */
.feat-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.5s; }
.feat-item:hover img { transform: scale(1.05); opacity: 0.9; }
.feat-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; }
.feat-overlay h2 { font-size: 18px; font-weight: 700; margin: 0; text-shadow: 1px 1px 2px #000; }

/* MAIN CONTENT LAYOUT */
.main-content-wrap { display: flex; gap: 30px; margin-top: 30px; align-items: flex-start; }
#main-wrapper { flex: 1; min-width: 0; }
#sidebar-wrapper { width: 320px; flex-shrink: 0; }

/* POST LIST STYLE */
.mediapost { display: flex; gap: 20px; margin-bottom: 30px; background: var(--bg-card); padding: 15px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.rcimg { width: 280px; height: 180px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.rcimg img { width: 100%; height: 100%; object-fit: cover; }
.post-info { flex: 1; }
.post-title { font-size: 22px; margin-bottom: 8px; font-weight: 700; line-height: 1.3; }
.post-meta { font-size: 11px; color: var(--text-sub); margin-bottom: 10px; text-transform: uppercase; }
.post-meta i { color: var(--main-color); margin-right: 5px; }

/* SIDEBAR WIDGETS */
.widget { background: var(--bg-card); padding: 20px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 30px; }
.widget-title { border-bottom: 2px solid var(--main-color); margin-bottom: 15px; padding-bottom: 5px; }
.widget-title h3 { font-size: 15px; text-transform: uppercase; margin: 0; color: var(--text-main); letter-spacing: 0.5px; }

/* FOOTER FULL */
#footer { background: #1b1d1f; color: #fff; padding: 60px 0 20px; margin-top: 50px; border-top: 5px solid var(--main-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 40px; }
#credit { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 13px; color: #777; }

/* SWITCHES */
.type-dark { cursor: pointer; display: flex; align-items: center; }
.switch { position: relative; display: inline-block; width: 45px; height: 22px; }
.slider1 { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 34px; transition: .4s; }
.slider1:before { content: "\f186"; font-family: "Font Awesome 5 Pro"; font-weight: 900; position: absolute; left: 4px; top: 2px; font-size: 13px; color: #666; transition: .4s; }
input:checked + .slider1 { background-color: var(--main-color); }
input:checked + .slider1:before { content: "\f185"; transform: translateX(23px); color: #fff; }

/* MOBILE RESPONSIVE */
@media screen and (max-width: 980px) {
    .main-content-wrap { flex-direction: column; }
    #sidebar-wrapper { width: 100%; }
    .featured-mosaic { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 600px) {
    .mediapost { flex-direction: column; }
    .rcimg { width: 100%; height: 200px; }
    .featured-mosaic { display: block; }
    .feat-item { margin-bottom: 10px; height: 220px; }
    #jt_header { flex-direction: column; gap: 15px; }
}