/* =========================
RESET GLOBAL
========================= */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    color: #111;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* =========================
TIPOGRAFIA EDITORIAL
========================= */

h1, h2, h3 {
    letter-spacing: -0.3px;
    margin: 0;
}

/* H1 (Hero principal) */
.hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

/* H2 (seções) */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #e10600;
    margin-right: 10px;
}

/* H3 (cards e listas) */
.card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 8px;
}

/* =========================
HEADER BASE (GLOBAL PORTAL)
========================= */

.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* CONTAINER PRINCIPAL */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;

    display: flex;
    align-items: center;
}

/* =========================
LAYOUT EM 3 COLUNAS
========================= */

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

/* =========================
LOGO (MAIOR E PREMIUM)
========================= */

.logo-area img {
    height: 64px; /* 🔥 AUMENTADO */
    width: auto;
}

/* =========================
MENU CENTRAL (CORRIGIDO)
========================= */

.main-nav .menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.main-nav .menu li {
    position: relative;
}

.main-nav .menu a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #111;
    padding: 6px 0;
    transition: opacity .2s ease;
}

.main-nav .menu a:hover {
    opacity: 0.6;
}

/* =========================
SEARCH MODERNO (GOOGLE STYLE)
========================= */

.search-modern {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 4px 8px;
    transition: 0.3s;
}

.search-modern input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    outline: none;
    width: 160px;
    font-size: 13px;
}

.search-modern button {
    background: #5f7c8a;
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
}

/* =========================
TRANSLATOR (CORRIGIDO)
========================= */

.translator {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 12px;
    color: #444;
}

/* 🔥 GLOBO MENOR (FIX) */
.translator img { 
    width: 20px/* antes estava grande */ 
    height: 20px; 
}

/* =========================
HAMBURGER (MOBILE)
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #000;
}

/* =========================
MENU MOBILE
========================= */

.mobile-menu {
    display: none;
    background: #fff;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    list-style: none;
    padding: 20px;
}

/* =========================
RESPONSIVO
========================= */

@media (max-width: 768px) {

    .header-center {
        display: none;
    }

    .search-modern,
    .translator {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* =========================
HERO (DISCOVER STYLE)
========================= */

.hero-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 460px;
}

.hero-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.side-post {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* IMAGEM */
.hero-main img,
.side-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.2));
}

/* CONTEÚDO */
.hero-content {
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 20px;
    color: #fff;
}

/* CATEGORIA */
.hero-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.hero-category::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: #e10600;
}

/* TÍTULO LATERAL */
.side-title {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* =========================
GRID (DISCOVER)
========================= */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* CARD ESTILO GOOGLE DISCOVER */
.card {
    transition: transform .2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

/* EXCERPT (CTR BOOST) */
.card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* =========================
MAIS LIDOS
========================= */

.popular-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.popular-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* =========================
RESPONSIVO
========================= */

@media (max-width: 900px) {

    .hero-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-main {
        height: 300px;
    }

    .side-post {
        height: 200px;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}