/* ═══════════════════════════════════════
   PORTAL DE NOTÍCIAS — FUTURISTA
   Referência: liberdadenews.com.br
   ═══════════════════════════════════════ */

:root {
  --red:    #e8192c;
  --dark:   #111111;
  --mid:    #222222;
  --light:  #f5f5f5;
  --border: #e0e0e0;
  --text:   #1a1a1a;
  --muted:  #666;
  --white:  #ffffff;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,.12);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--dark);
  color: #aaa;
  font-size: 12px;
  padding: 5px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-date { font-family: 'Inter', sans-serif; }
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.4); }
}

/* ── SITE HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-badge {
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.logo-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
  margin-top: 2px;
}

/* search form */
.header-search .search-form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.header-search .search-form:focus-within { border-color: var(--red); }
.header-search .search-field {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  width: 220px;
  font-family: 'Inter', sans-serif;
}
.header-search .search-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.header-search .search-submit:hover { background: #c01020; }

/* ── NAVIGATION ── */
.site-nav {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(232,25,44,.35);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.nav-list li { display: flex; }
.nav-list a, .nav-home {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 44px;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .15s;
  position: relative;
}
.nav-list a:hover, .nav-home:hover { background: rgba(0,0,0,.2); }
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--white);
  transition: left .2s, right .2s;
}
.nav-list a:hover::after { left: 0; right: 0; }
.nav-search-btn {
  background: rgba(0,0,0,.2);
  border: none;
  color: var(--white);
  padding: 0 16px;
  cursor: pointer;
  font-size: 18px;
  transition: background .15s;
}
.nav-search-btn:hover { background: rgba(0,0,0,.35); }

/* ── TICKER ── */
.ticker-bar {
  background: var(--dark);
  padding: 7px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.ticker-label {
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items {
  display: flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  color: #ccc;
  font-size: 13px;
  padding: 0 32px 0 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-item a { color: #ccc; transition: color .2s; }
.ticker-item a:hover { color: var(--white); }
.ticker-item::before { content: '▶ '; color: var(--red); margin-right: 6px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SITE WRAP ── */
.site-wrap { padding-bottom: 48px; }

/* ── HERO BLOCK ── */
.hero-block {
  position: relative;
  overflow: hidden;
  margin: 0 0 32px;
  border-radius: 0;
  max-height: 480px;
}
.hero-img-wrap { position: relative; }
.hero-img, .hero-img-placeholder {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.hero-img-placeholder {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.55) 40%,
    rgba(0,0,0,.1) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
}
.cat-tag {
  display: inline-block;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.big-tag { font-size: 13px; padding: 6px 14px; }
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-title a { color: inherit; }
.hero-title a:hover { text-decoration: underline; }
.hero-excerpt {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 680px;
  line-height: 1.5;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-date { color: rgba(255,255,255,.7); font-size: 13px; }
.hero-btn {
  display: inline-block;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 9px 22px;
  border-radius: var(--radius);
  transition: opacity .2s, transform .15s;
}
.hero-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── MAIN LAYOUT ── */
.main-layout { padding-top: 24px; }
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  margin-top: 28px;
}

/* SECTION HEAD */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #ddd;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.news-card:hover .card-img { transform: scale(1.04); }
.card-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-ph span {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,.15);
  text-transform: uppercase;
}
.card-cat-tag {
  position: absolute;
  top: 10px; left: 10px;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--dark);
}
.card-title a:hover { color: var(--red); }
.card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.card-date { font-size: 12px; color: #999; }
.card-more {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: opacity .2s;
}
.card-more:hover { opacity: .75; }

/* ── SIDEBAR ── */
.sidebar-col { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 2px solid;
  background: var(--white);
}
.widget-icon {
  width: 28px; height: 28px;
  color: var(--white);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.widget-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dark);
}

/* sidebar posts numbered list */
.sidebar-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { background: var(--light); }
.sp-num {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.sp-info { display: flex; flex-direction: column; gap: 4px; }
.sp-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
  transition: color .15s;
}
.sp-title:hover { color: var(--red); }
.sp-date { font-size: 11px; color: #999; }

/* category pills */
.cat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--c, var(--red));
  transition: background .15s, padding-left .15s;
  color: var(--dark);
}
.cat-pill:last-child { border-bottom: none; }
.cat-pill:hover { background: var(--light); padding-left: 20px; }
.cat-pill.active { background: color-mix(in srgb, var(--c) 8%, transparent); }
.cp-name { font-size: 14px; font-weight: 500; }
.cp-count {
  background: var(--c, var(--red));
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
}

/* mini posts */
.sidebar-mini-post {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.sidebar-mini-post:last-child { border-bottom: none; }
.smp-img-link { flex-shrink: 0; }
.smp-img {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: 3px;
}
.smp-info { display: flex; flex-direction: column; gap: 4px; }
.smp-title { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--dark); }
.smp-title:hover { color: var(--red); }
.smp-date { font-size: 11px; font-weight: 600; }

/* ── SINGLE POST ── */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding-top: 28px;
}
.single-main { min-width: 0; }
.single-header { margin-bottom: 24px; }
.single-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin: 12px 0 10px;
}
.single-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.single-rule {
  height: 3px;
  width: 60px;
  border-radius: 2px;
  margin-top: 4px;
}
.single-thumb-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.single-thumb { width: 100%; max-height: 480px; object-fit: cover; }

.single-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2a2a2a;
}
.single-content p { margin-bottom: 20px; }
.single-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--dark);
}
.single-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  background: var(--light);
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

.single-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
}
.pn-prev a, .pn-next a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s;
}
.pn-prev a:hover, .pn-next a:hover { color: var(--red); }

/* ── ARCHIVE ── */
.archive-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0 20px;
  border-bottom: 3px solid;
  margin-bottom: 0;
}
.archive-title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
}
.archive-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── PAGINATION ── */
.pf-pagination { margin-top: 32px; text-align: center; }
.pf-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pf-pagination .page-numbers a,
.pf-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all .15s;
}
.pf-pagination .page-numbers a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.pf-pagination .page-numbers .current { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: #aaa; margin-top: 48px; }
.footer-top { padding: 48px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo .logo-name { color: var(--white); font-size: 18px; }
.footer-logo .logo-sub { color: #777; }
.footer-about { font-size: 13px; line-height: 1.7; color: #888; max-width: 300px; }
.footer-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.footer-cats { display: flex; flex-direction: column; gap: 8px; }
.footer-cats a {
  font-size: 13px;
  color: #888;
  transition: color .15s, padding-left .15s;
}
.footer-cats a:hover { color: var(--c, var(--white)); padding-left: 6px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { font-size: 13px; color: #888; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #555;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 20px; }
  .hero-title { font-size: 20px; }
  .nav-list { overflow-x: auto; flex-wrap: nowrap; }
  .nav-list a { font-size: 12px; padding: 0 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-search { display: none; }
}

/* ── UTILITIES ── */
.main-col { min-width: 0; }

/* ── GOOGLE ADSENSE BLOCKS ── */
.ad-block {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100px;
}
.ad-block-top {
  margin: 0 0 28px;
}
.ad-block-mid {
  margin: 20px 0;
}
.ad-sidebar {
  padding: 4px;
  min-height: 250px;
}
.ad-in-content {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
