/* ============================================================
   BLOG CMS — Stylesheet Principal
   Design: Editorial moderno — Missão ConViver
   Paleta inspirada na identidade visual da logo:
     Azul Navy  #0C2480  | Azul Royal #1A3EA0
     Ciano      #00C0D4  | Ciano Dark #0099B4  | Ciano Light #38D5E5
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --navy:       #0C2480;
  --navy-mid:   #1A3EA0;
  --accent:     #00C0D4;
  --accent-dk:  #0099B4;
  --accent-lt:  #38D5E5;
  --text:       #0A1C55;
  --muted:      #5B6E9A;
  --border:     #D0DCF0;
  --bg:         #F0F7FF;
  --white:      #FFFFFF;
  --card-sh:    0 2px 12px rgba(12,36,128,.08);
  --card-sh-hv: 0 8px 30px rgba(12,36,128,.16);
  --radius:     10px;
  --radius-sm:  6px;
  --font-head:  'Merriweather', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --max-w:      1200px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ---- CONTAINER ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.topbar-social { color: rgba(255,255,255,.65); font-size: .75rem; padding: 2px 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; transition: all var(--transition); }
.topbar-social:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

/* Logo */
.logo-link { flex-shrink: 0; }
.logo-text { display: flex; align-items: center; gap: 6px; }
.logo-main {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
}
.logo-main::after {
  content: '.';
  color: var(--accent);
}
.logo-img { height: 44px; width: auto; }

/* Search */
.header-search {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
  flex: 1;
  padding: 9px 18px;
  border: none;
  outline: none;
  font-size: .9rem;
  background: transparent;
  color: var(--text);
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  padding: 9px 16px;
  color: var(--muted);
  transition: color var(--transition);
}
.header-search button:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--navy);
  position: sticky; top: 73px; z-index: 800;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  display: block;
  padding: 13px 18px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 18px; right: 18px;
  height: 3px;
  background: var(--cat-color, var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 3px 3px 0 0;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 36px 0 48px;
  align-items: start;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* Títulos de seção */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  white-space: nowrap;
}
.section-head::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   DESTAQUE (FEATURED POST)
   ============================================================ */
.featured-section { margin-bottom: 40px; }

.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/8;
  background: var(--navy);
  box-shadow: var(--card-sh);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--card-sh-hv); }
.featured-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: opacity var(--transition), transform var(--transition);
}
.featured-card:hover img { opacity: .6; transform: scale(1.03); }

.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,20,38,.95) 0%, rgba(11,20,38,.4) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  width: fit-content;
}
.featured-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.featured-cat {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  width: fit-content;
}
.featured-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.featured-meta {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}

/* Placeholder sem imagem */
.no-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
}
.no-image-placeholder svg { opacity: .15; }

/* ============================================================
   CARDS DE NOTÍCIA
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.news-grid.news-grid-3 { grid-template-columns: repeat(3, 1fr); }

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-sh);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--card-sh-hv); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.news-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-cat {
  position: absolute; top: 12px; left: 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--accent);
}

.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.news-card:hover .card-title { color: var(--accent); }
.card-excerpt {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-views { display: flex; align-items: center; gap: 4px; }
.card-views svg { opacity: .7; }

/* Card horizontal (sidebar) */
.news-card-h {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.news-card-h:hover { border-color: var(--accent); box-shadow: var(--card-sh); }
.news-card-h + .news-card-h { margin-top: 10px; }

.card-h-img {
  width: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg);
}
.card-h-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.news-card-h:hover .card-h-img img { transform: scale(1.08); }
.card-h-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.card-h-cat { font-size: .7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.card-h-title {
  font-size: .87rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.news-card-h:hover .card-h-title { color: var(--accent); }
.card-h-date { font-size: .73rem; color: var(--muted); }

/* Card numerado (mais acessadas) */
.ranked-list { display: flex; flex-direction: column; gap: 0; }
.ranked-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--transition);
}
.ranked-item:last-child { border-bottom: none; }
.ranked-item:hover { opacity: .8; }
.ranked-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 36px;
  text-align: center;
  padding-top: 2px;
}
.ranked-item:first-child .ranked-num { color: var(--accent); }
.ranked-item:nth-child(2) .ranked-num { color: #f59e0b; }
.ranked-item:nth-child(3) .ranked-num { color: #6b7280; }
.ranked-title {
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ranked-meta { font-size: .73rem; color: var(--muted); margin-top: 4px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--card-sh);
}
.widget-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

/* Categorias widget */
.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border-left: 4px solid transparent;
  transition: all var(--transition);
  font-weight: 500;
  font-size: .88rem;
}
.cat-item:hover { background: rgba(230,57,70,.06); border-left-color: var(--cat-c, var(--accent)); color: var(--accent); }
.cat-count {
  background: var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

/* Newsletter widget */
.newsletter-widget { background: var(--navy); }
.newsletter-widget .widget-title { color: #fff; border-color: var(--accent); }
.newsletter-widget p { color: rgba(255,255,255,.7); font-size: .87rem; margin-bottom: 16px; line-height: 1.55; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 11px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-dk); }

/* ============================================================
   POST SIMPLES
   ============================================================ */
.post-header { margin-bottom: 28px; }
.post-cat-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.post-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.post-meta-bar .meta-item { display: flex; align-items: center; gap: 6px; }
.post-meta-bar svg { opacity: .7; }

/* Imagem do post */
.post-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/8;
  background: var(--bg);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Conteúdo */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748;
}
.post-content h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 900; color: var(--navy); margin: 2em 0 .75em; }
.post-content h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 1.5em 0 .6em; }
.post-content p { margin-bottom: 1.4em; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content ul, .post-content ol { margin: 1.2em 0 1.2em 1.6em; }
.post-content li { margin-bottom: .5em; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 24px;
  margin: 2em 0;
  background: rgba(230,57,70,.05);
  font-style: italic;
  color: var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content img { border-radius: var(--radius-sm); max-width: 100%; height: auto; margin: 1.5em 0; }

/* Tags / Share */
.post-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.share-btns { display: flex; gap: 8px; }
.share-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: opacity var(--transition);
  color: #fff;
}
.share-btn:hover { opacity: .85; }
.share-fb { background: #1877F2; }
.share-tw { background: #000; }
.share-wa { background: #25D366; }

/* Relacionadas */
.related-section { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ============================================================
   SEARCH / CATEGORY PAGE
   ============================================================ */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 48px 0 40px;
  margin-bottom: 36px;
}
.page-hero h1 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: .95rem; }
.page-hero .cat-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; padding: 32px 0 0; }
.pagination ul { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-dots { display: flex; align-items: center; color: var(--muted); padding: 0 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); margin-top: 64px; }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 40px; }
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 14px;
}
.footer-logo-text::after { content: '.'; color: var(--accent); }
.footer-logo-img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-desc { font-size: .88rem; line-height: 1.65; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.footer-email { color: var(--accent-lt); font-size: .88rem; }
.footer-email:hover { text-decoration: underline; }
.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.footer-count { color: rgba(255,255,255,.3); font-size: .75rem; margin-left: auto; }
.footer-post { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-post:last-child { border-bottom: none; }
.footer-post-link {
  display: block;
  font-size: .87rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color var(--transition);
}
.footer-post-link:hover { color: #fff; }
.footer-post-date { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-socials { display: flex; flex-direction: column; gap: 8px; }
.footer-social-btn {
  display: block;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.12);
  transition: all var(--transition);
}
.footer-social-btn:hover { background: var(--sc, var(--accent)); color: #fff; border-color: transparent; }
.footer-bottom {
  background: rgba(0,0,0,.25);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: #fff; }

/* ============================================================
   UTILITIES
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.load-more-wrap { text-align: center; padding: 28px 0 0; }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Breaking news bar */
.breaking-bar {
  background: var(--accent);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
}
.breaking-bar .container { display: flex; align-items: center; gap: 16px; }
.breaking-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0,0,0,.2);
  padding: 4px 12px;
  border-radius: 4px;
  flex-shrink: 0;
}
.breaking-ticker { overflow: hidden; flex: 1; }
.breaking-ticker-inner { display: flex; gap: 48px; animation: ticker 30s linear infinite; white-space: nowrap; }
.breaking-ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.breaking-item { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.breaking-item::before { content: '◆'; font-size: .5rem; opacity: .6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .news-grid.news-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { order: 1; }
  .main-content { order: 0; }
  .news-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { padding: 36px 0 24px; }
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: var(--navy);
    overflow-y: auto;
    padding-top: 80px;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 20px 0; }
  .nav-link { padding: 16px 24px; font-size: 1rem; }
  .nav-link::after { left: 24px; right: 24px; }
  .header-search { display: none; }
  .featured-overlay { padding: 24px; }
  .featured-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .featured-card { aspect-ratio: 4/3; }
  .post-title { font-size: 1.4rem; }
  .topbar { display: none; }
}

/* ============================================================
   ANIMAÇÕES DE ENTRADA
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Nav overlay mobile */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.6);
}
.nav-overlay.open { display: block; }
