/*
Theme Name: Rede Seta Moderno
Theme URI: https://redeseta.com.br/
Description: Tema filho do Newspaper com modernização visual responsiva para a Rede Seta. Mantém a estrutura e as funcionalidades do tema pai.
Author: Rede Seta
Template: Newspaper
Version: 1.0.0
Text Domain: rede-seta-moderno
*/

/* ==========================================================
   REDE SETA MODERNO — camada visual complementar
   Somente CSS: não altera PHP, HTML, JavaScript ou plugins.
   ========================================================== */

:root {
  --rs-blue: #0759d8;
  --rs-blue-dark: #073a91;
  --rs-ink: #172033;
  --rs-muted: #68758a;
  --rs-line: #e7edf5;
  --rs-surface: #ffffff;
  --rs-soft: #f5f8fc;
  --rs-radius: 14px;
  --rs-shadow: 0 5px 22px rgba(18, 48, 91, .07);
  --rs-shadow-hover: 0 12px 30px rgba(18, 48, 91, .13);
}

html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: var(--rs-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Links: interação discreta, sem impor tamanhos tipográficos globais */
a { transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rs-blue);
  outline-offset: 3px;
}

/* Estrutura geral e áreas principais */
.td-container, .tdc-row, .tdc-row .vc_row { box-sizing: border-box; }
.td-main-content-wrap, .td-ss-main-content { min-width: 0; }
.td-pb-row, .td_block_wrap { border-radius: var(--rs-radius); }

/* Cabeçalho e navegação do Newspaper */
.td-header-wrap { position: relative; z-index: 100; }
.td-header-menu-wrap-full, .td-header-menu-wrap { box-shadow: 0 3px 16px rgba(15, 35, 70, .055); }
.sf-menu > li > a, .td-header-menu-wrap .sf-menu > li > a {
  transition: color .2s ease, background-color .2s ease;
}
.sf-menu > li:hover > a, .sf-menu > .current-menu-item > a, .sf-menu > .current-menu-ancestor > a {
  color: var(--rs-blue) !important;
}
.sf-menu ul, .td-mobile-menu, .td-header-sp-logo { border-radius: 0 0 12px 12px; }
.sf-menu ul { box-shadow: 0 12px 28px rgba(18, 48, 91, .13); border: 1px solid var(--rs-line); overflow: hidden; }
.sf-menu ul li a { transition: background-color .2s ease, color .2s ease; }
.sf-menu ul li a:hover { background: var(--rs-soft); color: var(--rs-blue); }

/* Barra de últimas notícias e etiquetas */
.td-header-sp-recs, .td-spot-id, .td_block_template_1 .td-block-title > *, .td-block-title-wrap .td-block-title > * {
  border-radius: 7px;
}
.td-spot-id, .td-post-category, .td-post-category a { transition: background-color .2s ease, color .2s ease; }
.td-post-category a { border-radius: 5px; }

/* Cartões de notícias e módulos: acabamento leve, sem alterar a grade */
.td_module_wrap, .td_module_flex, .tdb_module_loop, .tdb_module_template, .td-block-span, .td_block_inner .td_module_wrap {
  border-radius: var(--rs-radius);
}
.td_module_wrap .td-module-thumb, .td_module_flex .td-module-thumb, .tdb_module_loop .td-module-thumb,
.td_block_inner .td-module-thumb { overflow: hidden; border-radius: 10px; }
.td_module_wrap .td-module-thumb img, .td_module_flex .td-module-thumb img, .tdb_module_loop .td-module-thumb img {
  transition: transform .35s ease, filter .35s ease;
}
.td_module_wrap:hover .td-module-thumb img, .td_module_flex:hover .td-module-thumb img, .tdb_module_loop:hover .td-module-thumb img {
  transform: scale(1.035);
}
.td-module-title a, .entry-title a { transition: color .2s ease; }
.td-module-title a:hover, .entry-title a:hover { color: var(--rs-blue); }
.td-module-meta-info, .td-post-date, .td-post-author-name, .td-post-views { color: var(--rs-muted); }

/* Títulos de editorias e divisores */
.td-block-title, .block-title, .tdb-block-title { border-color: var(--rs-line); }
.td-block-title > *, .block-title > *, .tdb-block-title > * { border-radius: 6px 6px 0 0; }

/* Matéria individual: superfície limpa e confortável */
.td-post-content, .td-post-text-content { color: inherit; }
.td-post-featured-image img, .td-post-content img, .wp-caption img { border-radius: 10px; }
.td-post-content blockquote, blockquote { border-left-color: var(--rs-blue); }
.td-post-content a:not(.td-post-author-name a) { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Campos, pesquisa, botões e paginação */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"],
textarea, select, .td-search-input {
  border-radius: 9px;
  border-color: #dce4ef;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
input:focus, textarea:focus, select:focus, .td-search-input:focus {
  border-color: var(--rs-blue);
  box-shadow: 0 0 0 3px rgba(7, 89, 216, .10);
}
button, input[type="submit"], .td-load-more-wrap a, .page-nav a, .page-nav span {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.td-load-more-wrap a, .page-nav a { border-radius: 8px; }

/* Widgets e anúncios: acabamento sem ocultar ou redimensionar publicidade */
.td_block_wrap, .widget { min-width: 0; }
.td_block_wrap .td_block_inner, .widget > ul, .widget > div { border-radius: 10px; }
.td-a-rec, .td-g-rec, .td-a-rec-id-custom { max-width: 100%; }

/* Rodapé */
.td-footer-wrapper { border-top: 1px solid var(--rs-line); }
.td-footer-wrapper a { transition: color .2s ease; }
.td-footer-wrapper a:hover { color: var(--rs-blue); }

/* Responsividade: aprimora toque e reduz efeitos em telas menores */
@media (max-width: 767px) {
  body { overflow-x: hidden; }
  .td-container, .tdc-row, .tdc-row-composer { max-width: 100%; }
  .td-module-thumb, .td-post-featured-image { border-radius: 10px; }
  .td-module-title a, .entry-title a { overflow-wrap: anywhere; }
  .td-header-wrap { box-shadow: 0 2px 12px rgba(15, 35, 70, .06); }
  .td-mobile-nav, .td-mobile-header { box-shadow: 0 3px 16px rgba(15, 35, 70, .06); }
  .td-post-content img, .td-post-featured-image img { max-width: 100%; height: auto; }
  .td_block_wrap { margin-bottom: 18px; }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .td-container { max-width: 96%; }
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
