/* =========================================================
   PORTAL TUPAHOST - CSS MESTRE (BLINDADO E OTIMIZADO)
   ========================================================= */

/* VARIÁVEIS (LIGHT MODE - PADRÃO FUNDO BRANCO) */
:root {
    --bg-page: #ffffff;
    --bg-surface: #f8f9fa;
    --text-main: #111111;
    --text-muted: #555555;
    --border-color: #e5e5e5;
    --header-bg: #ffffff;
    --link-color: #000000;
    --link-hover: #ff9900;
    --brand-color: #ff9900;
    --max-width: 1280px;
}

/* VARIÁVEIS (DARK MODE - MODO NOTURNO BLINDADO) */
html.dark-mode {
    --bg-page: #121212 !important;
    --bg-surface: #1e1e1e !important;
    --text-main: #f5f5f5 !important;
    --text-muted: #aaaaaa !important;
    --border-color: #333333 !important;
    --header-bg: #1a1a1a !important;
    --link-color: #ffffff !important;
    --link-hover: #ff9900 !important;
}

/* RESET E CONFIGURAÇÕES GERAIS */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: Arial, Helvetica, sans-serif; 
}

body { 
    background-color: var(--bg-page); 
    color: var(--text-main); 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

/* FIM DO SUBLINHADO - REGRA MESTRE */
a { color: var(--link-color); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--link-hover); text-decoration: none !important; }

/* Garante que NENHUM título de card sofra com sublinhados acidentais */
.mini-card:hover h4, 
.mosaico-item:hover h3, 
.vip-card:hover h3, 
.carrossel-card:hover h4,
.hero-mag-principal:hover h3,
.hero-mag-card:hover h4,
.minimalista-card:hover h4,
.manchete-box h1 a:hover,
.bullets-list a:hover,
.related-item:hover h4 {
    text-decoration: none !important;
}

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

/* =========================================================
   HEADER & NAVEGAÇÃO
   ========================================================= */
.main-header { 
    border-bottom: 2px solid var(--border-color); 
    background-color: var(--header-bg); 
    transition: background-color 0.3s ease;
}
.nav-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-size: 42px; font-weight: 900; color: var(--text-main); letter-spacing: -2.5px; text-transform: uppercase; }
.logo span { color: var(--brand-color); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.btn-theme { background: none; border: none; font-size: 24px; cursor: pointer; padding: 5px; outline: none; }
.search-box input { padding: 10px 15px; background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 4px; width: 260px; font-size: 14px; }

.nav-menu { display: flex; gap: 25px; list-style: none; padding: 15px 0; border-top: 1px solid var(--border-color); }
.nav-menu a { font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }


/* =========================================================
   CAPA - DESTAQUE PRINCIPAL FIXO (TOPO)
   ========================================================= */
.top-grid { display: grid; grid-template-columns: 1.2fr 1fr 300px; gap: 35px; padding: 35px 0; border-bottom: 1px solid var(--border-color); }

.manchete-box h1 { font-size: 44px; line-height: 1.05; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
.bullets-list { list-style: none; border-left: 3px solid var(--border-color); padding-left: 15px; margin-top: 25px; }
.bullets-list li { margin-bottom: 15px; }
.bullets-list a { font-size: 17px; line-height: 1.3; font-weight: bold; color: var(--text-muted); }

.secundaria-box img { width: 100%; height: 240px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; }
.secundaria-box h2 { font-size: 24px; line-height: 1.2; font-weight: 800; margin-bottom: 10px; }
.secundaria-box p { color: var(--text-muted); font-size: 15px; line-height: 1.4; }

.ad-box { background: var(--bg-surface); text-align: center; color: var(--text-muted); font-size: 10px; padding: 10px; border: 1px solid var(--border-color); height: 250px; display: flex; flex-direction: column; justify-content: center; margin-bottom: 20px; }
.widget-box { background: var(--bg-surface); padding: 20px; border: 1px solid var(--border-color); border-radius: 4px; }


/* =========================================================
   NOVAS GRADES INÉDITAS (SUPER CAPA TUPAHOST)
   ========================================================= */

/* Título de Seção Dinâmica */
.dynamic-section-title { font-size: 24px; font-weight: 900; text-transform: uppercase; margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.dynamic-section-title::after { content: ""; flex-grow: 1; height: 1px; background: var(--border-color); }
.dynamic-block { padding: 40px 0; border-bottom: 1px solid var(--border-color); }

/* 1. GRADE MOSAICO BENTO */
.grid-mosaico-bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 200px); gap: 20px; }
.mosaico-item { position: relative; border-radius: 8px; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-color); }
.mosaico-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.mosaico-item:hover img { transform: scale(1.05); }
.mosaico-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); color: #fff; }
.mosaico-item.grande { grid-row: span 2; }
.mosaico-item h3 { font-size: 16px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.mosaico-item.grande h3 { font-size: 28px; }

/* 2. LISTA VIP HORIZONTAL */
.grid-lista-vip { display: flex; flex-direction: column; gap: 20px; }
.vip-card { display: flex; gap: 20px; background: var(--bg-surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); transition: 0.3s; }
.vip-card:hover { border-color: var(--brand-color); }
.vip-card img { width: 280px; height: 180px; object-fit: cover; flex-shrink: 0; }
.vip-card-body { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.vip-card-body h3 { font-size: 22px; font-weight: 900; margin-bottom: 10px; line-height: 1.2; }
.vip-card-body p { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

/* 3. HERO MAGAZINE */
.grid-hero-magazine { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-mag-principal { position: relative; border-radius: 8px; overflow: hidden; height: 420px; }
.hero-mag-principal img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.hero-mag-principal:hover img { transform: scale(1.03); }
.hero-mag-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); }
.hero-mag-overlay h3 { font-size: 32px; font-weight: 900; color: #fff; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-mag-secundarias { display: flex; flex-direction: column; gap: 20px; }
.hero-mag-card { display: flex; flex-direction: row; height: 200px; background: var(--bg-surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
.hero-mag-card img { width: 140px; height: 100%; object-fit: cover; flex-shrink: 0; }
.hero-mag-body { padding: 20px; display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.hero-mag-body h4 { font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--text-main); margin: 0; }

/* 4. CARROSSEL HORIZONTAL */
.grid-carrossel-wrapper { position: relative; }
.grid-carrossel { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 15px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--brand-color) var(--bg-surface); }
.grid-carrossel::-webkit-scrollbar { height: 6px; }
.grid-carrossel::-webkit-scrollbar-track { background: var(--bg-surface); border-radius: 10px; }
.grid-carrossel::-webkit-scrollbar-thumb { background: var(--brand-color); border-radius: 10px; }
.carrossel-card { min-width: 260px; max-width: 260px; scroll-snap-align: start; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.carrossel-card img { width: 100%; height: 160px; object-fit: cover; }
.carrossel-body { padding: 15px; }
.carrossel-body h4 { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--text-main); margin-bottom: 10px; }

/* 5. MOSAICO INVERTIDO */
.grid-mosaico-invertido { display: grid; grid-template-columns: 1fr 1fr 2fr; grid-template-rows: repeat(2, 200px); gap: 20px; grid-auto-flow: dense; }
.mosaico-item.grande.direita { grid-column: span 1; grid-row: span 2; grid-column-start: 3; }

/* 6. GRID MOSAICO 5-ITENS */
.grid-mosaico-5 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mosaico-5-destaque { grid-column: span 2; grid-row: span 2; position: relative; border-radius: 8px; overflow: hidden; height: 420px; }
.mosaico-5-destaque img { width: 100%; height: 100%; object-fit: cover; }
.mosaico-5-card { display: flex; flex-direction: column; background: var(--bg-surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); height: 200px; }
.mosaico-5-card img { width: 100%; height: 110px; object-fit: cover; }
.mosaico-5-card h4 { font-size: 14px; padding: 10px; font-weight: 800; color: var(--text-main); }

/* 7. LISTA MINIMALISTA */
.grid-lista-minimalista { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.minimalista-card { display: block; background: var(--bg-surface); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); transition: 0.2s; }
.minimalista-card:hover { border-color: var(--brand-color); background: rgba(255,153,0,0.03); }
.minimalista-card h4 { font-size: 14px; font-weight: bold; color: var(--text-main); line-height: 1.4; }

/* 8. COLUNAS CLÁSSICAS (E Mini-Cards) */
.grid-colunas-classicas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-card { display: flex; gap: 15px; margin-bottom: 25px; align-items: flex-start; }
.mini-card img { width: 85px; height: 85px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.mini-card h4 { font-size: 14px; line-height: 1.3; font-weight: bold; margin-bottom: 6px; }
.mini-card p { font-size: 12px; color: var(--text-muted); line-height: 1.3; }


/* =========================================================
   PÁGINA DA NOTÍCIA (LEITURA)
   ========================================================= */
.article-container { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 40px 0; }
.article-header { margin-bottom: 25px; }
.article-cat-badge { display: inline-block; background-color: var(--brand-color); color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 15px; }
.article-title { font-size: 42px; line-height: 1.1; font-weight: 900; margin-bottom: 15px; letter-spacing: -1px; }
.article-subtitle { font-size: 18px; color: var(--text-muted); line-height: 1.4; margin-bottom: 20px; }
.article-meta { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 30px; font-size: 13px; color: var(--text-muted); }

.share-bar { display: flex; gap: 10px; }
.btn-share { padding: 6px 12px; border-radius: 4px; color: #fff; font-weight: bold; font-size: 12px; }
.share-wa { background: #25D366; }
.share-tw { background: #000000; }
.share-fb { background: #1877F2; }

.article-hero-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 4px; margin-bottom: 30px; }
.article-content { font-size: 18px; line-height: 1.7; color: var(--text-main); }
.article-content p { margin-bottom: 20px; }
.article-content h2, .article-content h3 { margin: 30px 0 15px; font-weight: 800; }

.sidebar-title { font-size: 16px; font-weight: 900; text-transform: uppercase; border-left: 4px solid var(--brand-color); padding-left: 10px; margin-bottom: 20px; }
.related-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.related-item img { width: 90px; height: 70px; object-fit: cover; border-radius: 4px; }
.related-item h4 { font-size: 14px; line-height: 1.3; }


/* =========================================================
   MÓDULOS VIP: COLUNISTAS E TV TUPAHOST
   ========================================================= */
.colunistas-wrapper { padding: 40px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 40px; }
.colunistas-track { display: flex; gap: 35px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.colunistas-track::-webkit-scrollbar { display: none; }
.colunista-card { text-align: center; min-width: 130px; scroll-snap-align: start; text-decoration: none; group: hover; }
.colunista-foto { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-surface); outline: 3px solid var(--brand-color); margin: 0 auto 15px; transition: 0.3s; }
.colunista-card:hover .colunista-foto { transform: scale(1.08); outline-color: var(--color-success); }
.colunista-card h4 { font-size: 16px; color: var(--text-main); margin-bottom: 5px; font-weight: 900; }
.colunista-card p { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }

.tv-wrapper { padding: 60px 0; background-color: #050505; border-top: 1px solid #222; border-bottom: 1px solid #222; margin: 50px 0; }
.tv-title { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 30px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.tv-title span { color: #e11d48; } 
.tv-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.tv-main iframe { width: 100%; height: 450px; border-radius: 12px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.tv-list { display: flex; flex-direction: column; gap: 15px; height: 450px; overflow-y: auto; padding-right: 10px; }
.tv-list::-webkit-scrollbar { width: 5px; }
.tv-list::-webkit-scrollbar-track { background: #111; }
.tv-list::-webkit-scrollbar-thumb { background: #e11d48; border-radius: 5px; }
.tv-item { display: flex; gap: 15px; background: #111; padding: 12px; border-radius: 8px; border: 1px solid #222; text-decoration: none; transition: 0.2s; align-items: center; }
.tv-item:hover { border-color: #e11d48; background: #1a1a1a; }
.tv-item img { width: 130px; height: 75px; object-fit: cover; border-radius: 6px; }
.tv-item h4 { font-size: 14px; color: #fff; line-height: 1.4; font-weight: 700; }

/* =========================================================
   FOOTER
   ========================================================= */
.main-footer { border-top: 1px solid var(--border-color); padding: 40px 0; text-align: center; background-color: var(--header-bg); color: var(--text-muted); font-size: 13px; margin-top: 40px; }
/* =========================================================
   BANNERS (ADSERVER) E NOVO LAYOUT DE COLUNISTAS
   ========================================================= */

/* Bloco de Anúncio Inteligente */
.ad-banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    background: rgba(0,0,0,0.02);
}
.ad-banner-container img { max-width: 100%; border-radius: 8px; }

/* Novo Carrossel de Colunistas (Design Horizontal) */
.colunistas-track { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.colunista-card-novo { 
    display: flex; align-items: center; justify-content: space-between; gap: 15px; 
    min-width: 320px; max-width: 320px; background: var(--bg-surface); padding: 20px; 
    border-radius: 8px; border: 1px solid var(--border-color); scroll-snap-align: start; 
    text-decoration: none; transition: 0.3s;
}
.colunista-card-novo:hover { border-color: var(--brand-color); }
.colunista-info { display: flex; flex-direction: column; flex-grow: 1; }
.colunista-info h4 { font-size: 16px; color: var(--brand-color); margin-bottom: 5px; font-weight: 900; }
.colunista-info p { font-size: 13px; font-weight: bold; line-height: 1.4; color: var(--text-main); }
.colunista-foto-right { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-color); flex-shrink: 0; }