/* Home — shell do app (sidebar desktop / bottom nav mobile) */

.home-shell {
  display: flex;
  min-height: 100vh;
  background: var(--color-cream);
}

/* ── Sidebar (desktop) ── */
.home-sidebar {
  width: 248px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.home-navitem {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.home-navitem:hover { background: var(--color-cream); }
.home-navitem.active { background: var(--color-orange-light); }

/* Badge de não-lidas no menu (sidebar) */
.nav-badge {
  margin-left: auto;
  background: var(--color-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
/* Badge de não-lidas no ícone do bottom nav (mobile) */
.bottom-nav-badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(6px);
  background: var(--color-orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ── Main ── */
.home-main { flex: 1; min-width: 0; padding: 30px 40px 60px; }
.home-inner { max-width: 1000px; margin: 0 auto; padding: 30px 40px 60px; }

.home-topbar { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.home-search { position: relative; flex: 0 0 320px; max-width: 320px; }
.home-search input {
  width: 100%;
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 13px 16px 13px 44px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  outline: none;
}
.home-search input:focus { border-color: var(--color-orange); }

.home-mobile-header { display: none; }
.home-content { }

.chip-cat {
  flex-shrink: 0;
  border-radius: 50px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  border: 1.5px solid rgba(132, 153, 183, 0.18);
  background: #fff;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.chip-cat.active {
  background: var(--color-lavender);
  color: var(--color-text);
  font-weight: 700;
  border-color: var(--color-lavender);
}

/* Selo de "sou dona" nos cards de encontro */
.home-dono-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-lavender-light);
  color: #9b59d6;
  border-radius: 9999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
}

/* "X vagas restantes" / "Lotado" nos cards */
.home-vagas {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-olive, #5c5e00);
}
.home-vagas.lotado {
  color: var(--color-danger, #e8473f);
  font-weight: 600;
}
.home-dist {
  font-size: 12px;
  font-weight: 500;
  color: #4a5e72;
  white-space: nowrap;
}

.card-h { transition: transform .18s, box-shadow .18s; cursor: pointer; }
.card-h:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.10); }

/* Bloco de data do card "seu próximo encontro" (usa a capa: thumb ou gradiente) */
.home-proximo-cover {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}
.home-proximo-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

/* Badge de data (calendário) sobre a capa do card */
.home-card-data {
  position: absolute; left: 12px; bottom: 12px;
  background: #fff; border-radius: 10px; padding: 5px 10px;
  text-align: center; line-height: 1;
}
.home-card-data .d { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-text); }
.home-card-data .m { display: block; font-size: 9px; font-weight: 600; color: var(--color-text-muted); margin-top: 1px; }

/* Cabeçalho de seção clicável (leva para a busca do tópico) */
.home-section-link {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; color: var(--color-text);
  transition: color .15s, gap .15s;
}
.home-section-link:hover { color: var(--color-orange); gap: 10px; }

/* Tela de busca de encontros */
.busca-controles { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.busca-prox {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--color-lavender-light);
  border-radius: 12px; padding: 10px 14px; margin: 16px 0 4px;
}
.busca-prox-txt { font-size: 13px; color: var(--color-text); }

/* Modal genérico (ponto de partida) */
.rgc-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(43, 35, 24, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.rgc-modal {
  background: #fff; border-radius: 20px; padding: 22px;
  width: 100%; max-width: 460px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh; overflow: auto;
}
.busca-paginacao {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 28px 0 8px;
}

.home-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.home-scroll-x { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.home-scroll-x::-webkit-scrollbar { height: 6px; }
.home-scroll-x::-webkit-scrollbar-thumb { background: rgba(132, 153, 183, 0.3); border-radius: 50px; }

.home-nav-mobile { display: none; }

@media (max-width: 1000px) {
  .home-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 820px) {
  .home-sidebar { display: none; }
  .home-topbar { display: none; }
  .home-inner { max-width: none; padding: 0 0 90px; }
  .home-content { padding: 0 16px; }
  .home-grid-3 { grid-template-columns: 1fr; }

  .home-mobile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
    background: var(--color-cream);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .home-nav-mobile { display: block; }
}
