/* ============================================================
   BLOG — estilos exclusivos de blog.html
   ============================================================ */

/* ── BODY OVERRIDE — tema escuro ── */
body.blog-page {
  background: var(--navy-deep);
  color: var(--gray-100);
}

/* ── BG ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(19, 168, 158, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 168, 158, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%)
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(19, 168, 158, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0
}

/* ── LAYOUT ── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px
}

/* ── NAVBAR override ── */
.navbar {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: rgba(7, 26, 51, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100
}

/* ── VIEWS ── */
.view {
  display: none;
  animation: fadeUp .45s var(--ease-out-expo) both
}

.view.active {
  display: block
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ══════════════════════════════════════
   LISTING PAGE
══════════════════════════════════════ */
.listing-hero {
  padding: 72px 0 56px;
  text-align: center
}

.listing-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px
}

.listing-label::before,
.listing-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--teal);
  opacity: .4
}

.listing-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 18px
}

.listing-hero h1 em {
  font-style: italic;
  color: var(--teal-light)
}

.listing-hero p {
  font-size: 17px;
  color: var(--gray-200);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 36px
}

/* SEARCH BAR */
.search-bar {
  max-width: 520px;
  margin: 0 auto;
  position: relative
}

.search-bar input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all .25s var(--ease-out-expo);
  backdrop-filter: blur(8px)
}

.search-bar input::placeholder {
  color: var(--gray-400)
}

.search-bar input:focus {
  border-color: var(--teal);
  background: rgba(19, 168, 158, .06);
  box-shadow: 0 0 0 3px var(--teal-glow)
}

.search-bar svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none
}

/* FILTERS */
.filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 48px
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: var(--gray-200);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s var(--ease-out-expo);
  user-select: none
}

.filter-btn:hover {
  border-color: rgba(19, 168, 158, .3);
  color: var(--white)
}

.filter-btn.active {
  background: rgba(19, 168, 158, 0.22);
  border-color: var(--teal);
  color: var(--teal-light);
  font-weight: 600
}

/* FEATURED POST */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  transition: border-color .3s;
  cursor: pointer
}

.featured:hover {
  border-color: rgba(19, 168, 158, .25)
}

.featured:hover .feat-img-overlay {
  opacity: 1
}

.feat-img {
  position: relative;
  min-height: 300px;
  overflow: hidden
}

.feat-img-bg {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.feat-img-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out-expo)
}

.featured:hover .feat-img-bg img {
  transform: scale(1.06)
}

.feat-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 168, 158, .2), rgba(7, 26, 51, .5));
  opacity: .7;
  transition: opacity .3s
}

.featured:hover .feat-img-overlay {
  opacity: .85
}

.feat-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.feat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px
}

.feat-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .05em
}

.feat-reading {
  font-size: 12px;
  color: var(--gray-400)
}

.feat-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  color: var(--white)
}

.feat-content p {
  font-size: 15px;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 24px
}

.feat-author {
  display: flex;
  align-items: center;
  gap: 10px
}

.feat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 2px solid rgba(19, 168, 158, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0
}

.feat-author-info {
  font-size: 12px
}

.feat-author-name {
  font-weight: 600;
  color: var(--white)
}

.feat-author-date {
  color: var(--gray-400);
  margin-top: 1px
}

/* POST GRID */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px
}

.post-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s var(--ease-out-expo);
  cursor: pointer;
  display: flex;
  flex-direction: column
}

.post-card:hover {
  border-color: rgba(19, 168, 158, .2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2)
}

.post-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  transition: all .3s
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out-expo)
}

.post-card:hover .post-card-img img {
  transform: scale(1.06)
}

.post-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 26, 51, .55));
  pointer-events: none
}

.post-card-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px
}

.post-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .04em
}

.post-read {
  font-size: 11px;
  color: var(--gray-400)
}

.post-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1
}

.post-card p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .05)
}

.pc-date {
  font-size: 12px;
  color: var(--gray-400)
}

.pc-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(19, 168, 158, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  transition: all .2s
}

.post-card:hover .pc-arrow {
  background: var(--teal);
  color: var(--white);
  transform: translateX(2px)
}

/* NEWSLETTER */
.newsletter {
  background: linear-gradient(135deg, #0D2D55, rgba(19, 168, 158, .1));
  border: 1px solid rgba(19, 168, 158, .2);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(19, 168, 158, .08), transparent);
  pointer-events: none
}

.newsletter h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px
}

.newsletter p {
  font-size: 16px;
  color: var(--gray-200);
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6
}

.nl-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.nl-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all .25s
}

.nl-form input::placeholder {
  color: var(--gray-400)
}

.nl-form input:focus {
  border-color: var(--teal);
  background: rgba(19, 168, 158, .08)
}

.nl-form button {
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease-out-expo);
  white-space: nowrap
}

.nl-form button:hover {
  background: var(--teal-light);
  transform: translateY(-1px)
}

/* ══════════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start
}

/* Article header */
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-light);
  cursor: pointer;
  margin-bottom: 32px;
  transition: gap .2s
}

.art-back:hover {
  gap: 10px
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.art-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .05em
}

.art-reading {
  font-size: 13px;
  color: var(--gray-400)
}

.art-date {
  font-size: 13px;
  color: var(--gray-400)
}

.art-h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  color: var(--white)
}

.art-intro {
  font-size: 18px;
  color: var(--gray-200);
  line-height: 1.75;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.art-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px
}

.art-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 2px solid rgba(19, 168, 158, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0
}

.art-author-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white)
}

.art-author-info p {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px
}

/* Article body */
.art-body {
  font-size: 16px;
  color: var(--gray-100);
  line-height: 1.8
}

.art-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--white);
  margin: 48px 0 16px;
  line-height: 1.2;
  letter-spacing: -.01em
}

.art-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px
}

.art-body p {
  margin-bottom: 20px
}

.art-body strong {
  color: var(--white);
  font-weight: 700
}

.art-body a {
  color: var(--teal-light);
  text-decoration: underline;
  text-decoration-color: rgba(23, 197, 185, .3);
  transition: text-decoration-color .2s
}

.art-body a:hover {
  text-decoration-color: var(--teal-light)
}

.art-body ul,
.art-body ol {
  margin: 0 0 20px 20px
}

.art-body li {
  margin-bottom: 8px;
  line-height: 1.7
}

.art-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(19, 168, 158, .06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--gray-100)
}

.art-body blockquote strong {
  font-style: normal
}

/* Callout boxes */
.callout {
  border-radius: 14px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start
}

.callout.tip {
  background: rgba(19, 168, 158, .08);
  border: 1px solid rgba(19, 168, 158, .2)
}

.callout.warn {
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .2)
}

.callout.info {
  background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .2)
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px
}

.callout-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-100)
}

.callout-text strong {
  color: var(--white)
}

/* Step boxes */
.step-box {
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  transition: border-color .2s
}

.step-item:hover {
  border-color: rgba(19, 168, 158, .2)
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--teal-glow);
  border: 1px solid rgba(19, 168, 158, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal-light);
  flex-shrink: 0;
  font-family: var(--font-body)
}

.step-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px
}

.step-content p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
  margin: 0
}

/* CTA box */
.art-cta {
  background: linear-gradient(135deg, #0D2D55, rgba(19, 168, 158, .1));
  border: 1px solid rgba(19, 168, 158, .2);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  text-align: center
}

.art-cta h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px
}

.art-cta p {
  font-size: 14px;
  color: var(--gray-200);
  margin-bottom: 20px;
  line-height: 1.6
}

.art-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all .25s var(--ease-out-expo);
  box-shadow: 0 4px 16px rgba(19, 168, 158, .3)
}

.art-cta a:hover {
  background: var(--teal-light);
  transform: translateY(-1px)
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.sidebar-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  padding: 22px
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px
}

/* TOC */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.toc-item {
  font-size: 13px;
  color: var(--gray-400);
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
  border-left: 2px solid transparent;
  line-height: 1.4
}

.toc-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  border-color: var(--gray-400)
}

.toc-item.active {
  color: var(--teal-light);
  border-color: var(--teal);
  background: var(--teal-glow)
}

/* Related */
.related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  cursor: pointer;
  transition: all .2s
}

.related-item:last-child {
  border-bottom: none;
  padding-bottom: 0
}

.related-item:hover .related-title {
  color: var(--teal-light)
}

.related-emoji {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .04);
  border-radius: 8px
}

.related-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color .2s
}

.related-read {
  font-size: 11px;
  color: var(--gray-400)
}

/* Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px
}

.tag-pill {
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-200);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: all .2s
}

.tag-pill:hover {
  border-color: rgba(19, 168, 158, .3);
  color: var(--teal-light)
}

/* ── TAGS ── */
.tag-inicio {
  background: rgba(16, 185, 129, .12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, .2)
}

.tag-pregao {
  background: rgba(59, 130, 246, .12);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, .2)
}

.tag-docs {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .2)
}

.tag-seg {
  background: var(--teal-glow);
  color: var(--teal-light);
  border: 1px solid rgba(19, 168, 158, .2)
}

/* BG colors for images */
.bg-inicio {
  background: linear-gradient(135deg, rgba(16, 185, 129, .15), rgba(7, 26, 51, .8))
}

.bg-pregao {
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(7, 26, 51, .8))
}

.bg-docs {
  background: linear-gradient(135deg, rgba(245, 158, 11, .15), rgba(7, 26, 51, .8))
}

/* SHARE */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 48px
}

.share-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-right: 4px
}

.share-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--gray-200);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px
}

.share-btn:hover {
  border-color: rgba(255, 255, 255, .25);
  color: var(--white)
}

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray-400)
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .5
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 40px 0 32px;
  margin-top: 0
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-400);
  letter-spacing: -.02em
}

.footer-logo span {
  color: var(--teal)
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-400)
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .featured {
    grid-template-columns: 1fr
  }

  .feat-img {
    min-height: 200px
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .sidebar {
    position: static
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr
  }

  .feat-content {
    padding: 28px 24px
  }

  .nl-form {
    flex-direction: column
  }
}
