/* ViField: estilos específicos da página de notícias (news.html). */

.is-hidden { display: none !important; }

.news-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vf-green-800);
  margin-bottom: var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.news-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--vf-green-400);
}

.news-hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem var(--sp-8) var(--sp-16);
  border-bottom: 1px solid var(--vf-border);
}
.news-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.news-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--vf-green-950);
  max-width: 760px;
  margin-bottom: var(--sp-6);
}
.news-hero h1 em { font-style: normal; color: var(--vf-green-600); }
.news-hero .lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--vf-text-muted);
  max-width: 580px;
  line-height: 1.65;
}

/* Category tag + date */
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vf-green-800);
  background: var(--vf-green-100);
  border: 1px solid var(--vf-green-200);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.meta-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vf-text-muted);
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vf-green-800);
  letter-spacing: -.01em;
  transition: gap .15s ease, color .15s ease;
}
.read-link svg { flex-shrink: 0; }
.news-card:hover .read-link,
.featured-card:hover .read-link {
  color: var(--vf-green-600);
  gap: 9px;
}

/* Featured story */
.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
  border: 1px solid var(--vf-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 380px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.featured-card:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.featured-media {
  position: relative;
  overflow: hidden;
  background: var(--vf-neutral-100);
  min-height: 260px;
}
.featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.featured-card:hover .featured-media img { transform: scale(1.03); }
.featured-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: white;
  background: var(--vf-green-950);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.featured-info {
  padding: var(--sp-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.featured-info h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--vf-green-950);
}
.featured-info p {
  font-size: 14.5px;
  color: var(--vf-text-muted);
  line-height: 1.75;
}

/* Controls */
.news-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  margin: var(--sp-8) 0 var(--sp-8);
  flex-wrap: wrap;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: white;
  border: 1px solid var(--vf-border);
  border-radius: var(--r-pill);
  flex-wrap: wrap;
}
.filter-toggle button {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--vf-text-muted);
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background .15s, color .15s;
}
.filter-toggle button:hover { color: var(--vf-green-950); }
.filter-toggle button.is-active { background: var(--vf-green-950); color: white; }
.news-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vf-text-muted);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: white;
  border: 1px solid var(--vf-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card { padding-top: 0; overflow: hidden; }
.news-card-media {
  margin: 0 calc(-1 * var(--sp-6));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--vf-green-100);
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  border-color: var(--vf-green-200);
}
.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.news-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.28;
  color: var(--vf-green-950);
}
.news-card p {
  font-size: 13.5px;
  color: var(--vf-text-muted);
  line-height: 1.65;
  flex: 1;
}
.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--vf-border);
}
.news-source {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vf-text-muted);
}
.news-empty {
  display: none;
  text-align: center;
  color: var(--vf-text-muted);
  padding: var(--sp-16) var(--sp-8);
  font-size: 14px;
}
.news-empty.is-shown { display: block; }

/* News responsive */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { aspect-ratio: 16 / 9; min-height: 240px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-hero { padding: 7rem var(--sp-4) var(--sp-12); }
  .news-grid { grid-template-columns: 1fr; }
  .featured-info { padding: var(--sp-8); }
  .news-controls { align-items: flex-start; }
}
