/* css/style.css */
:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-red: #cc0000;
    --border-color: #222222;
    --card-bg: #161616;
    --text-muted: #aaaaaa;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #111111;
    --border-color: #e4e4e7;
    --card-bg: #f4f4f5;
    --text-muted: #666666;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

body { background-color: var(--bg-color); color: var(--text-color); transition: background 0.3s, color 0.3s; }

/* FIX DEFINITIVO PARA COR DE LINKS (IMPEDE AZUL E ROXO DO NAVEGADOR) */
a, a:visited, a:active { color: var(--text-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-red); }

header { padding: 15px 20px; border-bottom: 3px solid var(--accent-red); background: var(--bg-color); }
.header-top { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo-area { text-align: center; flex-grow: 1; }
.logo-area img { max-height: 55px; width: auto; display: inline-block; }

.theme-toggle-btn { background: #222; color: #fff; border: 1px solid #444; padding: 6px 12px; cursor: pointer; border-radius: 4px; font-size: 11px; font-weight: bold; }

nav.menu-barra { background: #000; padding: 0; border-bottom: 1px solid var(--border-color); }
nav.menu-barra ul { display: flex; justify-content: center; list-style: none; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; gap: 2px; }
nav.menu-barra ul li a { color: #fff !important; text-decoration: none; padding: 12px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; display: block; border-bottom: 3px solid transparent; }
nav.menu-barra ul li a:hover, nav.menu-barra ul li a.active { border-bottom-color: var(--accent-red); background: rgba(204,0,0,0.15); color: #fff !important; }

.menu-btn-mobile { display: none; }

.container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }

/* LAYOUT PRINCIPAL E LATERAL */
.layout-portal { display: flex; gap: 25px; width: 100%; align-items: flex-start; }
.col-principal { flex: 1; min-width: 0; }
.col-lateral { width: 300px; flex-shrink: 0; background: var(--card-bg); padding: 15px; border-radius: 6px; border: 1px solid var(--border-color); }
.col-lateral h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; border-bottom: 2px solid var(--accent-red); padding-bottom: 5px; color: var(--text-color); }

.tag-categoria { display: inline-block; background: var(--accent-red); color: white; padding: 3px 7px; font-size: 10px; font-weight: bold; text-transform: uppercase; border-radius: 2px; }

/* GRID DE DESTAQUES ESTILO UTV NEWS */
.destaques-grid { display: grid; grid-template-columns: 2.2fr 1.3fr 1.3fr; gap: 15px; margin-bottom: 30px; width: 100%; }

.card-hero { position: relative; border-radius: 6px; overflow: hidden; background: #000; height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-hero img { position: absolute; top:0; left:0; width:100% !important; height:100% !important; object-fit: cover !important; opacity: 0.8; transition: transform 0.4s, opacity 0.4s; }
.card-hero:hover img { transform: scale(1.04); opacity: 0.95; }
.card-hero-content { position: relative; z-index: 2; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 60%, transparent 100%); }
.card-hero-content h2 a { color: #ffffff !important; text-decoration: none; font-size: 20px; font-weight: 800; line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

.destaques-meio { display: flex; flex-direction: column; gap: 15px; height: 380px; }
.card-sub { position: relative; border-radius: 6px; overflow: hidden; background: #000; height: 182px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-sub img { position: absolute; top:0; left:0; width:100% !important; height:100% !important; object-fit: cover !important; opacity: 0.8; transition: transform 0.4s, opacity 0.4s; }
.card-sub:hover img { transform: scale(1.04); opacity: 0.95; }
.card-sub-content { position: relative; z-index: 2; padding: 12px 15px; background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, transparent 100%); }
.card-sub-content h3 a { color: #ffffff !important; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

.destaques-manchetes { background: var(--card-bg); border-radius: 6px; padding: 15px; border: 1px solid var(--border-color); height: 380px; overflow: hidden; display: flex; flex-direction: column; }
.destaques-manchetes h3 { font-size: 16px; margin-bottom: 10px; border-bottom: 2px solid var(--accent-red); padding-bottom: 6px; color: var(--text-color); font-weight: 800; }
.item-manchete { border-bottom: 1px solid var(--border-color); padding: 8px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.item-manchete:last-child { border-bottom: none; }
.item-manchete h4 a { color: var(--text-color) !important; text-decoration: none; font-size: 12px; font-weight: 700; line-height: 1.3; }
.item-manchete h4 a:hover { color: var(--accent-red) !important; }

/* FEED DE NOTÍCIAS COM TRAVA RÍGIDA DE IMAGEM */
.card-noticia-grid { display: flex; gap: 18px; border-bottom: 1px solid var(--border-color); padding: 16px 0; align-items: center; overflow: hidden; }
.card-noticia-grid img { width: 180px !important; max-width: 180px !important; height: 110px !important; max-height: 110px !important; object-fit: cover !important; border-radius: 5px; flex-shrink: 0 !important; display: block; }
.card-noticia-content { flex: 1; min-width: 0; }
.card-noticia-content h2 { margin-top: 6px; }
.card-noticia-content h2 a { color: var(--text-color) !important; text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.35; }
.card-noticia-content h2 a:hover { color: var(--accent-red) !important; }

/* Banners */
.banner-adv { width: 100%; background: #181818; text-align: center; margin: 20px 0; border: 1px solid var(--border-color); border-radius: 4px; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.banner-slot { display: none; width: 100%; }
.banner-slot.active { display: block; }
.banner-slot img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

footer { background: var(--footer-bg); color: #888; padding: 30px 20px; margin-top: 50px; font-size: 13px; border-top: 4px solid var(--accent-red); }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: #aaa !important; text-decoration: none; margin-left: 10px; }

/* RESPONSIVO */
@media (max-width: 992px) {
    .destaques-grid { grid-template-columns: 1fr; }
    .destaques-meio, .destaques-manchetes { height: auto; }
    .layout-portal { flex-direction: column; }
    .col-lateral { width: 100%; }
    .header-top { flex-direction: column; gap: 10px; }
    .menu-btn-mobile { display: block !important; background: #000; color: #fff; padding: 12px; width: 100%; border: none; font-weight: bold; cursor: pointer; text-transform: uppercase; }
    nav.menu-barra ul { display: none; flex-direction: column; width: 100%; text-align: center; }
    nav.menu-barra ul.active { display: flex; }
    .card-noticia-grid { flex-direction: column; align-items: flex-start; }
    .card-noticia-grid img { width: 100% !important; max-width: 100% !important; height: 200px !important; }
}