/* assets/css/node-card.css */
.node-card {
  /* Reset native button styles */
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--color-neutral-lightest);
  border-radius: 0.5rem;
  background: var(--color-white);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.node-card:hover:not(:disabled) {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border-color: var(--color-yellow);
}

.node-card:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

.node-card:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.node-card--compact { padding: 0.5rem; }

.node-card--featured {
  padding: 1.5rem;
  border-width: 2px;
}

.node-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-card__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-neutral);
}

.node-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
}

.node-card__description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-neutral);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.node-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.node-card__children {
  font-size: 0.75rem;
  color: var(--color-neutral);
}

.node-card__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0.5rem;
}

.node-card__lock-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-neutral);
}

.node-card__lock-reason {
  font-size: 0.75rem;
  color: var(--color-neutral-dark);
  text-align: center;
  padding: 0 1rem;
}
