/* ================================================================
   blog-post.css — artigo editorial (alinhado ao magazine /blog/)
================================================================ */

.bp-post {
  --bp-ink: #0b2a3c;
  --bp-muted: #64748b;
  --bp-line: rgba(11, 60, 93, 0.08);
  --bp-glass: rgba(255, 255, 255, 0.78);
  --bp-shadow: 0 10px 40px rgba(11, 60, 93, 0.08), 0 2px 8px rgba(11, 60, 93, 0.04);
  position: relative;
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(11, 60, 93, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 8%, rgba(242, 169, 0, 0.07), transparent 50%),
    linear-gradient(180deg, #f5f8fb 0%, #eef3f7 45%, #e8eef4 100%);
  min-height: 50vh;
  padding-bottom: var(--space-20);
}

/* ----- Cover hero (full-bleed visual) ----- */
.bp-cover-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(24rem, 62vh, 36rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  margin: 0 0 var(--space-8);
}

.bp-cover-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bp-cover-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.bp-cover-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 42, 60, 0.45) 0%, rgba(11, 42, 60, 0.2) 32%, rgba(11, 42, 60, 0.9) 100%),
    linear-gradient(90deg, rgba(11, 42, 60, 0.62) 0%, transparent 58%);
}

.bp-cover-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  width: 100%;
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  padding-top: calc(var(--navbar-height) + clamp(1.25rem, 3vw, 2rem));
}

/* Breadcrumb inside hero */
.bp-cover-hero .bp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.bp-cover-hero .bp-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bp-cover-hero .bp-breadcrumb li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.bp-cover-hero .bp-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.bp-cover-hero .bp-breadcrumb a:hover {
  color: var(--color-accent);
}

.bp-cover-hero .bp-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-cover-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  margin: 0 0 0.85rem;
}

.bp-cover-hero__cat::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

.bp-cover-hero__cat:hover {
  color: #fff;
}

.bp-cover-hero__title {
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 1.15rem;
  max-width: 18ch;
  text-wrap: balance;
}

.bp-cover-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.35rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.bp-cover-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bp-cover-hero__meta-item .ph {
  font-size: 1.05rem;
  color: var(--color-accent);
}

.bp-cover-hero__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ----- Layout ----- */
.bp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 0 var(--space-4);
}

@media (min-width: 1024px) {
  .bp-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-10);
    align-items: start;
  }
}

/* ----- Article body ----- */
.bp-article {
  min-width: 0;
  background: var(--bp-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bp-line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--bp-shadow);
}

.bp-article__lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--bp-ink);
  font-weight: 650;
  margin: 0 0 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--bp-line);
  max-width: 42rem;
}

.bp-article__content {
  max-width: 42rem;
}

.bp-article__content h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
  font-weight: 800;
  color: var(--bp-ink);
  margin: 2.5rem 0 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.bp-article__content h2:first-child {
  margin-top: 0;
}

.bp-article__content h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 750;
  color: var(--color-primary);
  margin: 2rem 0 0.65rem;
  line-height: 1.3;
}

.bp-article__content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 1.15rem;
}

.bp-article__content ul,
.bp-article__content ol {
  padding-left: 0;
  margin: 0 0 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bp-article__content ul li,
.bp-article__content ol li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #374151;
  padding-left: 1.4rem;
  position: relative;
}

.bp-article__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.bp-article__content ol {
  counter-reset: bp-ol;
}

.bp-article__content ol li {
  counter-increment: bp-ol;
}

.bp-article__content ol li::before {
  content: counter(bp-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.bp-article__content strong {
  font-weight: 750;
  color: var(--bp-ink);
}

.bp-article__content a {
  color: var(--color-primary);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(11, 60, 93, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.bp-article__content a:hover {
  color: var(--color-accent-dark);
  text-decoration-color: rgba(242, 169, 0, 0.55);
}

.bp-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.5rem 0;
}

.bp-article__content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: rgba(11, 60, 93, 0.04);
  border-radius: 0 12px 12px 0;
  color: var(--bp-ink);
  font-weight: 600;
  line-height: 1.55;
}

/* Callout / table (legado HTML) */
.bp-callout {
  background: rgba(242, 169, 0, 0.1);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  padding: 1.15rem 1.35rem;
  margin: 2rem 0;
}

.bp-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--bp-ink);
  font-weight: 600;
  line-height: 1.65;
}

.bp-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 14px;
  border: 1px solid var(--bp-line);
}

.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bp-table thead {
  background: var(--color-primary);
  color: #fff;
}

.bp-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.bp-table tbody tr {
  border-bottom: 1px solid var(--bp-line);
}

.bp-table tbody tr:last-child {
  border-bottom: none;
}

.bp-table tbody tr:hover {
  background: rgba(11, 60, 93, 0.03);
}

.bp-table td {
  padding: 0.75rem 1rem;
  color: #374151;
  vertical-align: middle;
}

.bp-table td:first-child {
  font-weight: 700;
  color: var(--bp-ink);
}

.bp-table .bp-table__price {
  font-weight: 800;
  color: var(--color-primary);
}

.bp-section-divider {
  border: none;
  height: 1px;
  background: var(--bp-line);
  margin: 2.5rem 0;
}

/* ----- Sidebar ----- */
.bp-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .bp-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 1rem);
  }
}

.bp-widget {
  position: relative;
  background: var(--bp-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bp-line);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: var(--bp-shadow);
  overflow: hidden;
}

.bp-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0.85;
}

.bp-widget__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0.35rem 0 1rem;
}

.bp-widget__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: inherit;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.bp-widget__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}

.bp-widget--cta {
  background: linear-gradient(155deg, #0b3c5d 0%, #164d72 48%, #1e5f8a 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 40px rgba(11, 60, 93, 0.28);
}

.bp-widget--cta::before {
  background: linear-gradient(90deg, var(--color-accent), rgba(242, 169, 0, 0.35));
}

.bp-widget--cta .bp-widget__label {
  color: var(--color-accent);
  margin-top: 0.2rem;
}

.bp-widget--cta .bp-widget__title {
  color: #fff;
}

.bp-widget__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bp-widget__btn:hover {
  background: var(--color-whatsapp-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.bp-widget__btn .ph {
  font-size: 1.25rem;
}

.bp-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-related-item a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bp-related-item a:hover {
  background: rgba(11, 60, 93, 0.06);
}

.bp-related-item__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bp-ink);
  line-height: 1.35;
}

.bp-related-item a:hover .bp-related-item__title {
  color: var(--color-primary);
}

.bp-related-item__meta {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--bp-muted);
}

.bp-widget__share {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.bp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.bp-share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.bp-share-btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.bp-share-btn--copy {
  background: rgba(11, 60, 93, 0.06);
  color: var(--bp-ink);
  border: 1px solid var(--bp-line);
}

.bp-share-btn .ph {
  font-size: 1.05rem;
}

/* ----- Inline CTA (legado) ----- */
.bp-cta-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  background: linear-gradient(155deg, #0b3c5d 0%, #1e5f8a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  margin: 2.5rem 0;
}

@media (min-width: 640px) {
  .bp-cta-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.bp-cta-inline__text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  max-width: 28rem;
}

.bp-cta-inline__text span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.bp-cta-inline__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-whatsapp);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bp-cta-inline__btn:hover {
  background: var(--color-whatsapp-dark);
  transform: translateY(-1px);
}

/* ----- Footer artigo ----- */
.bp-article__footer {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bp-line);
}

.bp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bp-tag {
  display: inline-block;
  background: rgba(11, 60, 93, 0.05);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--bp-line);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bp-tag:hover {
  background: rgba(242, 169, 0, 0.12);
  border-color: rgba(242, 169, 0, 0.35);
  color: var(--color-accent-dark);
}

.bp-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.bp-author__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bp-author__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bp-author__name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bp-ink);
}

.bp-author__role {
  font-size: 0.85rem;
  color: var(--bp-muted);
  line-height: 1.4;
}

.bp-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bp-line);
}

@media (min-width: 640px) {
  .bp-post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.bp-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--bp-line);
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-width: 0;
}

.bp-post-nav__link:hover {
  border-color: rgba(11, 60, 93, 0.22);
  background: #fff;
  transform: translateY(-1px);
}

.bp-post-nav__link--next {
  text-align: right;
}

.bp-post-nav__link--empty {
  display: none;
}

@media (min-width: 640px) {
  .bp-post-nav__link--empty {
    display: block;
    visibility: hidden;
    pointer-events: none;
    border: none;
    background: transparent;
  }
}

.bp-post-nav__dir {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.bp-post-nav__title {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--bp-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Responsive ----- */
@media (max-width: 767px) {
  .bp-cover-hero {
    min-height: 22rem;
    margin-bottom: var(--space-6);
  }

  .bp-cover-hero__inner {
    padding-top: calc(var(--navbar-height) + 1rem);
  }

  .bp-cover-hero .bp-breadcrumb [aria-current="page"] {
    max-width: 12ch;
  }

  .bp-cover-hero__title {
    font-size: 1.65rem;
    max-width: none;
  }

  .bp-article {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .bp-callout {
    padding: 1rem 1.1rem;
  }

  .bp-cta-inline {
    padding: 1.25rem 1.15rem;
  }
}
