/* =========================================================
  BLOG — OUÇA MAIS • VIVA MELHOR
  =========================================================
  Arquivo: public/assets/css/blog.css
  Escopo: página /blog.html (classes .blog-page, .blog-*)
  ========================================================= */

.blog-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(139, 92, 246, 0.14), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(255, 217, 102, 0.18), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(167, 139, 250, 0.10), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #faf8ff 48%, #ffffff 100%);
}

.blog-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 42%);
}

.blog-hero {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8.5vw, 112px) 0 clamp(28px, 4.5vw, 56px);
  text-align: center;
}

.blog-hero__content {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-primary, #6f3cc3);
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.14);
  font-weight: 850;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.blog-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 5vw, 4.6rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--color-heading, #242333);
}

.blog-hero p {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.75;
  color: var(--color-text-muted, #5f6472);
}

.blog-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
  color: var(--color-heading, #242333);
  font-weight: 750;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.blog-chip:hover,
.blog-chip:focus-visible,
.blog-chip.is-active {
  color: var(--color-primary, #6f3cc3);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.12);
}

.blog-chip:hover,
.blog-chip:focus-visible {
  transform: translateY(-2px);
}

.blog-chip:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.45);
  outline-offset: 3px;
}

.blog-featured {
  position: relative;
  z-index: 1;
  padding: 0 0 clamp(42px, 6vw, 72px);
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at top right, rgba(255, 217, 102, 0.22), transparent 40%);
  border: 1px solid rgba(139, 92, 246, 0.16);
  box-shadow: 0 30px 90px rgba(76, 29, 149, 0.12);
}

.blog-featured-card__content {
  padding: clamp(30px, 5vw, 56px);
}

.blog-featured-card__label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 217, 102, 0.24);
  color: #775400;
  font-weight: 850;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.blog-featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 18px;
}

.blog-featured-card__reading-time {
  color: var(--color-text-muted, #5f6472);
  font-size: 0.92rem;
  font-weight: 750;
}

.blog-featured-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--color-heading, #242333);
}

.blog-featured-card p {
  margin: 0 0 24px;
  color: var(--color-text-muted, #5f6472);
  line-height: 1.75;
  font-size: 1.05rem;
}

.blog-featured-card__visual {
  position: relative;
  min-height: 320px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 217, 102, 0.62), transparent 18%),
    radial-gradient(circle at 72% 35%, rgba(167, 139, 250, 0.58), transparent 22%),
    linear-gradient(135deg, #6f3cc3, #8b5cf6 54%, #f5c451);
  isolation: isolate;
}

.blog-featured-card__visual picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.blog-featured-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.95;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

.blog-featured-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 217, 102, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(111, 60, 195, 0.78), rgba(91, 33, 182, 0.35) 52%, rgba(20, 184, 166, 0.18));
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
}

.blog-featured-card__visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.blog-featured-card__visual::after {
  width: 260px;
  height: 260px;
  right: 12%;
  top: 16%;
}

.blog-featured-card__ring {
  position: absolute;
  z-index: 2;
  width: 420px;
  height: 420px;
  right: -20%;
  bottom: -30%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.blog-featured-card__icon {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 36px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  font-size: 4rem;
}

.blog-grid-section {
  position: relative;
  z-index: 1;
  padding: clamp(44px, 7vw, 88px) 0 clamp(72px, 10vw, 120px);
}

.blog-grid-section.is-filtered {
  padding-top: clamp(28px, 4vw, 48px);
}

.blog-section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.blog-section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--color-heading, #242333);
}

.blog-section-heading p {
  margin: 0;
  color: var(--color-text-muted, #5f6472);
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 22px 58px rgba(17, 24, 39, 0.075);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.30);
  box-shadow: 0 34px 84px rgba(76, 29, 149, 0.14);
}

.blog-card__visual {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.54), transparent 20%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(111, 60, 195, 0.86));
}

.blog-card:nth-child(2n) .blog-card__visual {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.52), transparent 20%),
    linear-gradient(135deg, #7c3aed, #f5c451);
}

.blog-card:nth-child(3n) .blog-card__visual {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.52), transparent 20%),
    linear-gradient(135deg, #5b21b6, #14b8a6);
}

.blog-card__visual::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.blog-card__icon {
  position: absolute;
  left: 24px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  font-size: 1.65rem;
}

.blog-card__body {
  flex: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.blog-card__category {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--color-primary, #6f3cc3);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-card__date,
.blog-card__reading-time {
  color: var(--color-text-muted, #5f6472);
  font-size: 0.86rem;
  font-weight: 650;
}

.blog-card h2,
.blog-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--color-heading, #242333);
}

.blog-card__title-link {
  color: inherit;
  text-decoration: none;
}

.blog-card__title-link:hover {
  color: var(--color-primary, #6f3cc3);
}

.blog-card p {
  margin: 0 0 22px;
  color: var(--color-text-muted, #5f6472);
  line-height: 1.7;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 20px;
}

.blog-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.07);
  color: var(--color-primary, #6f3cc3);
  font-size: 0.78rem;
  font-weight: 750;
}

.blog-card.is-hidden-by-filter {
  display: none;
}

.blog-filter-empty {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border-radius: 22px;
  text-align: center;
  color: var(--color-text-muted, #5f6472);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.05);
}

.blog-card__link {
  width: fit-content;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary, #6f3cc3), var(--color-cta-hover, #5b21b6));
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(76, 29, 149, 0.20);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.blog-card__link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 36px rgba(76, 29, 149, 0.28);
}

.blog-icon-shape {
  width: 1em;
  height: 1em;
  display: inline-block;
  border-radius: 45% 55% 50% 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
    linear-gradient(135deg, currentColor, rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.blog-chip .blog-icon-shape {
  color: var(--color-primary, #6f3cc3);
  font-size: 0.9rem;
}

.blog-card__icon .blog-icon-shape,
.blog-featured-card__icon .blog-icon-shape {
  color: #ffffff;
  font-size: 1em;
}


/* =========================================================
   NAVEGAÇÃO INTERNA DO BLOG
   ========================================================= */

.blog-topic-section {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 6vw, 76px) 0;
}

.blog-topic-section--compact {
  padding-top: clamp(24px, 4vw, 48px);
}

.blog-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .blog-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-topic-card {
  min-height: 100%;
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-heading, #242333);
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.065);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-topic-card:hover {
  color: var(--color-heading, #242333);
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 26px 64px rgba(76, 29, 149, 0.12);
}

.blog-topic-card:focus-visible,
.blog-link-group a:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.55);
  outline-offset: 4px;
}

.blog-topic-card__label {
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--color-primary, #6f3cc3);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-topic-card strong {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.blog-topic-card span:last-child {
  color: var(--color-text-muted, #5f6472);
  line-height: 1.65;
}

.blog-link-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .blog-link-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-link-group {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.055);
}

.blog-link-group h3 {
  margin: 0 0 16px;
  color: var(--color-heading, #242333);
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 900;
}

.blog-link-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-link-group a {
  color: var(--color-primary, #6f3cc3);
  font-weight: 780;
  text-decoration: none;
}

.blog-link-group a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   ARTIGO
   ========================================================= */

.blog-article {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0;
}

.blog-article__header {
  margin-bottom: clamp(32px, 6vw, 56px);
}

.blog-article__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted, #5f6472);
  font-weight: 750;
  font-size: 0.95rem;
}

.blog-article__breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.blog-article__breadcrumb a:hover {
  color: var(--color-primary, #6f3cc3);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-article__breadcrumb-sep {
  opacity: 0.7;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 18px;
}

.blog-article__reading-time {
  color: var(--color-text-muted, #5f6472);
  font-size: 0.95rem;
  font-weight: 750;
}

.blog-article__back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--color-primary, #6f3cc3);
  font-weight: 800;
  text-decoration: none;
}

.blog-article__back:hover {
  text-decoration: underline;
}

.blog-article__category {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  color: var(--color-primary, #6f3cc3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-article__header h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 850;
  color: var(--color-heading, #242333);
}

.blog-article__lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: var(--color-text-muted, #5f6472);
}

.blog-article__content {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.07);
}

.blog-article__content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.22;
  color: var(--color-heading, #242333);
}

.blog-article__content h2:not(:first-child) {
  margin-top: 40px;
}

.blog-article__content h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  color: var(--color-heading, #242333);
}

.blog-article__content p {
  margin: 0 0 18px;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--color-text, #343443);
}

.blog-article__content ul,
.blog-article__content ol {
  margin: 0 0 22px 1.25rem;
  color: var(--color-text, #343443);
  line-height: 1.8;
}

.blog-article__note {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 217, 102, 0.16);
  border: 1px solid rgba(255, 217, 102, 0.32);
  color: var(--color-heading, #242333);
  line-height: 1.7;
}

.blog-article__footer {
  margin-top: 36px;
}

.blog-article__cta-box {
  padding: clamp(28px, 5vw, 44px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 217, 102, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(91, 33, 182, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.16);
  text-align: center;
}

.blog-article__cta-box h2 {
  margin: 0 0 12px;
  color: var(--color-heading, #242333);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.blog-article__cta-box p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--color-text-muted, #5f6472);
  line-height: 1.7;
}

.blog-article__cta {
  min-height: 54px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(135deg, var(--color-primary, #6f3cc3), var(--color-cta-hover, #5b21b6));
  box-shadow: 0 18px 38px rgba(76, 29, 149, 0.28), 0 0 0 8px rgba(167, 139, 250, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.blog-article__cta:hover {
  color: #ffffff;
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 22px 46px rgba(76, 29, 149, 0.36), 0 0 0 10px rgba(167, 139, 250, 0.16);
}

.blog-article__cta:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.55);
  outline-offset: 4px;
}

@media (max-width: 575.98px) {
  .blog-card__body {
    padding: 22px;
  }

  .blog-article__content,
  .blog-article__cta-box {
    padding: 22px;
  }

  .blog-hero {
    padding-top: 72px;
  }

  .blog-featured-card,
  .blog-card {
    border-radius: 24px;
  }

  .blog-featured-card__content {
    padding: 22px;
  }

  .blog-card__visual {
    min-height: 128px;
  }
}

@media (max-width: 991.98px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-featured-card__visual {
    min-height: 260px;
    order: -1;
  }
}
