/* =========================================================
   iFody — Post (single blog) · Mobile-First
   Estende styles-page.css com componentes especificos de post.
   ========================================================= */

/* ============================================
   BARRA DE PROGRESSO DE LEITURA
   ============================================ */
.post-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line);
  z-index: 100;
}
.post-progress__bar {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  transition: width .15s ease-out;
  box-shadow: 0 0 8px rgba(255, 61, 138, .5);
}

/* ============================================
   POST HERO
   ============================================ */
.post-hero {
  padding: 32px 0 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 61, 138, .1) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(139, 60, 255, .1) 0%, transparent 40%),
    var(--bg);
}
@media (min-width: 720px) { .post-hero { padding: 48px 0 0; } }

.post-hero__inner { max-width: 820px; margin-bottom: 32px; }
@media (min-width: 720px) { .post-hero__inner { margin-bottom: 40px; } }

.post-hero__category {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(255, 61, 138, .12);
  border: 1px solid rgba(255, 61, 138, .3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink-light);
  text-decoration: none;
  margin-bottom: 18px;
  transition: background .2s var(--ease);
}
.post-hero__category:hover { background: rgba(255, 61, 138, .2); }

.post-hero__title {
  font-family: 'Fraunces', 'Outfit', serif;
  font-weight: 600;
  font-size: clamp(28px, 5.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.post-hero__title em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.post-hero__lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
}
@media (min-width: 720px) { .post-hero__lead { font-size: 19px; } }

/* Meta: autor + info */
.post-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .post-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.post-meta__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.post-meta__author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.post-meta__author span {
  font-size: 12px;
  color: var(--text-3);
}

.post-meta__info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}
@media (min-width: 720px) { .post-meta__info { font-size: 13px; } }
.post-meta__info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-meta__info strong { color: var(--text-2); font-weight: 600; }
.post-meta__info svg { color: var(--text-3); }

/* Capa */
.post-cover {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 24px;
}
@media (max-width: 600px) { .post-cover { aspect-ratio: 4/3; border-radius: var(--r-lg); } }
.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.post-cover__caption {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, .9);
  padding: 4px 10px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ============================================
   CONTENT: tipografia editorial pra post
   ============================================ */
.post-content { font-size: 16px; line-height: 1.75; }
@media (min-width: 720px) { .post-content { font-size: 17px; } }
.post-content p { margin-bottom: 20px; }

/* Drop cap no primeiro parágrafo */
.post-dropcap {
  font-size: 17px;
}
.post-dropcap strong:first-child {
  font-family: 'Fraunces', serif;
  float: left;
  font-size: 64px;
  line-height: .85;
  font-weight: 600;
  padding-right: 12px;
  padding-top: 6px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.post-content h2 {
  font-family: 'Fraunces', 'Outfit', serif;
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text);
}
.post-content h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 24px 0 10px;
}

/* Tabela de preço (componente do post) */
.post-price-table {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.post-price-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .post-price-row {
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: baseline;
  }
}
.post-price-row:last-child { border-bottom: 0; }
.post-price-row:nth-child(2) {
  background: rgba(255, 61, 138, .04);
  border-left: 3px solid var(--pink);
}
.post-price-row strong {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post-price-row span {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.post-price-row span em {
  font-style: normal;
  font-weight: 600;
  color: var(--pink-light);
}

/* Recomendações (3 cards de produto) */
.post-recs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 600px) {
  .post-recs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ============================================
   SHARE buttons (sticky lateral + sticky)
   ============================================ */
.post-share {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.post-share__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.post-share__buttons {
  display: flex;
  gap: 6px;
}
.post-share__btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.post-share__btn:hover {
  color: var(--pink);
  border-color: var(--pink);
  transform: translateY(-2px);
}
.post-share__btn--save:hover { color: var(--gold); border-color: var(--gold); }
.post-share__btn.is-active {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
}

/* ============================================
   TAGS
   ============================================ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0;
}
.post-tags__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 4px;
}
.post-tag {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  transition: all .2s var(--ease);
}
.post-tag:hover {
  background: rgba(255, 61, 138, .1);
  border-color: var(--pink);
  color: var(--pink-light);
}

/* ============================================
   AUTHOR BIO (no fim)
   ============================================ */
.post-author-bio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 61, 138, .04) 0%, rgba(139, 60, 255, .04) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin-top: 28px;
}
.post-author-bio__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.post-author-bio__body h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 6px 0 8px !important;
}
.post-author-bio__body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 10px;
}
.post-author-bio__links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-light);
}

/* ============================================
   NEWSLETTER CTA (final)
   ============================================ */
.post-newsletter {
  padding: 48px 0;
  background:
    linear-gradient(135deg, rgba(255, 212, 133, .08) 0%, rgba(255, 61, 138, .08) 100%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .post-newsletter { padding: 64px 0; } }
.post-newsletter__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 880px) {
  .post-newsletter__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}
.post-newsletter h2 {
  font-family: 'Fraunces', 'Outfit', serif;
  font-weight: 600;
  font-size: clamp(22px, 3.5vw, 32px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 10px 0 8px;
}
.post-newsletter p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.post-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 480px) { .post-newsletter__form { flex-direction: row; } }
.post-newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  background: white;
  border: 0;
  border-radius: 999px;
  color: #2A1A35;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.post-newsletter__form input::placeholder { color: var(--text-3); }
.post-newsletter__form.done { opacity: .6; pointer-events: none; }
