/* ==========================================================================
   Post individual do blog — reaproveita as variáveis definidas em blog.css
   ========================================================================== */

.post-page {
  background: var(--bg-page);
  color: var(--ink-900);
  min-height: 60vh;
}

.post-state {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
  color: var(--ink-600);
}

.post-state h1 {
  font-size: 22px;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-400);
  text-decoration: none;
  margin-bottom: 20px;
}

.post-back-link:hover { color: var(--red-600); }

/* ===== HERO DO POST ===== */
.post-hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 40px 24px 56px;
}

.post-hero .post-back-link { color: #aab2cc; }
.post-hero .post-back-link:hover { color: var(--white); }

.post-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-hero__category {
  display: inline-block;
  background: rgba(220, 51, 39, 0.16);
  color: #ff8a7c;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.post-hero__title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.post-hero__subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: #aab2cc;
  margin: 0 0 28px;
  max-width: 620px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-hero__meta .post-card__avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.post-hero__meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-hero__author {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
}

.post-hero__meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #8590b3;
}

/* ===== CAPA ===== */
.post-cover {
  max-width: 900px;
  margin: -32px auto 0;
  padding: 0 24px;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  display: block;
}

/* ===== LAYOUT / CONTEÚDO ===== */
.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.post-content {
  font-size: 16px;
  line-height: 1.75;
  color: #2a3049;
  max-width: 680px;
}

.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 36px 0 14px;
}

.post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 28px 0 12px;
}

.post-content p { margin: 0 0 18px; }

.post-content ul,
.post-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.post-content li { margin-bottom: 8px; }

.post-content a {
  color: var(--red-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.post-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--red-600);
  background: var(--red-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--ink-600);
}

.post-content code {
  background: #eef0f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

/* ===== RELACIONADOS ===== */
.post-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 72px;
  border-top: 1px solid var(--line);
}

.post-related h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 20px;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .post-related__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .post-hero__title { font-size: 26px; }
  .post-cover { margin-top: -20px; }
  .post-related__grid { grid-template-columns: 1fr; }
}