/* Promovy — seção Notícias (compartilhado entre índice e matérias) */

:root {
  --bg-main: #0D0B1F;
  --bg-alt: #0A0819;
  --bg-card: #12102A;
  --purple: #7B5CF0;
  --orange: #FF6B2B;
  --green: #3FBF7F;
  --text-main: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* —— Navbar —— */

.site-header {
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 11, 31, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav {
  max-width: 960px;
  margin: 0 auto;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.nav-back {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-back:hover {
  color: var(--text-main);
}

/* —— Página índice de notícias —— */

.news-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.news-page__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.news-page__intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.news-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
  border-color: rgba(123, 92, 240, 0.35);
  transform: translateY(-2px);
}

.news-card__link {
  display: block;
  padding: 24px;
  height: 100%;
}

.news-card__tag {
  display: inline-block;
  background: rgba(255, 107, 43, 0.14);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.news-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.news-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-card__meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* —— Matéria —— */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.cat-tag {
  display: inline-block;
  background: rgba(255, 107, 43, 0.14);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.article h1 {
  font-size: 34px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.lead {
  font-size: 18px;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 28px;
}

.article p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article p strong,
.article li strong {
  color: var(--text-main);
  font-weight: 600;
}

.article h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 40px 0 18px;
}

/* —— Callouts —— */

.callout {
  border-radius: 12px;
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
}

.callout svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.callout.ok {
  background: rgba(63, 191, 127, 0.10);
  border: 0.5px solid rgba(63, 191, 127, 0.35);
}

.callout.ok svg {
  color: var(--green);
}

.callout.ok strong {
  color: #9BE9C2;
}

.callout.warn {
  background: rgba(255, 107, 43, 0.09);
  border: 0.5px solid rgba(255, 107, 43, 0.35);
}

.callout.warn svg {
  color: var(--orange);
}

.callout.warn strong {
  color: #FFB089;
}

.callout span {
  color: var(--text-secondary);
}

.callout span strong {
  color: var(--text-main);
}

/* —— Cards PF / PJ —— */

.pf-pj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.pf-pj-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.pf-pj-card .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 12px;
}

.pf-pj-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* —— Lista de recursos —— */

.res-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.res-item {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.res-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 6px;
}

.res-item p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* —— CTA Promovy —— */

.promo-cta {
  background: linear-gradient(135deg, rgba(123, 92, 240, 0.14), rgba(255, 107, 43, 0.10));
  border: 0.5px solid rgba(123, 92, 240, 0.3);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 44px 0;
  text-align: center;
}

.promo-cta h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.promo-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 9px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* —— Rodapé da matéria —— */

.article-footer {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 32px 24px 56px;
  border-top: 0.5px solid var(--border);
}

.source-note {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--purple);
  font-weight: 500;
  margin-top: 18px;
}

.back-home:hover {
  color: var(--orange);
}

/* —— Responsivo —— */

@media (max-width: 640px) {
  .article h1 {
    font-size: 27px;
  }

  .pf-pj-grid {
    grid-template-columns: 1fr;
  }

  .article {
    padding-top: 32px;
  }

  .news-page {
    padding-top: 32px;
  }
}
