/* Pulso Digital — youth-media
   Container 1100px, DM Sans, compact topbar, stacked headlines, image-overlay cards. */

/* DM Sans não empacotada localmente; fallback para sans-serif do sistema. */
:root {
  --c-primary: #7B2CBF;
  --c-accent: #FF6B6B;
  --c-bg: #FFF8FC;
  --c-text: #240046;
  --c-muted: #6A4C8A;
  --c-line: #EADBF5;
  --c-surface: #FFFFFF;
  --c-dark: #240046;
  --container: 1100px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Compact topbar ---------- */
.topbar {
  background: var(--c-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--c-accent);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { width: 30px; height: 30px; }
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #fff;
}
.brand-name span { color: var(--c-accent); }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a {
  color: #F3E8FF;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.topbar nav a:hover { color: var(--c-accent); text-decoration: none; }
.topbar nav a[aria-current="page"] { color: var(--c-accent); font-weight: 700; }

/* ---------- Tags row (categorias) ---------- */
.tags-row {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.tags-row .wrap { display: flex; gap: 10px; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #F7ECFB;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.tag:hover { background: var(--c-primary); color: #fff; }

/* ---------- Hero: stacked headlines (3 manchetes) ---------- */
.hero {
  padding: 30px 0 20px;
}
.hero-blocks { display: grid; gap: 18px; }
.hero-block {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: 0 4px 20px rgba(123,44,191,0.10);
}
.hero-block.hero-main { min-height: 220px; }
.hero-bg { width: 100%; height: 100%; min-height: 100%; }
.hero-block .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,0,70,0) 35%, rgba(36,0,70,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
}
.hero-block .kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-accent);
  margin-bottom: 6px;
}
.hero-block h1, .hero-block h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.12;
  color: #fff;
}
.hero-main h1 { font-size: 34px; }
.hero-block h2 { font-size: 20px; }
.hero-block a { color: #fff; text-decoration: none; }
.hero-block a:hover { text-decoration: underline; }
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hero-block.small .overlay { padding: 16px; }

/* ---------- Section headings ---------- */
.section { padding: 40px 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-primary);
}
.section-title::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-accent);
  display: inline-block;
}

/* ---------- Mixed feed (short blocos) ---------- */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: 0 2px 12px rgba(123,44,191,0.08);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card .thumb { position: absolute; inset: 0; }
.card .thumb-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(36,0,70,0) 40%, rgba(36,0,70,0.88) 100%);
  padding: 18px;
  color: #fff;
  margin-top: auto;
}
.card .thumb-overlay .kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--c-accent); margin-bottom: 5px;
}
.card .thumb-overlay h3 {
  margin: 0; font-size: 18px; font-weight: 700; line-height: 1.18; color: #fff;
}
.card a { color: #fff; text-decoration: none; }
.card .meta { font-size: 12px; color: #EADBF5; margin-top: 8px; }

/* ---------- Short blocos (text) ---------- */
.blocos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bloco {
  background: var(--c-surface);
  border-left: 4px solid var(--c-accent);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
}
.bloco .kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--c-primary); margin-bottom: 5px;
}
.bloco h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--c-text); }
.bloco h3 a { color: var(--c-text); }
.bloco p { margin: 0 0 6px; font-size: 14px; color: var(--c-muted); }
.bloco .meta { font-size: 12px; color: var(--c-muted); }

/* ---------- Article ---------- */
.article { padding: 34px 0 50px; }
.article-head { margin-bottom: 22px; }
.kicker-pill {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--c-text);
}
.article .byline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--c-muted);
}
.author-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-text); }
.author-chip img { width: 28px; height: 28px; border-radius: 50%; }
.article-body { font-size: 17px; line-height: 1.7; }
.article-body p { margin: 0 0 18px; }
.article-body h2 {
  font-size: 23px; font-weight: 800; letter-spacing: -0.3px; margin: 32px 0 12px; color: var(--c-text);
}
.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: #F7ECFB;
  border-radius: 12px;
  border-left: 5px solid var(--c-accent);
  font-size: 19px;
  font-weight: 500;
  color: var(--c-primary);
}
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 7px; }
.author-card {
  margin-top: 36px;
  background: var(--c-surface);
  border-radius: 16px;
  padding: 22px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: 0 2px 12px rgba(123,44,191,0.08);
}
.author-card img { width: 60px; height: 60px; border-radius: 50%; }
.author-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.author-card p { margin: 0; font-size: 14px; color: var(--c-muted); }

/* ---------- Prose pages ---------- */
.prose { padding: 40px 0; max-width: 760px; }
.prose h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 6px; color: var(--c-text); }
.prose .lede { font-size: 19px; color: var(--c-muted); margin: 0 0 26px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 32px 0 10px; color: var(--c-primary); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.contact-card {
  background: var(--c-surface); border-radius: 14px; padding: 18px;
  box-shadow: 0 2px 12px rgba(123,44,191,0.08);
}
.contact-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--c-primary); }
.contact-card p { margin: 0; font-size: 14px; color: var(--c-muted); }

/* ---------- Articles archive ---------- */
.archive { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* ---------- Footer (two-col) ---------- */
.footer {
  background: var(--c-dark);
  color: #EADBF5;
  padding: 44px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
}
.footer-brand .brand-name { font-size: 22px; }
.footer-brand p { margin: 10px 0 0; font-size: 14px; color: #C9B3E0; max-width: 360px; }
.footer-links h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-accent); margin: 0 0 12px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-links a { color: #EADBF5; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--c-accent); }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid #3A1F5C;
  font-size: 12.5px; color: #9D80BE;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Cookie corner popup ---------- */
.cookie-popup {
  position: fixed;
  bottom: 18px;
  right: 18px;
  max-width: 320px;
  background: var(--c-dark);
  color: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(36,0,70,0.35);
  z-index: 100;
  font-size: 13.5px;
  border: 2px solid var(--c-accent);
  display: none;
}
.cookie-popup.show { display: block; animation: popin 0.35s ease; }
.cookie-popup h4 { margin: 0 0 6px; font-size: 15px; color: var(--c-accent); }
.cookie-popup p { margin: 0 0 12px; line-height: 1.45; color: #EADBF5; }
.cookie-popup button {
  background: var(--c-accent); color: #fff; border: none;
  padding: 8px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px;
}
.cookie-popup button:hover { background: #ff5555; }
@keyframes popin { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .feed, .archive { grid-template-columns: 1fr 1fr; }
  .hero-sub { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feed, .archive, .blocos, .contact-cards { grid-template-columns: 1fr; }
  .hero-main h1 { font-size: 26px; }
  .article h1 { font-size: 28px; }
  .topbar nav { display: none; }
}
