/* ════════════════════════════════════════════════════
   INSIGHTS — listagem + post
   Estende styles.css. Importar APÓS styles.css.
   ════════════════════════════════════════════════════ */

/* ── PAGE HEADER (compact) ─────────────────────────── */
.page-head {
  padding: 140px var(--sp6) var(--sp10);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,165,116,.06), transparent 60%),
    var(--bg);
  position: relative;
}
.page-head .wrap { position: relative; }
.page-head .breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--sp4);
}
.page-head .breadcrumb a { color: var(--cu); }
.page-head .breadcrumb a:hover { color: var(--cu-lt); }
.page-head .breadcrumb .sep { color: var(--border2); }
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp4);
}
.page-head h1 em { font-style: italic; color: var(--cu); }
.page-head .page-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  font-style: italic;
}

/* ── FILTROS ───────────────────────────────────────── */
.filters {
  padding: var(--sp6) var(--sp6);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 60px;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10,10,10,.92);
}
.filters .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
  flex-wrap: wrap;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--white); border-color: var(--cu); }
.chip.active {
  background: var(--cu);
  border-color: var(--cu);
  color: #0a0a0a;
}
.filter-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}
.filter-count strong { color: var(--cu); }

/* ── GRID DE POSTS ─────────────────────────────────── */
.posts-section {
  padding: var(--sp10) var(--sp6) var(--sp20);
  background: var(--bg);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  overflow: hidden;
}
@media (max-width: 800px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp3);
  padding: var(--sp6) var(--sp5);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.3s;
  min-height: 280px;
}
.post-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.post-card:hover { background: var(--surf); }
.post-card:hover::before { transform: scaleX(1); }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
}
.post-card-cat {
  color: var(--cu);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cu-dim);
  border: 1px solid rgba(201,165,116,.25);
  letter-spacing: 1px;
}
.post-card h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.post-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}
.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp3);
  padding-top: var(--sp3);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.author-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cu-dk), var(--cu));
  color: #0a0a0a;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
  display: grid;
  place-items: center;
}
.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(201,165,116,.10);
  border: 1px solid rgba(201,165,116,.3);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cu);
}
.audio-pill svg { display: block; }

/* ── EMPTY STATE ───────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp16) var(--sp6);
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

/* ════════════════════════════════════════════════════
   POST PAGE
   ════════════════════════════════════════════════════ */
.post-page {
  padding: 140px var(--sp6) var(--sp10);
  background: var(--bg);
}
.post-page .wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--sp6);
  transition: color 0.2s;
}
.post-back:hover { color: var(--cu); }

.post-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--sp4);
}
.post-meta-top .cat-pill {
  color: var(--cu);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cu-dim);
  border: 1px solid rgba(201,165,116,.25);
}
.post-page h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp5);
  text-wrap: balance;
}
.post-excerpt {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: var(--sp8);
  text-wrap: pretty;
  padding-left: var(--sp4);
  border-left: 2px solid var(--cu);
}

/* ── PLAYER DE ÁUDIO ─────────────────────────────── */
.audio-player {
  display: flex;
  align-items: center;
  gap: var(--sp4);
  padding: var(--sp4) var(--sp5);
  background: linear-gradient(145deg, var(--card), var(--surf));
  border: 1px solid var(--border);
  border-radius: var(--r3);
  margin-bottom: var(--sp8);
  position: relative;
  overflow: hidden;
}
.audio-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 80% at 0% 50%, rgba(201,165,116,.08), transparent 60%);
  pointer-events: none;
}
.audio-play {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cu);
  border: none;
  color: #0a0a0a;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.audio-play:hover {
  background: var(--cu-lt);
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(201,165,116,.4);
}
.audio-play svg { display: block; transition: opacity 0.2s; }
.audio-play .pause-icon { display: none; }
.audio-play.playing .play-icon { display: none; }
.audio-play.playing .pause-icon { display: block; }

.audio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  position: relative;
}
.audio-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cu);
}
.audio-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-progress {
  width: 100%;
  height: 3px;
  background: var(--border2);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  margin-top: 4px;
}
.audio-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--cu);
  border-radius: 999px;
  transition: width 0.1s linear;
}
.audio-time {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  position: relative;
}

/* ── CORPO DO POST ─────────────────────────────────── */
.post-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  color: rgba(255,255,255,.86);
  margin-bottom: var(--sp10);
}
.post-body p {
  margin-bottom: var(--sp4);
  text-wrap: pretty;
}
.post-body p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 64px;
  line-height: 0.9;
  font-weight: 700;
  color: var(--cu);
  margin: 6px 12px 0 0;
  font-style: normal;
}
.post-body strong { color: var(--white); font-weight: 600; }

/* ── AUTHOR FOOT ───────────────────────────────────── */
.post-author-foot {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  padding: var(--sp5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp8);
}
.post-author-foot .attr-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cu-dk), var(--cu));
  color: #0a0a0a;
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.post-author-foot strong {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  display: block;
  color: var(--white);
}
.post-author-foot span {
  font-size: 13px;
  color: var(--muted);
}

/* ── RELATED ───────────────────────────────────────── */
.post-related {
  border-top: 1px solid var(--border);
  padding: var(--sp10) var(--sp6);
  background: linear-gradient(180deg, var(--bg), #0c0c0a);
}
.post-related .wrap { max-width: 1200px; }
.post-related h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cu);
  margin-bottom: var(--sp5);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,165,116,.3);
  display: inline-block;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  overflow: hidden;
}
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
