/*
Theme Name: Tradutor Político
Theme URI: https://tradutorpolitico.com.br
Description: Tema customizado do portal Tradutor Político.
Author: Tradutor Político
Version: 5.0.0
Text Domain: tradutor-politico
*/

:root {
  --navy:       #0D1B2A;
  --gold:       #D4AF37;
  --bg:         #F4F4F4;
  --white:      #FFFFFF;
  --text:       #333333;
  --muted:      #888888;
  --border:     #DCDCDC;
  --navy-mid:   #162435;
  --navy-light: #1E3A58;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; object-fit: cover; }

/* ── CONTAINER PRINCIPAL ── */
.tp-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER PREMIUM FULL-WIDTH ── */
.tp-header-wrap {
  background: var(--navy) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
}
.tp-header-main {
  display: flex !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  height: 80px !important;
  padding: 0 40px !important; /* Espaçamento das bordas da tela */
}

/* LOGO */
.tp-masthead {
  display: flex !important;
  align-items: center !important;
}
.tp-masthead img.custom-logo {
  max-height: 50px !important; 
  width: auto !important;
  display: block !important;
  margin: 0 !important;
}
.tp-masthead-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
.tp-masthead-title a { color: #FFFFFF !important; }

/* LADO DIREITO (MENU + SOCIAL) */
.tp-header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* MENU DESKTOP MODERNO */
.tp-nav-desktop {
  display: flex;
  height: 100%;
}
.tp-nav-desktop ul {
  list-style: none; display: flex; margin: 0; padding: 0; align-items: stretch;
}
.tp-nav-desktop ul li {
  display: flex;
}
.tp-nav-desktop ul li a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: #8AAAC0;
  white-space: nowrap;
  position: relative;
  transition: color 0.3s ease;
}

/* EFEITO DE ATIVAÇÃO PREMIUM (SUBSTITUI O BLOCO AMARELO) */
.tp-nav-desktop ul li a::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 3px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.tp-nav-desktop ul li a:hover {
  color: var(--white);
}
.tp-nav-desktop ul li a:hover::after,
.tp-nav-desktop ul li.current-menu-item > a::after,
.tp-nav-desktop ul li.current-category-ancestor > a::after,
.tp-nav-desktop ul li.current-post-ancestor > a::after {
  transform: scaleX(1);
}
.tp-nav-desktop ul li.current-menu-item > a,
.tp-nav-desktop ul li.current-category-ancestor > a,
.tp-nav-desktop ul li.current-post-ancestor > a {
  color: var(--white);
}

/* REDES SOCIAIS NO CABEÇALHO */
.tp-social-desktop {
  display: flex;
  gap: 16px;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 24px;
}
.tp-social-desktop a {
  color: #8AAAC0;
  width: 18px; height: 18px;
  transition: color 0.3s;
}
.tp-social-desktop a:hover {
  color: var(--gold);
}

/* ── HAMBURGER ── */
.tp-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--gold);
}
.tp-hamburger svg { width: 28px; height: 28px; }

/* ── MOBILE NAV ── */
.tp-mobile-nav { display: none; background: var(--navy); flex-direction: column; border-bottom: 2px solid var(--gold); }
.tp-mobile-nav.open { display: flex; }
.tp-mobile-nav a {
  display: block; padding: 14px 20px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: #8AAAC0; border-bottom: 0.5px solid var(--navy-light);
}
.tp-mobile-nav a:hover { background: var(--gold); color: var(--navy); }
.tp-search-bar {
  background: var(--navy-mid); padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
}
.tp-search-bar input {
  background: none; border: none; outline: none;
  font-size: 13px; color: var(--white); width: 100%;
}
.tp-search-bar input::placeholder { color: #8AAAC0; }
.tp-search-bar svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ── CARDS ── */
.tp-card {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: 5px; overflow: hidden; transition: box-shadow .2s;
}
.tp-card:hover { box-shadow: 0 4px 18px rgba(13,27,42,.1); }
.tp-card-img { position: relative; overflow: hidden; }
.tp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-no-img {
  background: var(--navy-mid); display: flex;
  align-items: center; justify-content: center; color: var(--gold); opacity: .4;
}
.tp-card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold); color: var(--navy);
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; padding: 3px 9px; border-radius: 2px;
}
.tp-card-tag.outline {
  background: var(--navy); color: var(--gold);
  border: 1px solid var(--gold);
  position: static; display: inline-block; margin-bottom: 8px;
}
.tp-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(0,0,0,.62); padding: 14px 16px;
}
.tp-card-overlay h2, .tp-card-overlay h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white); font-weight: 700; line-height: 1.35;
}
.tp-card-overlay h2 { font-size: 18px; }
.tp-card-overlay h3 { font-size: 14px; }
.tp-card-body { padding: 14px 16px 16px; }
.tp-card-body p { font-size: 13px; color: #4A4A48; line-height: 1.65; margin-bottom: 10px; }
.tp-card-meta { font-size: 10.5px; color: var(--muted); }

/* ── HERO ── */
.tp-hero { padding: 32px 0 0; }
.tp-hero-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 18px; margin-bottom: 32px;
}
.tp-hero-main .tp-card-img { height: 320px; }
.tp-hero-main .tp-card-img img { height: 320px; }
.tp-hero-sidebar { display: flex; flex-direction: column; gap: 14px; }
.tp-hero-sidebar .tp-card-img { height: 130px; }
.tp-hero-sidebar .tp-card-img img { height: 130px; }
.tp-hero-sidebar .tp-card-body { padding: 10px 12px 12px; }

/* ── SECTION TITLE ── */
.tp-section-title {
  display: flex; align-items: center; gap: 10px; margin: 8px 0 18px;
}
.tp-section-title::before {
  content: ''; display: block; width: 4px; height: 18px;
  background: var(--gold); border-radius: 1px; flex-shrink: 0;
}
.tp-section-title span {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px; color: var(--navy);
}
.tp-section-title::after {
  content: ''; display: block; flex: 1; height: 0.5px; background: var(--border);
}

/* ── NEWS GRID ── */
.tp-news-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-bottom: 28px;
}
.tp-news-grid .tp-card-img { height: 110px; }
.tp-news-grid .tp-card-img img { height: 110px; }
.tp-news-grid .tp-card-body { padding: 10px 12px 12px; }
.tp-news-grid .tp-card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px; font-weight: 700; color: var(--navy);
  line-height: 1.38; margin-bottom: 6px;
}

/* ── SINGLE POST ── */
.tp-single { padding: 28px 0 40px; }
.tp-single-grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.tp-single-cats { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tp-cat-tag {
  background: var(--gold); color: var(--navy);
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; padding: 3px 9px; border-radius: 2px; display: inline-block;
}
.tp-single-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.32; margin-bottom: 12px;
}
.tp-single-lead {
  font-size: 14px; color: #555; line-height: 1.7; font-style: italic;
  border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 20px;
}
.tp-single-thumb { margin-bottom: 20px; border-radius: 4px; overflow: hidden; }
.tp-single-thumb img { width: 100%; max-height: 380px; object-fit: cover; }
.tp-single-content { font-size: 14px; color: var(--text); line-height: 1.8; }
.tp-single-content p { margin-bottom: 16px; }
.tp-single-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; margin: 24px 0 10px; color: var(--navy); }
.tp-single-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tp-single-tags a { background: var(--bg); border: 0.5px solid var(--border); color: #555; font-size: 10px; padding: 4px 10px; border-radius: 2px; }
.tp-single-tags a:hover { border-color: var(--gold); color: var(--navy); }

/* ── SIDEBAR ARTIGO ── */
.tp-sidebar-title {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: var(--navy); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--gold);
}
.tp-sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.tp-sidebar-post { border-bottom: 0.5px solid var(--border); padding-bottom: 14px; }
.tp-sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.tp-sidebar-post .tp-cat-tag { background: var(--navy); color: var(--gold); font-size: 8px; padding: 2px 7px; margin-bottom: 6px; }
.tp-sidebar-post h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.38; margin-bottom: 4px; }

/* ── RODAPÉ ── */
.tp-footer { background: var(--navy); border-top: 2px solid var(--gold); margin-top: 12px; }
.tp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px; padding: 32px 24px 24px;
}
.tp-footer-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 4px; }
.tp-footer-slogan { font-size: 9px; color: var(--gold); letter-spacing: 3.5px; text-transform: uppercase; font-style: italic; margin-bottom: 12px; }
.tp-footer-about { font-size: 12px; color: #4A6A88; line-height: 1.65; margin-bottom: 14px; }
.tp-footer-col h4 { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 0.5px solid var(--navy-light); }
.tp-footer-col ul { list-style: none; }
.tp-footer-col ul li { margin-bottom: 7px; }
.tp-footer-col ul li a { font-size: 12px; color: #4A6A88; }
.tp-footer-col ul li a:hover { color: var(--gold); }
.tp-newsletter-text { font-size: 12px; color: #4A6A88; line-height: 1.6; margin-bottom: 12px; }
.tp-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.tp-newsletter-form input { background: var(--navy-mid); border: 0.5px solid var(--navy-light); border-radius: 3px; padding: 9px 12px; font-size: 12px; color: #B0C8E0; outline: none; }
.tp-newsletter-form input:focus { border-color: var(--gold); }
.tp-newsletter-form input::placeholder { color: #3A5468; }
.tp-newsletter-form button { background: var(--gold); color: var(--navy); border: none; border-radius: 3px; padding: 9px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.tp-footer-bottom { border-top: 0.5px solid var(--navy-light); padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tp-footer-bottom span { font-size: 10.5px; color: #2A4060; }

/* ── RESPONSIVO ── */
@media (max-width: 1100px) {
  .tp-nav-desktop { display: none; }
  .tp-social-desktop { border-left: none; }
  .tp-hamburger { display: block; }
}
@media (max-width: 900px) {
  .tp-hero-grid { grid-template-columns: 1fr; }
  .tp-hero-sidebar { flex-direction: row; }
  .tp-footer-grid { grid-template-columns: 1fr 1fr; }
  .tp-single-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tp-header-main { padding: 0 20px !important; }
  .tp-masthead img.custom-logo { max-height: 40px !important; }
  .tp-news-grid { grid-template-columns: 1fr; }
  .tp-hero-sidebar { flex-direction: column; }
  .tp-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .tp-container { padding: 0 16px; }
}