/*
Theme Name: Portal de Noticias VS
Theme URI: https://radiowwg.com.br/
Author: Vale Solucoes
Author URI: https://valesolucoesemgestao.com.br/
Description: Layout padronizado da Vale Solucoes para portais de noticias, com pagina inicial editorial, areas de publicidade, categorias e player de radio web.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: radio-wwg
*/

:root {
  --wwg-navy: #061b3a;
  --wwg-blue: #0a5ca8;
  --wwg-green: #087a3d;
  --wwg-red: #e21b23;
  --wwg-light: #f4f7fb;
  --wwg-text: #142033;
  --wwg-muted: #657084;
  --wwg-border: #dce3ed;
  --wwg-white: #ffffff;
  --wwg-shadow: 0 14px 35px rgba(6, 27, 58, .10);
  --wwg-radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wwg-text);
  background: var(--wwg-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wwg-blue); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-topbar { background: var(--wwg-navy); color: #dce8f7; font-size: .86rem; }
.site-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar-links { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar-links a:hover { color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--wwg-border); position: sticky; top: 0; z-index: 1000; }
.header-main { min-height: 104px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 28px; }
.site-branding img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; display: block; margin-top: 12px; margin-bottom: -58px; box-shadow: 0 10px 28px rgba(6,27,58,.16); border: 5px solid #fff; }
.site-title { font-size: 1.7rem; font-weight: 900; color: var(--wwg-navy); }
.site-description { color: var(--wwg-muted); margin: 0; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 22px; align-items: center; }
.primary-nav a { font-weight: 750; font-size: .96rem; color: var(--wwg-navy); }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--wwg-red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.live-button { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 999px; background: var(--wwg-red); color: #fff; font-weight: 900; box-shadow: 0 8px 18px rgba(226,27,35,.23); }
.live-button:hover { color: #fff; transform: translateY(-1px); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.22); }
.menu-toggle { display: none; border: 0; background: var(--wwg-navy); color: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; }

.breaking-bar { background: #fff; border-bottom: 1px solid var(--wwg-border); }
.breaking-inner { min-height: 46px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; overflow: hidden; }
.breaking-label { background: var(--wwg-red); color: #fff; padding: 7px 12px; border-radius: 8px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.breaking-items { white-space: nowrap; overflow: hidden; position: relative; }
.breaking-track { display: inline-flex; gap: 36px; animation: wwgTicker 34s linear infinite; }
.breaking-track:hover { animation-play-state: paused; }
.breaking-track a { font-weight: 700; color: var(--wwg-navy); }
.breaking-track a::before { content: "•"; color: var(--wwg-red); margin-right: 9px; }
@keyframes wwgTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-main { padding: 38px 0 92px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; margin-bottom: 38px; }
.hero-main, .hero-small, .post-card { position: relative; overflow: hidden; border-radius: var(--wwg-radius); background: #0a1830; box-shadow: var(--wwg-shadow); }
.hero-main { min-height: 530px; }
.hero-main img, .hero-small img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-main::after, .hero-small::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,14,32,.05), rgba(3,14,32,.92)); }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 30px; color: #fff; }
.hero-content h1, .hero-content h2 { margin: 10px 0 9px; line-height: 1.08; }
.hero-content h1 { font-size: clamp(2rem, 4vw, 3.65rem); }
.hero-content h2 { font-size: 1.25rem; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-small { min-height: 255px; }
.category-badge { display: inline-flex; background: var(--wwg-red); color: #fff; border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .84rem; opacity: .9; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
.section-block { margin-bottom: 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; border-bottom: 2px solid var(--wwg-border); }
.section-heading h2 { margin: 0; color: var(--wwg-navy); font-size: 1.65rem; padding-bottom: 10px; border-bottom: 4px solid var(--wwg-red); transform: translateY(2px); }
.section-heading a { font-weight: 800; font-size: .9rem; color: var(--wwg-blue); padding-bottom: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { background: #fff; color: var(--wwg-text); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #dce4ef; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.045); }
.post-card-body { padding: 18px; }
.post-card h3 { margin: 8px 0; font-size: 1.12rem; line-height: 1.25; color: var(--wwg-navy); }
.post-card p { margin: 8px 0 0; color: var(--wwg-muted); font-size: .93rem; }
.post-card .post-meta { color: var(--wwg-muted); }

.list-news { display: grid; gap: 18px; }
.list-item { display: grid; grid-template-columns: 210px 1fr; gap: 18px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--wwg-shadow); }
.list-item img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.list-item-content { padding: 18px 18px 18px 0; }
.list-item h3 { margin: 6px 0; color: var(--wwg-navy); line-height: 1.25; }
.list-item p { margin: 8px 0 0; color: var(--wwg-muted); }

.sidebar { display: grid; gap: 24px; }
.widget { background: #fff; border-radius: var(--wwg-radius); padding: 22px; box-shadow: var(--wwg-shadow); }
.widget-title { margin: 0 0 16px; font-size: 1.2rem; color: var(--wwg-navy); border-left: 5px solid var(--wwg-red); padding-left: 11px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--wwg-border); }
.widget li:last-child { border-bottom: 0; }
.sidebar-news { display: grid; gap: 14px; }
.sidebar-news-item { display: grid; grid-template-columns: 86px 1fr; gap: 12px; }
.sidebar-news-item img { width: 86px; height: 68px; object-fit: cover; border-radius: 9px; }
.sidebar-news-item h4 { margin: 0; font-size: .92rem; line-height: 1.25; color: var(--wwg-navy); }
.ad-placeholder { min-height: 250px; display: grid; place-items: center; background: repeating-linear-gradient(45deg,#f2f5fa,#f2f5fa 10px,#e9eef6 10px,#e9eef6 20px); color: var(--wwg-muted); text-align: center; border: 1px dashed #bdc8d8; border-radius: 12px; padding: 20px; }

.archive-header { background: #fff; padding: 28px; border-radius: var(--wwg-radius); box-shadow: var(--wwg-shadow); margin-bottom: 25px; }
.archive-header h1 { margin: 0; color: var(--wwg-navy); }
.archive-description { color: var(--wwg-muted); }
.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 9px 13px; background: #fff; border-radius: 8px; border: 1px solid var(--wwg-border); }
.page-numbers.current { background: var(--wwg-navy); color: #fff; }

.single-article { background: #fff; border-radius: var(--wwg-radius); box-shadow: var(--wwg-shadow); overflow: hidden; }
.single-header { padding: 34px 38px 20px; }
.single-header h1 { color: var(--wwg-navy); font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; margin: 12px 0 14px; }
.single-excerpt { font-size: 1.15rem; color: var(--wwg-muted); }
.single-featured img { width: 100%; max-height: 680px; object-fit: cover; display: block; }
.entry-content { padding: 35px 38px 45px; font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { color: var(--wwg-navy); }
.entry-content a { color: var(--wwg-blue); text-decoration: underline; }
.entry-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 5px solid var(--wwg-red); background: var(--wwg-light); font-size: 1.15rem; }

.site-footer { background: var(--wwg-navy); color: #dce8f7; padding: 58px 0 105px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 35px; }
.footer-brand img { width: 125px; height: 125px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; }
.site-footer h3 { color: #fff; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 35px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

.wwg-player { position: fixed; z-index: 1100; left: 0; right: 0; bottom: 0; background: rgba(6,27,58,.97); color: #fff; box-shadow: 0 -8px 28px rgba(0,0,0,.24); backdrop-filter: blur(10px); }
.wwg-player-inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.wwg-player-logo { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; }
.wwg-player-info strong { display: block; font-size: 1rem; }
.wwg-player-info span { color: #bcd0e8; font-size: .85rem; }
.wwg-player-controls { display: flex; align-items: center; gap: 12px; }
.wwg-play { width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--wwg-red); color: #fff; font-weight: 900; }
.wwg-volume { width: 110px; }
.wwg-player-empty { color: #ffccd0; font-size: .85rem; }

.no-results { background: #fff; border-radius: var(--wwg-radius); padding: 35px; box-shadow: var(--wwg-shadow); }
.search-form { display: flex; gap: 8px; }
.search-field { min-width: 0; flex: 1; border: 1px solid var(--wwg-border); border-radius: 9px; padding: 11px 12px; }
.search-submit { border: 0; background: var(--wwg-blue); color: #fff; border-radius: 9px; padding: 11px 15px; cursor: pointer; }

@media (max-width: 1020px) {
  .header-main { grid-template-columns: 140px 1fr auto; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--wwg-border); box-shadow: 0 16px 30px rgba(6,27,58,.14); padding: 18px 20px; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 22px, 1180px); }
  .site-topbar .container { padding: 8px 0; align-items: flex-start; }
  .topbar-links { display: none; }
  .header-main { min-height: 82px; grid-template-columns: 86px 1fr auto; gap: 12px; }
  .site-branding img { width: 78px; height: 78px; margin: 0; border-width: 3px; }
  .site-title { font-size: 1.05rem; }
  .site-description { display: none; }
  .live-button { display: none; }
  .hero-main { min-height: 420px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-small { min-height: 220px; }
  .cards-grid { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 120px 1fr; }
  .list-item-content { padding: 13px 13px 13px 0; }
  .list-item p { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .single-header, .entry-content { padding-left: 22px; padding-right: 22px; }
  .wwg-player-inner { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .wwg-player-logo { width: 44px; height: 44px; }
  .wwg-volume { display: none; }
}


/* Publicidade e novos blocos da home */
.wwg-ad-slot {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wwg-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(6, 27, 58, .07);
}
.wwg-ad-slot > a:not(.wwg-ad-empty) { display: block; }
.wwg-ad-slot img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.wwg-ad-label {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 27, 58, .72);
  color: #fff;
  font-size: .58rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wwg-ad-empty {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(10,92,168,.06), rgba(226,27,35,.04)),
    repeating-linear-gradient(45deg, #f8fafd, #f8fafd 12px, #f1f5fa 12px, #f1f5fa 24px);
  color: var(--wwg-navy);
}
.wwg-ad-empty strong { font-size: 1.08rem; text-transform: uppercase; letter-spacing: .06em; }
.wwg-ad-empty span { color: var(--wwg-muted); font-size: .82rem; }
.wwg-ad-wide { width: min(970px, 100%); min-height: 90px; margin: 0 auto 32px; }
.wwg-ad-top { margin-top: -8px; }
.wwg-ad-content { width: 100%; min-height: 90px; margin: 4px 0 38px; }
.wwg-ad-sidebar { width: 100%; min-height: 250px; }
.wwg-ad-sidebar-tall { min-height: 520px; }
.wwg-ad-before-footer { margin-top: 10px; margin-bottom: 5px; }
.wwg-ad-single { margin: 32px 0; }

.home-content-column { min-width: 0; }
.radio-home-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 0 0 42px;
  padding: 30px;
  border-radius: var(--wwg-radius);
  background: linear-gradient(135deg, var(--wwg-navy), #0b3970);
  color: #fff;
  box-shadow: var(--wwg-shadow);
}
.radio-home-promo h2 { margin: 5px 0 6px; line-height: 1.18; font-size: 1.55rem; }
.radio-home-promo p { margin: 0; color: #c9d9ee; }
.radio-home-kicker { color: #fff; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.radio-home-button { display: inline-flex; align-items: center; justify-content: center; min-width: 145px; padding: 13px 18px; border-radius: 999px; background: var(--wwg-red); color: #fff; font-weight: 900; white-space: nowrap; }
.radio-home-button:hover { color: #fff; transform: translateY(-1px); }

.more-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more-news-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; min-width: 0; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 7px 20px rgba(6,27,58,.07); }
.more-news-item img { width: 92px; height: 74px; object-fit: cover; border-radius: 8px; }
.more-news-item h3 { margin: 0 0 4px; font-size: .93rem; line-height: 1.22; color: var(--wwg-navy); }
.more-news-item span { color: var(--wwg-muted); font-size: .75rem; }

@media (max-width: 1020px) {
  .wwg-ad-sidebar-tall { min-height: 250px; }
  .more-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wwg-ad-wide, .wwg-ad-content { min-height: 76px; }
  .wwg-ad-sidebar, .wwg-ad-sidebar-tall { min-height: 220px; }
  .radio-home-promo { grid-template-columns: 1fr; padding: 24px; }
  .radio-home-button { justify-self: start; }
  .more-news-grid { grid-template-columns: 1fr; }
}
