/* ==========================================================================
   Feed Principal - Estilos Específicos
   ========================================================================== */

.feed-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.feed-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 0.5rem 1rem;
  max-width: 600px;
  /* Largura focada para o feed no desktop (mobile-first expandido) */
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Componente: Instantes (Stories)
   ========================================================================== */
.instantes-strip {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border-bottom: 1px solid rgba(128, 128, 128, 0.08);
  margin-bottom: 0.75rem;
}

.instantes-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.75rem;
  touch-action: pan-x pan-y;
}

.instantes-scroll::-webkit-scrollbar {
  display: none;
}

.instante-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  width: 5.5rem;
  /* Largura fixa do instante */
  font-family: inherit;
}

.instante-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  /* Proporção solicitada */
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.instante-item:active .instante-cover {
  transform: scale(0.95);
}

.instante-avatar {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  /* Rounded square para manter o padrão */
  background-color: var(--text-primary);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid var(--color-surface);
}

.instante-author {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

/* Estilo específico para adicionar instante */
.add-instante .instante-cover {
  background-color: var(--color-surface);
  border: 1px dashed rgba(128, 128, 128, 0.3);
  box-shadow: none;
  position: relative;
}

.add-instante .instante-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../global/assets/img/b7032cbfc10fe9c6da539420c27596d3.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  /* Transparência da imagem de fundo */
  z-index: 0;
}

.add-instante-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  /* Garante que o ícone + fique acima do background */
}

.add-instante-placeholder svg {
  width: 1.75rem;
  height: 1.75rem;
}


/* ==========================================================================
   Componente: Post Card
   ========================================================================== */
.feed-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
  /* Espaço no final para não grudar no rodapé caso exista */
}

.post-card {
  background: var(--color-surface);
  border-radius: 1.25rem;
  /* Arredondamento premium (20px) */
  border: 1px solid rgba(128, 128, 128, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.04);
}

.post-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 0.75rem;
}

.post-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  /* Rounded square */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.1;
}

.post-author-handle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.post-time {
  font-size: 0.75rem;
  color: var(--text-muted, #9ca3af);
  font-weight: 600;
}

.post-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  margin-left: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s;
}

.post-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}



.post-body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  word-wrap: break-word;
}

.post-media-container {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* Proporção ideal para imagens em feed vertical */
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(128, 128, 128, 0.05);
  /* Placeholder */
  border: 1px solid rgba(128, 128, 128, 0.1);
}

.post-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-footer {
  display: flex;
  align-items: center;
  padding: 0 1rem 1rem;
  gap: 1.25rem;
}

.interaction-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.1s ease;
  padding: 0.25rem 0;
}

.interaction-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  transition: transform 0.2s ease;
}



.interaction-btn:active {
  transform: scale(0.95);
}

.share-btn {
  margin-left: auto;
}