/* ============================================================
   BLOG · Dr. André Piacentini
   Design premium · Editorial · Mobile-first
   ============================================================ */

:root {
  --b-primary:   #155F70;
  --b-primary-d: #0e424f;
  --b-accent:    #3aa7b8;
  --b-soft:      #e8f3f4;
  --b-cream:     #faf7f1;
  --b-ink:       #1c2630;
  --b-mute:      #6a7783;
  --b-border:    rgba(21,95,112,0.14);
  --b-shadow:    0 30px 60px -30px rgba(21,95,112,0.25);
  --b-radius:    20px;
}

/* ======= BLOG HERO ======= */
.blog-hero {
  position: relative;
  padding: 110px 0 60px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(58,167,184,0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 30%, rgba(21,95,112,0.08), transparent 60%),
    linear-gradient(180deg, var(--b-cream) 0%, #fff 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--b-border);
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21,95,112,0.13) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: .25;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}
.blog-hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  gap: 36px;
}
.blog-hero__head {
  max-width: 760px;
}
.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--b-primary);
  background: var(--b-soft);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.blog-hero__eyebrow svg { color: var(--b-accent); }
.blog-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--b-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.blog-hero__title em {
  font-style: italic;
  color: var(--b-primary);
}
.blog-hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--b-mute);
  max-width: 620px;
}

/* ======= SEARCH ======= */
.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--b-border);
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 600px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.blog-search:focus-within {
  border-color: var(--b-primary);
  box-shadow: 0 0 0 4px rgba(21,95,112,0.10);
}
.blog-search svg { color: var(--b-primary); flex-shrink: 0; }
.blog-search input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font-size: 16px;
  font-family: inherit;
  color: var(--b-ink);
}
.blog-search input::placeholder { color: #aab3b9; }
.blog-search__clear {
  background: transparent;
  border: 0;
  color: var(--b-mute);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 6px;
}
.blog-search__clear:hover { background: var(--b-soft); color: var(--b-primary); }

/* ======= FILTERS ======= */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.blog-filters__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--b-mute);
  margin-right: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--b-primary);
  background: #fff;
  border: 1.5px solid var(--b-border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.chip:hover { border-color: var(--b-primary); background: var(--b-soft); }
.chip.is-active {
  background: var(--b-primary);
  color: #fff;
  border-color: var(--b-primary);
  box-shadow: 0 8px 20px -10px rgba(21,95,112,0.5);
}
.chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
.chip__count {
  font-size: 11px;
  opacity: .65;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 999px;
}
.chip.is-active .chip__count { background: rgba(255,255,255,0.18); opacity: 1; }

/* ======= LIST ======= */
.blog-list {
  padding: 70px 0 100px;
  background: #fff;
}
.blog-list__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.blog-list__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-list__count {
  font-size: 14px;
  color: var(--b-mute);
}
.blog-list__count strong { color: var(--b-primary); font-weight: 700; }
.blog-list__sort {
  background: #fff;
  border: 1.5px solid var(--b-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--b-ink);
  cursor: pointer;
}

/* ======= FEATURED ======= */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--b-cream);
  border-radius: var(--b-radius);
  padding: 36px;
  margin-bottom: 56px;
  align-items: center;
  border: 1px solid var(--b-border);
  position: relative;
  overflow: hidden;
}
.featured-post::before {
  content: 'Em destaque';
  position: absolute;
  top: 24px; right: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b-primary);
  background: #fff;
  border: 1px solid var(--b-border);
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}
.featured-post__media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--b-soft);
}
.featured-post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.featured-post:hover .featured-post__media img { transform: scale(1.04); }
.featured-post__cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b-primary);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.featured-post__cat::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.featured-post__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  color: var(--b-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.featured-post__title a { color: inherit; text-decoration: none; }
.featured-post__excerpt {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--b-mute);
  margin-bottom: 22px;
}
.featured-post__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.featured-post__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--b-primary);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 2px solid var(--b-primary);
  padding-bottom: 2px;
}

/* ======= GRID ======= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow);
  border-color: var(--b-accent);
}
.post-card__media {
  aspect-ratio: 16/10;
  background: var(--b-soft);
  overflow: hidden;
  position: relative;
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__cat-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: #fff;
  color: var(--b-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--b-border);
}
.post-card__body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.18;
  color: var(--b-ink);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.post-card__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--b-mute);
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--b-border);
  font-size: 12.5px;
  color: var(--b-mute);
}
.post-card__author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--b-ink);
}
.post-card__author-mini img {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.post-card__sep { color: var(--b-border); }

/* ======= EMPTY STATE ======= */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--b-cream);
  border-radius: var(--b-radius);
  border: 1px dashed var(--b-border);
}
.blog-empty svg { color: var(--b-primary); opacity: .35; margin-bottom: 16px; }
.blog-empty h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--b-ink);
  margin: 0 0 8px;
}
.blog-empty p { color: var(--b-mute); margin: 0 0 20px; }
.blog-empty button {
  background: var(--b-primary);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

/* ======= POST PAGE ======= */
.post-hero {
  position: relative;
  padding: 110px 0 48px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(58,167,184,0.10), transparent 60%),
    linear-gradient(180deg, var(--b-cream) 0%, #fff 100%);
  border-bottom: 1px solid var(--b-border);
}
.post-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--b-mute);
  margin-bottom: 22px;
}
.post-breadcrumb a {
  color: var(--b-primary);
  text-decoration: none;
}
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb svg { color: var(--b-border); }

.post-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--b-primary);
  background: var(--b-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.post-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  color: var(--b-ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.post-hero__subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--b-mute);
  margin: 0 0 32px;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--b-border);
  border-bottom: 1px solid var(--b-border);
  font-size: 14px;
  color: var(--b-mute);
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-hero__author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.post-hero__author-name {
  font-weight: 600;
  color: var(--b-ink);
  font-size: 14.5px;
  line-height: 1.3;
}
.post-hero__author-role {
  font-size: 12px;
  color: var(--b-mute);
}
.post-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-hero__meta-item svg { color: var(--b-primary); opacity: .7; }

.post-cover {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 0;
}
.post-cover__img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow);
}

.post-body {
  padding: 64px 0;
  background: #fff;
}
.post-body__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--b-ink);
}
.post-body__inner .lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--b-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 36px;
  padding-left: 22px;
  border-left: 3px solid var(--b-primary);
}
.post-body__inner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--b-ink);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.post-body__inner h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--b-ink);
  margin: 36px 0 12px;
}
.post-body__inner p { margin: 0 0 22px; }
.post-body__inner ul, .post-body__inner ol { margin: 0 0 28px; padding-left: 24px; }
.post-body__inner li { margin: 0 0 10px; }
.post-body__inner strong { color: var(--b-primary-d); font-weight: 600; }
.post-body__inner em { font-style: italic; color: var(--b-ink); }
.post-body__inner a { color: var(--b-primary); border-bottom: 1px solid currentColor; text-decoration: none; }
.post-body__inner blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--b-cream);
  border-radius: 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--b-primary-d);
  border-left: 4px solid var(--b-primary);
  position: relative;
}
.post-body__inner blockquote em { font-style: normal; color: var(--b-primary); }

/* ======= POST TAGS ======= */
.post-tags {
  padding: 36px 0;
  background: #fff;
  border-top: 1px solid var(--b-border);
}
.post-tags__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.post-tags__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--b-mute);
  margin-right: 6px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--b-primary);
  background: var(--b-soft);
  border: 1px solid var(--b-border);
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .18s ease;
}
.tag-pill::before { content: '#'; opacity: .55; }
.tag-pill:hover { background: var(--b-primary); color: #fff; border-color: var(--b-primary); }

/* ======= POST AUTHOR CARD ======= */
.post-author-card {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 28px;
  background: var(--b-cream);
  border-radius: var(--b-radius);
  border: 1px solid var(--b-border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
}
.post-author-card__img {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.post-author-card__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--b-ink);
  margin: 0 0 4px;
}
.post-author-card__role {
  font-size: 12.5px;
  color: var(--b-primary);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.post-author-card__bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--b-mute);
  margin: 0 0 14px;
}
.post-author-card__social {
  display: flex;
  gap: 10px;
}
.post-author-card__social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--b-primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--b-border);
  transition: all .18s ease;
}
.post-author-card__social a:hover { background: var(--b-primary); color: #fff; border-color: var(--b-primary); }

/* ======= POST NAVIGATION (PREV/NEXT) ======= */
.post-nav {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.post-nav__item {
  padding: 22px 24px;
  border: 1px solid var(--b-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-nav__item:hover { border-color: var(--b-primary); transform: translateY(-2px); box-shadow: var(--b-shadow); }
.post-nav__direction {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--b-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-nav__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--b-ink);
  line-height: 1.25;
}
.post-nav__item--next { text-align: right; }
.post-nav__item--next .post-nav__direction { justify-content: flex-end; }

/* ======= POST CTA ======= */
.post-cta {
  margin-top: 60px;
  padding: 60px 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(58,167,184,0.12), transparent 60%),
    linear-gradient(180deg, #0e424f 0%, #0a3340 100%);
  color: #fff;
  text-align: center;
}
.post-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.post-cta__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--b-accent);
  margin-bottom: 14px;
}
.post-cta__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
}
.post-cta__title em { color: var(--b-accent); font-style: italic; }
.post-cta__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 26px;
  line-height: 1.55;
}
.post-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--b-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
  transition: transform .2s ease;
}
.post-cta__btn:hover { transform: translateY(-2px); }

/* ======= RELATED POSTS ======= */
.post-related {
  padding: 64px 0;
  background: var(--b-cream);
  border-top: 1px solid var(--b-border);
}
.post-related__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.post-related__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--b-ink);
  margin: 0 0 28px;
}
.post-related__title em { color: var(--b-primary); font-style: italic; }

/* ======= LOADING STATE ======= */
.blog-loading {
  padding: 80px 32px;
  text-align: center;
  color: var(--b-mute);
  font-size: 14px;
}
.blog-loading::after {
  content: '';
  display: inline-block;
  width: 32px; height: 32px;
  margin-left: 16px;
  vertical-align: middle;
  border: 3px solid var(--b-border);
  border-top-color: var(--b-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======= RESPONSIVE ======= */
@media (max-width: 820px) {
  .blog-hero { padding: 96px 0 50px; }
  .featured-post {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .featured-post::before {
    top: 16px; right: 16px;
    font-size: 10px;
    padding: 5px 10px;
  }
  .post-author-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .post-author-card__img { margin: 0 auto; }
  .post-author-card__social { justify-content: center; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
  .post-nav__item--next .post-nav__direction { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .blog-hero__inner { padding: 0 20px; }
  .blog-list__inner, .post-hero__inner, .post-body__inner, .post-tags__inner { padding: 0 20px; }
  .post-cover { padding: 28px 20px 0; }
  .blog-grid { gap: 24px; }
  .post-body__inner { font-size: 16.5px; }
  .post-body__inner blockquote { padding: 22px 24px; font-size: 1.2rem; }
}
