/* ============================================================
   AQUARELA SCHOOL — BLOG POST
   Layout: hero + two-column (article + sidebar)
   Depende de style.css (variáveis e reset)
============================================================ */

/* ── POST HERO ───────────────────────────────────────────── */
.post-hero {
  background: var(--azul-escuro);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 110%, rgba(0,166,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% -10%, rgba(0,235,208,0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.post-breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  text-decoration: none;
}
.post-breadcrumb a:hover { color: var(--amarelo); }
.post-breadcrumb span {
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  line-height: 1;
}
.post-breadcrumb span:last-child {
  color: rgba(255,255,255,0.7);
}

/* ── HERO INNER GRID ─────────────────────────────────────── */
.post-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.post-hero-content {
  padding-bottom: 56px;
}

/* ── CATEGORY PILL ───────────────────────────────────────── */
.post-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.cat-pedagogia    { background: rgba(0,166,255,0.2);    color: #96F5FF; }
.cat-familia      { background: rgba(255,229,0,0.25);   color: var(--amarelo); }
.cat-saude        { background: rgba(0,235,208,0.2);    color: #00EBD0; }
.cat-desenvolvimento { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.cat-socioemocional  { background: rgba(255,229,0,0.2);    color: var(--amarelo); }

/* ── POST TITLE ──────────────────────────────────────────── */
.post-hero h1 {
  font-family: var(--font-titulo);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--branco);
  line-height: 1.15;
  margin: 16px 0 24px;
  font-weight: 700;
}

/* ── META BAR ────────────────────────────────────────────── */
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  line-height: 1;
}
.post-meta-item svg { flex-shrink: 0; opacity: 0.7; }
.post-meta-sep {
  color: rgba(255,255,255,0.25);
  font-size: 1.1rem;
  line-height: 1;
}

/* ── HERO IMAGE ──────────────────────────────────────────── */
.post-hero-img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  align-self: end;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
  position: relative;
}
.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition);
}

/* ── PAGE BACKGROUND ─────────────────────────────────────── */
.post-page-bg {
  background: var(--cinza-claro);
  padding: 0;
}

/* ── POST LAYOUT (article + sidebar) ────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  padding: 72px 0 96px;
  align-items: start;
}

/* ── ARTICLE CONTENT ─────────────────────────────────────── */
.post-content {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  box-shadow: var(--shadow-sm);
  min-width: 0; /* prevent grid blowout */
}

.post-content h2 {
  font-family: var(--font-titulo);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--azul-escuro);
  margin: 52px 0 20px;
  line-height: 1.22;
  font-weight: 700;
}
.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-family: var(--font-corpo);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--texto);
  margin: 36px 0 14px;
  line-height: 1.35;
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--texto);
  margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 24px 28px;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--texto);
}

.post-content strong {
  color: var(--azul-escuro);
  font-weight: 700;
}

.post-content em { font-style: italic; }

.post-content a {
  color: var(--azul-escuro);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.post-content a:hover { color: var(--azul); }

/* ── BLOCKQUOTE ──────────────────────────────────────────── */
.post-content blockquote {
  border-left: 4px solid var(--amarelo);
  padding: 18px 28px;
  background: var(--cinza-claro);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 36px 0;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--texto);
}
.post-content blockquote p { margin-bottom: 0; font-size: inherit; }

/* ── HIGHLIGHT BOX ───────────────────────────────────────── */
.post-highlight {
  background: rgba(52,63,180,0.06);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin: 44px 0;
  border: 1px solid rgba(52,63,180,0.1);
}
.post-highlight h3 {
  margin-top: 0;
  color: var(--azul-escuro);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.post-highlight ul { margin-bottom: 0; }
.post-highlight p:last-child { margin-bottom: 0; }

/* ── TIP BOX ─────────────────────────────────────────────── */
.post-tip {
  background: rgba(255,229,0,0.12);
  border-left: 4px solid var(--amarelo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 28px;
  margin: 32px 0;
}
.post-tip p { margin-bottom: 0; font-size: 1rem; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.post-divider {
  border: none;
  border-top: 2px solid var(--cinza-claro);
  margin: 48px 0;
}

/* ── FAQ SECTION ─────────────────────────────────────────── */
.post-faq {
  margin: 52px 0 0;
}
.post-faq > h2 {
  font-family: var(--font-titulo);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--azul-escuro);
  margin: 0 0 28px;
  line-height: 1.25;
}
.faq-item {
  border-bottom: 1px solid #E2E5F0;
  padding: 22px 0;
}
.faq-item:first-of-type { border-top: 1px solid #E2E5F0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--font-corpo);
  font-weight: 700;
  font-size: 1rem;
  color: var(--azul-escuro);
  margin-bottom: 10px;
  line-height: 1.45;
}
.faq-a {
  font-size: 0.95rem;
  color: var(--cinza);
  line-height: 1.75;
  margin: 0;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── CTA SIDEBAR CARD ────────────────────────────────────── */
.sidebar-cta {
  background: var(--azul-escuro);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(0,166,255,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.sidebar-cta h4 {
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  color: var(--branco);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.sidebar-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  margin-bottom: 22px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── SIDEBAR CARD (generic) ──────────────────────────────── */
.sidebar-card {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  color: var(--azul-escuro);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cinza-claro);
}

/* ── RELATED POSTS IN SIDEBAR ────────────────────────────── */
.sidebar-related-post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ECEEF5;
}
.sidebar-related-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-related-post img {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.sidebar-related-post .srp-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-related-post .srp-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul);
}
.sidebar-related-post a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--transition);
  display: block;
}
.sidebar-related-post a:hover { color: var(--azul-escuro); }

/* ── SIDEBAR TAGS CARD ───────────────────────────────────── */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sidebar-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azul-escuro);
  background: rgba(52,63,180,0.08);
  border-radius: 20px;
  padding: 5px 14px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sidebar-tag:hover {
  background: var(--azul-escuro);
  color: var(--branco);
}

/* ── POST SHARE ROW ──────────────────────────────────────── */
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--cinza-claro);
  flex-wrap: wrap;
}
.post-share-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cinza);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}
.post-share-btn.whatsapp {
  background: #25D366;
  color: #fff;
}
.post-share-btn.whatsapp:hover { background: #1EBF5A; }
.post-share-btn.linkedin {
  background: #0A66C2;
  color: #fff;
}
.post-share-btn.linkedin:hover { background: #0958AA; }

/* ── AUTHOR BOX ──────────────────────────────────────────── */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--cinza-claro);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 48px 0 0;
}
.post-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--azul-escuro);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-author-avatar svg { opacity: 0.6; }
.post-author-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--cinza);
}
.post-author-info strong {
  display: block;
  font-size: 1rem;
  color: var(--azul-escuro);
  margin-bottom: 4px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr 280px; gap: 40px; }
  .post-content { padding: 44px 40px; }
}

@media (max-width: 960px) {
  .post-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .post-hero-content {
    padding-bottom: 40px;
  }
  .post-hero-img {
    display: none; /* Hero image hidden on mobile; cover loads in article */
  }
  .post-layout {
    grid-template-columns: 1fr;
    padding: 48px 0 64px;
    gap: 40px;
  }
  .post-sidebar {
    position: static;
  }
  .post-sidebar .sidebar-cta { display: block; }
  .post-sidebar .sidebar-card { display: none; } /* hide related posts on mobile, save space */
}

@media (max-width: 680px) {
  .post-hero {
    padding: 48px 0 0;
  }
  .post-content {
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }
  .post-content h2 {
    margin: 40px 0 16px;
  }
  .post-content h3 {
    margin: 28px 0 12px;
  }
  .post-highlight {
    padding: 24px 22px;
  }
  .post-faq { margin-top: 40px; }
  .post-meta-bar { gap: 8px; }
  .post-author-box {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}
