/* =============================================================
   Blog Facilita.vc — Componentes compartilhados
   announce strip, navbar, category pills, placeholder, cards,
   list-post, ranked, region, simulador, paginação e
   footer.
   ============================================================= */

/* ---- Announcement strip ---- */
.announce {
  background: var(--facilita-dark);
  color: #DCE3F7;
  font-size: 13px;
  padding: 8px 0;
}
.announce a {
  color: #fff;
  font-weight: 600;
}
.announce .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--facilita-green);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- Top nav ---- */
.top-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-nav .brand img { height: 34px; }
.top-nav .brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.top-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  padding: .5rem .9rem;
}
.top-nav .nav-link:hover       { color: var(--facilita-blue); }
.top-nav .nav-link.active      { color: var(--facilita-blue); font-weight: 600; }
.top-nav .search-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 240px;
}
.top-nav .search-box input {
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 13.5px;
  width: 100%;
}
.top-nav .btn-cta {
  background: var(--facilita-blue);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-weight: 600;
  font-size: 14px;
}
.top-nav .btn-cta:hover {
  background: var(--facilita-blue-600);
  color: #fff;
}

/* Hamburger para mobile */
.top-nav .navbar-toggler {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  outline: none;
  transition: background .2s, border-color .2s;
}
@media (min-width: 992px) {
  .top-nav .navbar-toggler { display: none; }
}
.top-nav .navbar-toggler:focus {
  outline: 2px solid var(--facilita-blue);
  outline-offset: 2px;
  box-shadow: none;
}
.top-nav .navbar-toggler[aria-expanded="true"] {
  background: var(--facilita-dark);
  border-color: var(--facilita-dark);
  color: #fff;
}

/* Troca de ícone hambúrguer ↔ X */
.ham-icon { display: block; }
.ham-close { display: none; }
.navbar-toggler[aria-expanded="true"] .ham-open  { display: none; }
.navbar-toggler[aria-expanded="true"] .ham-close { display: block; }

/* ---- Category pills row ---- */
.cats {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.cats-scroller {
  position: relative;
  display: flex;
  align-items: center;
}
.cats-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 14px 0;
  flex: 1;
  min-width: 0;
}
.cats-row::-webkit-scrollbar { display: none; }

.cats-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
  z-index: 2;
}
.cats-arrow:hover {
  border-color: var(--facilita-blue);
  color: var(--facilita-blue);
  box-shadow: 0 2px 8px rgba(0,123,255,.12);
}
.cats-arrow--prev { margin-right: 8px; }
.cats-arrow--next { margin-left: 8px; }
.cat-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: #fff;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.cat-pill:hover {
  border-color: var(--facilita-blue);
  color: var(--facilita-blue);
}
.cat-pill.active {
  background: var(--facilita-dark);
  border-color: var(--facilita-dark);
  color: #fff;
}

/* ---- Placeholder image (striped) ---- */
.ph {
  background:
    repeating-linear-gradient(135deg,
      rgba(0, 123, 255, 0.08) 0 12px,
      rgba(0, 123, 255, 0.14) 12px 24px);
  color: var(--facilita-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(0, 123, 255, .22);
  border-radius: var(--radius);
  pointer-events: none;
}
.ph.green {
  background:
    repeating-linear-gradient(135deg,
      rgba(63, 165, 53, 0.08) 0 12px,
      rgba(63, 165, 53, 0.16) 12px 24px);
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(0, 123, 255, 0.85) 0 12px,
      rgba(0, 123, 255, 0.70) 12px 24px);
  color: #fff;
}
.ph span {
  background: rgba(255, 255, 255, .85);
  padding: 3px 8px;
  border-radius: 4px;
}
.ph.dark span {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

/* ---- Article card ---- */
.card-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.card-article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #D7DEF5;
}
.card-article .thumb {
  aspect-ratio: 16/10;
  border-radius: 0;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-article .body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-article .cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--facilita-blue);
  margin-bottom: 8px;
}
.card-article h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--facilita-dark);
  margin: 0 0 10px;
}
.card-article .excerpt {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.card-article .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

/* ---- Ranked list (Mais lidos) ---- */
.ranked {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ranked li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}
.ranked li:last-child { border-bottom: 0; }
.ranked .num {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--facilita-green);
  flex: 0 0 34px;
}
.ranked h4 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--facilita-dark);
  margin: 0 0 4px;
}
.ranked .meta {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---- Pagination ---- */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination-wrap a {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.pagination-wrap a:hover {
  border-color: var(--facilita-blue);
  color: var(--facilita-blue);
}
.pagination-wrap a.active {
  background: var(--facilita-dark);
  color: #fff;
  border-color: var(--facilita-dark);
}

/* ---- Footer ---- */
footer.site {
  background: var(--facilita-dark);
  color: #C6CEE6;
  padding: 56px 0 28px;
  margin-top: 60px;
}
footer.site h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer.site a {
  color: #C6CEE6;
  display: block;
  padding: 4px 0;
  font-size: 14px;
}
footer.site a:hover { color: #fff; }
footer.site .brand-foot img {
  height: 34px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
footer.site .copyright {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #8F9AC4;
}

/* ---- Responsive mobile ---- */
@media (max-width: 575px) {
  /* Footer colunas: 1 por linha abaixo de 400px */
}

@media (max-width: 399px) {
  footer.site .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Navbar mobile: search e CTA dentro do collapse */
@media (max-width: 991px) {
  .top-nav .search-box {
    max-width: 100%;
    margin: 8px 0 4px;
  }
  .top-nav .btn-cta {
    display: inline-block;
    margin: 4px 0 8px;
    text-align: center;
  }
  /* Garante que o collapse empilhe itens */
  .top-nav .navbar-collapse .nav-link {
    padding: .6rem 0;
    border-bottom: 1px solid var(--line-2);
  }
  .top-nav .navbar-collapse .nav-link:last-of-type {
    border-bottom: 0;
  }
}
